站点图标 陌路寒暄

Hello Online Judge!

Hello Online Judge!

时间: 1ms        内存:128M

描述:

很多同学从学习C语言开始,就在OJ上开始了自己的“刷题生涯”,只有多练习才会有提升呀!0-0 

那么,下面是一道“签到题”:请打印指定的字母图形。

输入:

 无输入

输出:

 按照要求画出图形

示例输入:

无输入

示例输出:

     **        ***********
  *      *           *
 *        *          *
*          *         *
 *        *      *   *
  *      *       *   *
     **           ***

提示:

参考答案(内存最优[552]):

begin
  		writeln('     **        ***********');
  		writeln('  *      *           *');
  		writeln(' *        *          *');
  		writeln('*          *         *');
  		writeln(' *        *      *   *');
  		writeln('  *      *       *   *');
  		writeln('     **           ***');
end.

参考答案(时间最优[0]):

#include<iostream>
using namespace std;
int main()
{
    cout<<"     **	        ***********"<<endl;
    cout<<"  *      *           *"<<endl;
    cout<<" *        *          *"<<endl;
    cout<<"*          *         *"<<endl;
    cout<<" *        *      *   *"<<endl;
    cout<<"  *      *       *   *"<<endl;
    cout<<"     **           ***"<<endl;
    return 0;
}

题目和答案均来自于互联网,仅供参考,如有问题请联系管理员修改或删除。

退出移动版