#14875: 會超過程式列數限制的AC解(送不出)


Aaaaaaaaaaaaa (羅傑)

學校 : 臺北市立大同高級中學
編號 : 69102
來源 : [111.235.208.242]
最後登入時間 :
2023-09-13 09:02:41
a781. 3. Checkerboard -- HP CodeWars2008 | From: [203.72.178.252] | 發表日期 : 2018-08-10 13:38

 #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
while(cin>>n){
if(n==0) break;
else if(n==1){
printf("#.#.#.#.\n");
printf(".#.#.#.#\n");
printf("#.#.#.#.\n");
printf(".#.#.#.#\n");
printf("#.#.#.#.\n");
printf(".#.#.#.#\n");
printf("#.#.#.#.\n");
printf(".#.#.#.#\n");
}
else if(n==2){
printf("##..##..##..##..\n");
printf("##..##..##..##..\n");
printf("..##..##..##..##\n");
printf("..##..##..##..##\n");
printf("##..##..##..##..\n");
printf("##..##..##..##..\n");
printf("..##..##..##..##\n");
printf("..##..##..##..##\n");
printf("##..##..##..##..\n");
printf("##..##..##..##..\n");
printf("..##..##..##..##\n");
printf("..##..##..##..##\n");
printf("##..##..##..##..\n");
printf("##..##..##..##..\n");
printf("..##..##..##..##\n");
printf("..##..##..##..##\n");
}
else if(n==3){
printf("###...###...###...###...\n");
printf("###...###...###...###...\n");
printf("###...###...###...###...\n");
printf("...###...###...###...###\n");
printf("...###...###...###...###\n");
printf("...###...###...###...###\n");
printf("###...###...###...###...\n");
printf("###...###...###...###...\n");
printf("###...###...###...###...\n");
printf("...###...###...###...###\n");
printf("...###...###...###...###\n");
printf("...###...###...###...###\n");
printf("###...###...###...###...\n");
printf("###...###...###...###...\n");
printf("###...###...###...###...\n");
printf("...###...###...###...###\n");
printf("...###...###...###...###\n");
printf("...###...###...###...###\n");
printf("###...###...###...###...\n");
printf("###...###...###...###...\n");
printf("###...###...###...###...\n");
printf("...###...###...###...###\n");
printf("...###...###...###...###\n");
printf("...###...###...###...###\n");
}
else if(n==4){
printf("####....####....####....####....\n");
printf("####....####....####....####....\n");
printf("####....####....####....####....\n");
printf("####....####....####....####....\n");
printf("....####....####....####....####\n");
printf("....####....####....####....####\n");
printf("....####....####....####....####\n");
printf("....####....####....####....####\n");
printf("####....####....####....####....\n");
printf("####....####....####....####....\n");
printf("####....####....####....####....\n");
printf("####....####....####....####....\n");
printf("....####....####....####....####\n");
printf("....####....####....####....####\n");
printf("....####....####....####....####\n");
printf("....####....####....####....####\n");
printf("####....####....####....####....\n");
printf("####....####....####....####....\n");
printf("####....####....####....####....\n");
printf("####....####....####....####....\n");
printf("....####....####....####....####\n");
printf("....####....####....####....####\n");
printf("....####....####....####....####\n");
printf("....####....####....####....####\n");
printf("####....####....####....####....\n");
printf("####....####....####....####....\n");
printf("####....####....####....####....\n");
printf("####....####....####....####....\n");
printf("....####....####....####....####\n");
printf("....####....####....####....####\n");
printf("....####....####....####....####\n");
printf("....####....####....####....####\n");
}
else if(n==5){
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf("#####.....#####.....#####.....#####.....\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
printf(".....#####.....#####.....#####.....#####\n");
}
else if(n==6){
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("######......######......######......######......\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
printf("......######......######......######......######\n");
}
else if(n==7){
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf("#######.......#######.......#######.......#######.......\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
printf(".......#######.......#######.......#######.......#######\n");
}
else if(n==8){
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("########........########........########........########........\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
printf("........########........########........########........########\n");
}
}

 
ZeroJudge Forum