游客 Signup | Login
中文 | En

2638 - 打印图形2

请在屏幕上输出一个字母三角形。

第一行一个'a',第二个两个'aa',第三行三个'aa'。

<br />

Input

Output


<span><span style="line-height:normal;">a</span></span>

<span><span style="line-height:normal;">aa</span></span>

<span><span style="line-height:normal;">aaa</span></span>

Examples

Input

no input needed

Output

a
aa
aaa

Solution C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	cout<<"a"<<endl;
	cout<<"aa"<<endl;
	cout<<"aaa"<<endl;
	return 0;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题