

#include <stdio.h> int main() { int H , W ,i,j; while(1){ scanf("%d %d",&H, &W); if(H == 0 && W == 0) { break; } for(j=1; j<=H; j++) { for(i=1; i<=W; i++) { if((i+j)%2 == 0 ) { printf("#"); } else { printf("."); } } printf("\n"); } printf("\n"); } return 0; } 


Compile Error Logs: 

 

Status 
Judge: 4/4 C CPU: 00:00 sec Memory: 572 KB Length: 336 B 2015-04-13 19:41 
Results for testcases 
Case # Verdict CPU Time Memory In Out Case Name 

Case #1 : Accepted 00:00 572 8 3 testcase_00 
Case #2 : Accepted 00:00 572 12 20 testcase_01 
Case #3 : Accepted 00:00 572 89 821 testcase_02 
Case #4 : Accepted 00:00 572 68 52186 testcase_03 



 < prev |  /   | next >      

 

Judge Input #  (  | )  Judge Output #  (  | ) 


  

 



 

