Print The World

- 日理万妓 2022-08-10 04:59 124阅读 0赞

Print The World

Time Limit: 1000ms Memory limit: 32768K 有疑问?点这里^_^

题目描述

The first time when you see the title you may think of the famous Hello World, but there is nothing to do with it at this time. And what are we going to do? Haha, Rt, we are going to print the world. We will give you the description of our world and you just print it.

输入

The input contains only one integer N (1 <= N <= 26).

输出

Nothing is here, just go and see the sample.

示例输入

  1. 5

示例输出

  1. A
  2. BB
  3. CCC
  4. DDDD
  5. EEEEE

提示

来源

2011软件1-5班《程序设计基础》机试 tongjiantao

示例程序

  1. #include<stdio.h>
  2. int main()
  3. {
  4. int i,j,n;
  5. scanf("%d",&n);
  6. for(i=65;i<65+n;i++)
  7. {
  8. for(j=64+n-i;j>0;j--)
  9. {
  10. printf(" ");
  11. }
  12. for(j=1;j<=i-64;j++)
  13. {
  14. printf("%c",i);
  15. }
  16. printf("\n");
  17. }
  18. }

发表评论

表情:
评论列表 (有 0 条评论,124人围观)

还没有评论,来说两句吧...

相关阅读

    相关 Stop-The-World

    一.概述: java对象内存申请过程: 1.JVM会试图为相关Java对象在Eden中初始化一块内存区域;当Eden空间足够时,内存申请结束。否则到下一步; 2.JVM

    相关 什么叫 Stop The World

    一 点睛 stop-the-world,简称 STW,指的是 GC 事件发生过程中,会产生应用程序的停顿。停顿产生时整个应用程序线程都会被暂停,没有任何响应,有点像卡死的