HDU 4706 Children's Day

Children's Day

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


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
 

呵呵哒~~~

 

#include <stdio.h>
int main(void)
{
    printf("a e\n");
    printf("bdf\n");
    printf("c g\n");

    printf("h  n\n");
    printf("i mo\n");
    printf("jl p\n");
    printf("k  q\n");

    printf("r   z\n");
    printf("s  ya\n");
    printf("t x b\n");
    printf("uw  c\n");
    printf("v   d\n");

    printf("e    o\n");
    printf("f   np\n");
    printf("g  m q\n");
    printf("h l  r\n");
    printf("ik   s\n");
    printf("j    t\n");

    printf("u     g\n");
    printf("v    fh\n");
    printf("w   e i\n");
    printf("x  d  j\n");
    printf("y c   k\n");
    printf("zb    l\n");
    printf("a     m\n");

    printf("n      b\n");
    printf("o     ac\n");
    printf("p    z d\n");
    printf("q   y  e\n");
    printf("r  x   f\n");
    printf("s w    g\n");
    printf("tv     h\n");
    printf("u      i\n");

    printf("j       z\n");
    printf("k      ya\n");
    printf("l     x b\n");
    printf("m    w  c\n");
    printf("n   v   d\n");
    printf("o  u    e\n");
    printf("p t     f\n");
    printf("qs      g\n");
    printf("r       h\n");

    printf("i        a\n");
    printf("j       zb\n");
    printf("k      y c\n");
    printf("l     x  d\n");
    printf("m    w   e\n");
    printf("n   v    f\n");
    printf("o  u     g\n");
    printf("p t      h\n");
    printf("qs       i\n");
    printf("r        j\n");
 return 0;
}

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值