HDU4706:Children's Day

Problem Description
Today is Children's Day. Some children ask you to output a big letter 'N'. 'N' is constituted by two vertical linesand one diagonal. Each pixel of this letter is a character orderly. No tail blank is allowed.
For example, this is a big 'N' start with 'a' and it's size is 3.
a e
bdf
c g

Your task is to write different 'N' from size 3 to size 10. The pixel character used is from 'a' to 'z' continuously and periodic('a' is reused after 'z').

 
Input
This problem has no input.
 
Output
Output different 'N' from size 3 to size 10. There is no blank line among output.

 
Sample Output
[pre]
a e
bdf
c g
h n
i mo
jl p
k q
.........
r j
[/pre]
Hint

Not all the resultsare listed in the sample. There are just some lines. The ellipsis expresseswhat you should write.

 

题意:输出由26个字母组成的长度3~10的N

什么叫暴力?

于是我的代码告诉了你

什么叫暴力HDU4706:Children's Day

#include <stdio.h>
#include <string.h>
#include <algorithm>
using namespace std; int main()
{
printf("a e\nbdf\nc g\n");
printf("h n\ni mo\njl p\nk q\n");
printf("r z\ns ya\nt x b\nuw c\nv d\n");
printf("e o\nf np\ng m q\nh l r\nik s\nj t\n");
printf("u g\nv fh\nw e i\nx d j\ny c k\nzb l\na m\n");
printf("n b\no ac\np z d\nq y e\nr x f\ns w g\ntv h\nu i\n");
printf("j z\nk ya\nl x b\nm w c\nn v d\no u e\np t f\nqs g\nr h\n");
printf("i a\nj zb\nk y c\nl x d\nm w e\nn v f\no u g\np t h\nqs i\nr j\n"); return 0;
}
上一篇:Lua和C#调用探秘


下一篇:Xcode免证书打包ipa