uva 1605

构造法,,,,hahaha

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
int n;
char bb[60]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
int main()
{
    while(~scanf("%d",&n))
    {
        printf("2 %d %d\n",n,n);
        for(int i=0; i<n; i++)
        {
            for(int j=0; j<n; j++)
                printf("%c",bb[i]);
            printf("\n");
        }
        printf("\n");
        for(int i=0; i<n; i++)
        {
            for(int j=0; j<n; j++)
                printf("%c",bb[j]);
            printf("\n");
        }
    }
    return 0;
}

 

posted on 2017-05-02 21:30  发牌员  阅读(116)  评论(0)    收藏  举报

导航