游客 Signup | Login
中文 | En

3286 - 图形打印正方形

输入一个n,输出一个n*n的正方形图形。

输入

2

输出

##

##

 

输入

5

输出

#####




Input

Output

Examples

Input


                

Output


                

Solution C++

#include<iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
	for (int i=1; i<=n; i++)
	{
		for (int j=1; j<=n; j++) cout<<"#";
		cout<<endl;
	}
	return 0;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题