hdu 4706(childen‘s day)
来源:互联网 发布:2016网络教育统考时间 编辑:程序博客网 时间:2024/06/03 10:13
题目链接:点击打开链接
题目分析:水题,注意pe
#include<stdlib.h>#include<stdio.h>#include<string.h>#include<algorithm>#include<math.h>#include<iostream>using namespace std;int main(){ int i,n,j; char c='a'; for(n=3;n<=10;n++) { for(i=1;i<=n;i++,c=(c+1-'a')%26+'a') { printf("%c",((c-'a')%26)+'a'); for(j=1;j<n-i;j++) printf(" "); if(i!=n&&i!=1) printf("%c",(2*(n-i)+c-'a')%26+'a'); printf("%c\n",(2*n-1+c-'a'-1)%26+'a'); } c=(c-'a'+2*n-2)%26+'a'; } return 0;}
- hdu 4706(childen‘s day)
- HDU-#4706 Children's Day(模拟)
- hdu 4706 Children's Day
- hdu 4706 Children's Day
- Hdu 4706 Children's Day
- HDU 4706 Children's Day
- HDU 4706 Children's Day
- HDU 4706 Children\'s Day
- hdu 4706 Children's Day
- HDU 4706:Children's Day
- hdu 4706 Children's Day
- HDU 4706 Children's Day
- HDU 4706 Children's Day (热身赛第一题)
- hdu 4706 Children's Day(找规律)
- HDU 4706 Children's Day(模拟啊)
- HDU 4706 Children's Day 解题报告
- Hdu 4706 Children's Day -- 输出图形
- [ACM] hdu 4706 Children's Day
- HDU4708题解
- 关于Additional Include directories、Additional Library directories、Addition
- PHP error_log日志A non well formed numeric value encountered原因
- 为什么每次打开word都要安装配置
- UITableViewCell 换背景图片
- hdu 4706(childen‘s day)
- HDU 4707 Pet (热身赛第二题)
- 父进程等待子进程终止 wait, WIFEXITED, WEXITSTATUS
- openSUSE12.3启用/禁用触摸板
- : samba-common-bin: 依赖关系问题 - 仍未被配置
- 信息时代,我们需要改变观念了
- Oracle flashback 1
- HDU 1051 Wooden Sticks
- [转载]MyEclipse8.5 Hibernate反向工程步骤及DAO Type