HDUOJ----(4706)Children's Day

时间:2022-05-05
本文章向大家介绍HDUOJ----(4706)Children's Day,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

Children's Day

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 248    Accepted Submission(s): 140

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.

Source

2013 ACM/ICPC Asia Regional Online —— Warmup

Recommend

liuyiding

代码:

 1 #include<iostream>
 2 #include<cstdio>
 3 using namespace std;
 4 int main()
 5 {
 6 //printf("[pre]n");
 7 printf("a enbdfnc gn"); 
 8 printf("h  nni monjl pnk  qn"); 
 9 printf("r   zns  yant x bnuw  cnv   dn"); 
10 printf("e    onf   npng  m qnh l  rnik   snj    tn") ;
11 printf("u     gnv    fhnw   e inx  d  jny c   knzb    lna     mn");
12 printf("n      bno     acnp    z dnq   y  enr  x   fns w    gntv     hnu      in");
13 printf("j       znk      yanl     x bnm    w  cnn   v   dno  u    enp t     fnqs      gnr       hn");
14 printf("i        anj       zbnk      y cnl     x  dnm    w   enn   v    fno  u     gnp t      hnqs       inr        jn");
15 //printf("/[pre]n");
16 return 0;
17 }