Children's Day
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 226 Accepted Submission(s): 127
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.
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').
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]HintNot all the resultsare listed in the sample. There are just some lines. The ellipsis expresseswhat you should write.
Source
2013 ACM/ICPC Asia Regional Online —— Warmup
暴力手写!!!不知道别人有没有比较好的方法,这么傻的办法,一开始还搞错了,手写了好半天。。。整场比赛一个人在哪里搞,无小伙伴支援了,太捉急了。。
暴力手写!!!不知道别人有没有比较好的方法,这么傻的办法,一开始还搞错了,手写了好半天。。。整场比赛一个人在哪里搞,无小伙伴支援了,太捉急了。。
#include <iostream>
#include <algorithm>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <queue>
#include <stack>
#include <map>
#include <vector>
#include <cmath>
using namespace std;
int main()
{
//freopen("in.txt","r",stdin);
cout<<"a e\n" <<"bdf\n" <<"c g" <<endl;
cout<<"h n\n" <<"i mo\n" <<"jl p\n" <<"k q" <<endl;
cout<<"r z\n" <<"s ya\n" <<"t x b\n" <<"uw c\n" <<"v d" <<endl;
cout<<"e o\n" <<"f np\n" <<"g m q\n" <<"h l r\n" <<"ik s\n" <<"j t" <<endl;
cout<<"u g\n" <<"v fh\n" <<"w e i\n" <<"x d j\n" <<"y c k\n" <<"zb l\n" <<"a m"<<endl;
cout<<"n b\n" <<"o ac\n" <<"p z d\n" <<"q y e\n" <<"r x f\n" <<"s w g\n" <<"tv h\n" <<"u i"<<endl;
cout<<"j z\n" <<"k ya\n" <<"l x b\n" <<"m w c\n" <<"n v d\n" <<"o u e\n" <<"p t f\n" <<"qs g\n" <<"r h"<<endl;
cout<<"i a\n"<<"j zb\n"<<"k y c\n"<<"l x d\n"<<"m w e\n"<<"n v f\n"<<"o u g\n"<<"p t h\n"<<"qs i\n"<<"r j"<<endl;
return 0;
}