游客 Signup | Login
中文 | En

3133 - 新年好!

编写程序在屏幕上显示:

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

       Happy New Year!

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

注意:

29个星号,Happy New Year!首字母大写,中间1个空格隔开,末尾有英文叹号。

H之前7个空格,叹号之后没有空格。

一共3行,中间没有空行。

Input

无输入

Output

Examples

Input

no input needed

Output

*****************************
       Happy New Year!
*****************************

Solution C

#include<stdio.h>
int main(){
	printf("*****************************\n");
	printf("       Happy New Year!\n");
	printf("*****************************\n");
	return 0;
}

Solution C++

#include<iostream>
using namespace std;
int main()
{
	int a=29,b=7;
	for (int i=1;i<=a;i++)
	     cout<<"*";
	cout<<endl;
    for (int i=1;i<=b;i++)
         cout<<' ';
	cout<<"Happy New Year!";
	cout<<endl;
	for (int i=1;i<=a;i++)
	     cout<<"*";
	return 0;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题