#include<cstdio>
#include<iostream>
#include<cstring>
#include<string.h>
#include<algorithm>
using namespace std;
char s[] = {'0', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S','T', 'U', 'V', 'W','X', 'Y', 'Z',
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's','t', 'u', 'v', 'w','x','y', 'z'};
int main()
{
int n;
int kase = 0;
while(scanf("%d", &n) == 1)
{
if(kase !=0)
printf("\n");
++kase;
if(n==1)
{
printf("%d %d %d\n", 1, 1, 1);
printf("A\n");
continue;
}
printf("%d %d %d\n", 2, n, n);
for(int i = 1; i <= n; ++i)
{
for(int j = 1; j <= n; ++j)
printf("%c", s[i]);
printf("\n");
}
printf("\n");
for(int i = 1; i <= n; ++i)
{
for(int j = 1; j <= n; ++j)
printf("%c", s[j]);
printf("\n");
}
}
return 0;
}
UVA 1605 Building for UN
最新推荐文章于 2019-10-28 23:43:51 发布