#pragma warning(disable:4996)
#include<cstdio>
#include<cstring>
#include<string>
#include<cmath>
#include<vector>
#include<algorithm>
#include<iostream>
#include<time.h>
#include<map>
#include<set>
#include<sstream>
using namespace std;
char guojia[55];
void init()
{
for (int i = 1; i <= 50; i++)
{
if (i <= 26)
guojia[i] = 'A' + i - 1;
else
guojia[i] = 'a' + i - 27;
}
}
int main()
{
init();
int n;
while (cin >> n)
{
printf("2 %d %d\n",n,n);
for (int i = 1; i <= n; i++)
{
for (int j = 1; j <= n; j++)
{
printf("%c", guojia[i]);
}
printf("\n");
}
printf("\n");
for (int i = 1; i <= n; i++)
{
for (int j = 1; j <= n; j++)
{
printf("%c", guojia[j]);
}
printf("\n");
}
printf("\n");
}
return 0;
}
UVA(1605)
最新推荐文章于 2022-08-29 20:22:55 发布