s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s905228448 | p02405 | u175224634 | 1551596618 | Python | Python3 | py | Runtime Error | 0 | 0 | 468 | while True:
H,W = map(int,input().split())
if H==W==0:
break;
for i in range(0,H):
if i % 2 == 1:
for j in range(0,W):
if j % 2 == 1:
print("#")
if j % 2 == 0:
print(".")
if i % 2 ==0:
for i in ... |
s917281827 | p02405 | u175224634 | 1551596692 | Python | Python3 | py | Runtime Error | 0 | 0 | 468 | while True:
H,W = map(int,input().split())
if H==W==0:
break;
for i in range(0,H):
if i % 2 == 1:
for j in range(0,W):
if j % 2 == 1:
print("#")
if j % 2 == 0:
print(".")
if i % 2 ==0:
for j in ... |
s826450225 | p02405 | u252054808 | 1556177525 | Python | Python3 | py | Runtime Error | 0 | 0 | 243 | while(True):
h, w = map(int, input().split())
if(h == 0 and w == 0):
break
for i in range(h):
s = ''
for j in range(w):
s += '#' if ((i + j) % 2 == 0) else s += '.'
print(s)
print()
|
s764388023 | p02405 | u805464373 | 1556296878 | Python | Python3 | py | Runtime Error | 0 | 0 | 1649 | #include<bits/stdc++.h>
using namespace std;
int main(){ ... |
s166049158 | p02405 | u805716376 | 1556702837 | Python | Python3 | py | Runtime Error | 0 | 0 | 331 | a, b = map(int,input().split())
cnt = 1
while a != 0:
if cnt//2 = 1:
if b//2 = 0:
print('#.'*(b//2))
else:
print('#.'(b//2)+'#')
else:
if b//2 = 0:
print('.#'*(b//2))
else:
print('.#'(b//2)+'.')
print()
a, b = map(int,input(... |
s148874120 | p02405 | u312033355 | 1558931859 | Python | Python3 | py | Runtime Error | 0 | 0 | 270 | while True:
H,W = map(int,input().split())
if H == 0 and W == 0:
break
for i in range(H):
for k in range(W):
if (i+k)%2 == 0:
print("#",end = "")
else:
print(".",end = "")
print()
|
s668856997 | p02405 | u120055135 | 1558936682 | Python | Python3 | py | Runtime Error | 0 | 0 | 214 | while True:
H,W = map(int, input().split())
if H == 0 and W == 0:
break
if i in range(round(H/2)):
print(("#"+".")*round(W/2))
if i in range(int(H/2)):
print(("."+"#")*round(W/2))
|
s937599659 | p02405 | u120055135 | 1558936767 | Python | Python3 | py | Runtime Error | 0 | 0 | 206 | while True:
H,W = map(int, input().split())
if H == 0 and W == 0:
break
if i in range(round(H/2)):
print(("#"+".")*round(W/2))
elif i in range(int(H/2)):
print(("."+"#")*round(W/2))
|
s901687731 | p02405 | u629874472 | 1559042228 | Python | Python3 | py | Runtime Error | 0 | 0 | 404 | while True:
h,w = map(int,input().split())
for i in range(h):
if i%2 ==0:
for j in range(w):
if j%2 ==0:
print('#')
else:
print('.')
else:
for j in range(w):
if j%2 ==0:
... |
s178899316 | p02405 | u015712946 | 1559526578 | Python | Python3 | py | Runtime Error | 0 | 0 | 247 | def chess(h,w):
if (h+w) % 2 == 0:
return '#'
return '.'
while True:
H, W = map(int, input().split())
if H == 0 and W == 0:
break
for i in range(H):
for j in range(W):
print(chess(I,j)', end='')
print()
print()
|
s258041002 | p02405 | u015712946 | 1559526625 | Python | Python3 | py | Runtime Error | 0 | 0 | 246 | def chess(h,w):
if (h+w) % 2 == 0:
return '#'
return '.'
while True:
H, W = map(int, input().split())
if H == 0 and W == 0:
break
for i in range(H):
for j in range(W):
print(chess(I,j), end='')
print()
print()
|
s985486841 | p02405 | u120055135 | 1559536593 | Python | Python3 | py | Runtime Error | 20 | 5596 | 252 | while True:
(H,W) = [int(i) for i in input().split()]
if H==W==0:
break
for i in range(H):
for j in range(W):
if (i+j)%2==0: print('#',end="")
else: p0rint('.',end="")
print('')
print('')
|
s678127980 | p02405 | u442346200 | 1422847078 | Python | Python3 | py | Runtime Error | 0 | 0 | 251 | while True:
(H, W) = [int(x) for x in input().split()]
if H == H == 0:
break
for hc in range(H):
for wc int range(W):
if (hc + wc) % 2 == 0:
print('#', end ='')
else:
print('.', end ='')
print()
print() |
s926102311 | p02405 | u745846646 | 1422847097 | Python | Python3 | py | Runtime Error | 0 | 0 | 296 | while True:
(H, W) [int(x) for x in input().split()]
if H == W == 0:
break
for hc in range(H):
for wc in range(W):
if (hc + wc) % 2 == 0:
print('#', end='')
else:
print('#', end='')
print()
print() |
s289704499 | p02405 | u636711749 | 1422847108 | Python | Python3 | py | Runtime Error | 0 | 0 | 338 | while True:
(H, W) = [int(x) for x in input().split()]
if H == Q == 0:
break
for hc in range(H):
for wc in range(W):
if (hc + wc) % 2 == 0:
print('#', end='')
else:
print('.',end='')
pr... |
s562306317 | p02405 | u442346200 | 1424048542 | Python | Python3 | py | Runtime Error | 0 | 0 | 248 | while True:
(H, W) = [int(i) for i in input().split()]
if H == W == 0;
break
for hc in range(H):
for wc in range(W):
if (hc + wc) % 2 == 0:
print('#', end='')
else:
print('.', end='')
print()
print() |
s581593403 | p02405 | u745846646 | 1424048552 | Python | Python3 | py | Runtime Error | 0 | 0 | 298 | while true:
(H,W) = [int(i) i in input().split()]
if H == W ==0:
break
for hc in range(H):
for wc in range(W):
if (hc + wc) % 2 == 0:
print('#', end=' ')
else:
print('.', end=' ')
print()
print() |
s603317950 | p02405 | u527848444 | 1424048597 | Python | Python3 | py | Runtime Error | 0 | 0 | 313 | while True:
(H,W) = [int(i) for i in inpput().split()]
if H == W == 0:
break
for hc in range(H):
for wc in range(W):
if (hc + wc) % 2 == 0:
print('#', end = ' ')
else:
print('.'.end=' ')
print()
print() |
s520569306 | p02405 | u376883550 | 1424091683 | Python | Python | py | Runtime Error | 0 | 0 | 229 | H, W = map(int, raw_input().split())
while H | W != 0:
for i in range(H):
s = ''
for j in range(W):
s += j % 3 == 0 ? '#' : '.'
print s
print ''
H, W = map(int, raw_input().split()) |
s738514251 | p02405 | u669360983 | 1430207906 | Python | Python | py | Runtime Error | 0 | 0 | 350 | import sys
while True:
y,x=map(int, input().split())
if x==y==0: break
for i in range(1,y+1):
for j in range(1,x+1):
if(i%2==1):
if(j%2==1):
sys.stdout.write('#')
elif(j%2==0):
sys.stdout.write('.')
if(i%2==0):
if(j%2==0):
sys.stdout.write('#')
elif(j%2==1):
sys.stdout.wri... |
s241557987 | p02405 | u604774382 | 1430654269 | Python | Python3 | py | Runtime Error | 0 | 0 | 373 | import sys
while True:
h, w = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
if 0 ==h and 0 == w:
break
pa = [ "#", "." ]
d = 0
ouput = []
for i in range( h ):
d = i&1
for j in range( w ):
ouput.append( pa[d] )
d = not d
o... |
s682398601 | p02405 | u172616925 | 1435568156 | Python | Python | py | Runtime Error | 0 | 0 | 237 | while 1:
h,w = map(int, raw_input().split())
if h==w==0
break
for i in range(0,h/2):
print ("#." * (w/2) + "#" * (w%2) + "\n")
print (".#" * (w/2) + "." * (w%2) + "\n")
if h/2 == 1:
print ("#." * (w/2) + "#" * (w%2) + "\n") |
s122921326 | p02405 | u172616925 | 1435568327 | Python | Python | py | Runtime Error | 0 | 0 | 239 | while 1:
h,w = map(int, raw_input().split())
if h==w==0
break
for i in range(0,h/2):
print ("#." * (w/2) + "#" * (w%2) + "\n")
print (".#" * (w/2) + "." * (w%2) + "\n")
if h % 2 == 1:
print ("#." * (w/2) + "#" * (w%2) + "\n") |
s859900586 | p02405 | u172616925 | 1435568687 | Python | Python | py | Runtime Error | 0 | 0 | 230 | while 1:
h,w = map(int, raw_input().split())
if h==w==0
break
for i in range(0,h/2):
print ("#." * (w/2) + "#" * (w%2))
print (".#" * (w/2) + "." * (w%2))
if h % 2 == 1:
print ("#." * (w/2) + "#" * (w%2))
print "\n" |
s660233557 | p02405 | u172616925 | 1435568717 | Python | Python | py | Runtime Error | 0 | 0 | 248 | while 1:
h,w = map(int, raw_input().split())
if h==w==0
break
for i in range(0,h/2):
print ("#." * (w/2) + "#" * (w%2))
print (".#" * (w/2) + "." * (w%2))
if h % 2 == 1:
print ("#." * (w/2) + "#" * (w%2))
print "\n" |
s103369890 | p02405 | u172616925 | 1435568741 | Python | Python | py | Runtime Error | 0 | 0 | 249 | while 1:
h,w = map(int, raw_input().split())
if h==w==0:
break
for i in range(0,h/2):
print ("#." * (w/2) + "#" * (w%2))
print (".#" * (w/2) + "." * (w%2))
if h % 2 == 1:
print ("#." * (w/2) + "#" * (w%2))
print "\n" |
s999285920 | p02405 | u997158994 | 1441019093 | Python | Python | py | Runtime Error | 0 | 0 | 277 | import sys
write=sys.stdout.write
while True:
h,w=map(int,raw_input().split())
if h==w==0: break
for i in xrange(h):
l=[('#' if i%2==j%2==0 else ('.' if (i%2==1 and j%2==0) or (i%2==0 and j%2==1) else '#') for j in xrange(w)]
for i in l:
write(i)
print ""
print "" |
s637956234 | p02405 | u180914582 | 1443516518 | Python | Python3 | py | Runtime Error | 0 | 0 | 201 | while True:
????????h, w = map(int, input().strip().split())
????????if h == w == 0: break
????????for y in range(h):
????????????????print(''.join('#.'[(x + y) % 2] for x in range(w)))
????????print() |
s450435996 | p02405 | u775586391 | 1447816588 | Python | Python3 | py | Runtime Error | 0 | 0 | 341 | l = []
while True:
h,w = map(int,input().split())
if (h,w) == (0,0):
break
else:
l.append([h,w])
for i in l:
r1 = ''
r2 = ''
for jin range(i[1]//2):
r1 += '#.'
r2 += '.#'
if i[1]%2 == 1:
r1 += '#'
r2 += '.'
for m in range(i[0]//2):
print(r1)
print(r2)
if i[0]%2 == 1:
... |
s912263788 | p02405 | u294593214 | 1452786071 | Python | Python | py | Runtime Error | 0 | 0 | 262 | ?import sys
while True:
h, w = map(int, sys.stdin.readline().split(' '))
if h == 0 and w == 0:
break
for i in range(h):
for j in range(w):
sys.stdout.write('#' if (i+j) % 2 == 0 else '.')
print ''
print ''
?? |
s185699044 | p02405 | u803327846 | 1453882374 | Python | Python | py | Runtime Error | 0 | 0 | 205 | check = [#.] * 300
while 1:
h, w = map(int, raw_input().split())
if h == w == 0:
break
for i in range(h):
if h % 2 == 0:
print check[:w]
else:
print check[1:w+1]
print ""
|
s455361605 | p02405 | u803327846 | 1453882637 | Python | Python | py | Runtime Error | 0 | 0 | 293 | import sys
while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
else:
for h in range(H):
for w in range(W):
if (h + w) % 2 == 0:
sys.stdout.write("#")
else:
sys.stdout.write(".")
print ""
print ""
|
s743958886 | p02405 | u724923896 | 1453969191 | Python | Python | py | Runtime Error | 0 | 0 | 408 | n = "#."
m = ".#"
while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
if W%2 ==0:
for i in range(0, H, 2):
M[i] = n*(w/2)
for i in range(1, H, 2):
M[i] = m*(W/2)
elif W%2 == 1:
for i in range(0, H, 2):
M[i] = n*(w/2)+n(0)
for i... |
s693852987 | p02405 | u724923896 | 1453969355 | Python | Python | py | Runtime Error | 0 | 0 | 431 | n = "#."
m = ".#"
while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
if W%2 ==0:
for i in range(0, H, 2):
M[i] = n*(w/2)
for i in range(1, H, 2):
M[i] = m*(W/2)
elif W%2 == 1:
for i in range(0, H, 2):
M[i] = n*(w/2)+n(0)
for... |
s314103901 | p02405 | u724923896 | 1453969469 | Python | Python | py | Runtime Error | 0 | 0 | 423 | while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
if W%2 ==0:
for i in range(0, H, 2):
M[i] = "#."*(w/2)
for i in range(1, H, 2):
M[i] = ".#"*(W/2)
elif W%2 == 1:
for i in range(0, H, 2):
M[i] = "#."*(w/2)+"#"
for i in range... |
s140366160 | p02405 | u724923896 | 1453969745 | Python | Python | py | Runtime Error | 0 | 0 | 430 | while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
if W%2 ==0:
for i in range(0, H, 2):
M[i] = "#."*(w/2)
for i in range(1, H, 2):
M[i] = ".#"*(W/2)
elif W%2 == 1:
for i in range(0, H, 2):
M[i] = "#."*(w/2)+"#"
for i in rang... |
s939072458 | p02405 | u724923896 | 1453970215 | Python | Python | py | Runtime Error | 0 | 0 | 375 | while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
for i in range(H):
if H%2 ==0:
if W%2 == 1:
print ".#"*(w/2)+"."
elif W%2 == 0:
print ".#"*(W/2)
elif H%2 == 1:
if W%2 == 1:
print "#."*(w/2)+"#"
... |
s422770931 | p02405 | u724923896 | 1453970367 | Python | Python | py | Runtime Error | 0 | 0 | 377 | while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
for i in range(H):
if i%2 ==1:
if W%2 == 1:
print ".#"*(w/2)+"."
elif W%2 == 0:
print ".#"*(W/2)
elif i%2 == 0:
if W%2 == 1:
print "#."*(w/2)+"#"
... |
s921078209 | p02405 | u724923896 | 1453970559 | Python | Python | py | Runtime Error | 0 | 0 | 381 | while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
for i in range(H):
if i%2 ==1:
if W%2 == 1:
print ".#"*(w/2)+"."
elif W%2 == 0:
print ".#"*(W/2)
elif i%2 == 0:
if W%2 == 1:
print "#."*(w/2)+"#"
... |
s635449774 | p02405 | u724923896 | 1453971394 | Python | Python | py | Runtime Error | 0 | 0 | 384 | while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
for i in range(H):
if i%2 == 0:
if W%2 == 1:
print "#."*(w/2)+"#"
elif W%2 == 0:
print "#."*(W/2)
elif i%2 == 1:
if W%2 == 1:
print ".#"*(w/2)+"."
... |
s618565190 | p02405 | u724923896 | 1453971803 | Python | Python | py | Runtime Error | 0 | 0 | 384 | while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
for i in range(H):
if i%2 == 0:
if W%2 == 1:
print "#."*(w/2)+"#"
elif W%2 == 0:
print "#."*(W/2)
elif i%2 == 1:
if W%2 == 1:
print ".#"*(w/2)+"."
... |
s398793588 | p02405 | u724923896 | 1453971975 | Python | Python | py | Runtime Error | 0 | 0 | 385 | while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
for i in range(H):
if i%2 == 0:
if W%2 == 0:
print "#."*(W/2)
wlif W%2 == 1:
print "#."*(w/2)+"#"
elif i%2 == 1:
if W%2 == 0:
print ".#"*(W/2)
... |
s625768241 | p02405 | u724923896 | 1453972526 | Python | Python | py | Runtime Error | 0 | 0 | 386 | while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
for i in range(H):
if i%2 == 0:
if W%2 == 0:
print "#."*(W/2)
elif W%2 == 1:
print "#."*(w/2)+"#"
elif i%2 == 1:
if W%2 == 0:
print ".#"*(W/2)
... |
s206559668 | p02405 | u724923896 | 1453972910 | Python | Python | py | Runtime Error | 0 | 0 | 360 | while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
for i in range(H):
if i%2 == 0:
if W%2 == 0:
print "#."*(W/2)
else:
print "#."*(w/2)+"#"
else:
if W%2 == 0:
print ".#"*(W/2)
else:
... |
s255877924 | p02405 | u724923896 | 1453973075 | Python | Python | py | Runtime Error | 0 | 0 | 364 | while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
for i in range(0, H):
if i%2 == 0:
if W%2 == 0:
print "#."*(W/2)
else:
print "#."*(w/2)+"#"
else:
if W%2 == 0:
print ".#"*(W/2)
else:
... |
s415330129 | p02405 | u613805578 | 1454165685 | Python | Python | py | Runtime Error | 0 | 0 | 299 | while 1:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
else:
for i in range(H):
ans = ""
for j in ange(W):
if (i+j)%2 == 0:
ans += "#"
else:
ans += "."
print ans
print ("") |
s022281659 | p02405 | u970436839 | 1454170859 | Python | Python | py | Runtime Error | 0 | 0 | 318 | while True:
H, W = map(int, raw_input().split())
if H == 0 and W == 0:
break
for i in range(H):
if H /2 == 0:
if W/2 == 0:
print "#."*(W/2)
else:
print "#."*(W/2) + "#"
else:
if W/2 == 0:
print ".""*(W/2)
else:
print ".#"*(W/2) + "."
print "" |
s764874386 | p02405 | u967035362 | 1454420141 | Python | Python | py | Runtime Error | 0 | 0 | 231 | def chess(h,w):
o = ""
for i in range(h):
for j in range(w):
if (i+j)%2: o+="."
else: o+="#"
o+="\n
while 1:
h,w=map(int,raw_input().split())
if h==w==0:break
chess(h,w) |
s490538177 | p02405 | u967035362 | 1454420187 | Python | Python | py | Runtime Error | 0 | 0 | 229 | def chess(h,w):
o = ""
for i in range(h):
for j in range(w):
if (i+j)%2: o+="."
else: o+="#"
o+="\n
while 1:
h,w=map(int,raw_input().split())
if h==w==0:break
chess(h, |
s475235207 | p02405 | u233232390 | 1454421235 | Python | Python | py | Runtime Error | 0 | 0 | 284 | while 1:
H, W = map(int,raw_input().split())
if H + W == 0:
???break
for h in range(H):
if h % 2 == 0:
if W % 2 == 0:
print ('#.'*(W//2))
else:
print ('#.'*(W//2)+'#')
elif: W % 2 == 0:
print ('.#'*(W//2))
else:
print ('.#'*(W//2)+'.')
print '' |
s297067630 | p02405 | u233232390 | 1454421252 | Python | Python | py | Runtime Error | 0 | 0 | 292 | while 1:
H, W = map(int,raw_input().split())
if H + W == 0:
???break
for h in range(H):
if h % 2 == 0:
if W % 2 == 0:
print ('#.'*(W//2))
else:
print ('#.'*(W//2)+'#')
else:
if: W % 2 == 0:
print ('.#'*(W//2))
else:
print ('.#'*(W//2)+'.')
print '' |
s908866461 | p02405 | u233232390 | 1454421287 | Python | Python | py | Runtime Error | 0 | 0 | 279 | while 1:
H, W = map(int,raw_input().split())
if H + W == 0:
???break
for h in range(H):
if h % 2 == 0:
if W % 2 == 0:
print ('#.'*(W//2))
else:
print ('#.'*(W//2)+'#')
else:
if: W % 2 == 0:
print ('.#'*(W//2))
else:
print ('.#'*(W//2)+'.')
print '' |
s995868813 | p02405 | u233232390 | 1454421315 | Python | Python | py | Runtime Error | 0 | 0 | 280 | while 1:
H, W = map(int,raw_input().split())
if H + W == 0:
???break
for h in range(H):
if h % 2 == 0:
if W % 2 == 0:
print ('#.'*(W//2))
else:
print ('#.'*(W//2)+'#')
else:
if: W % 2 == 0:
print ('.#'*(W//2))
else:
print ('.#'*(W//2)+'.')
print '' |
s652775140 | p02405 | u233232390 | 1454421356 | Python | Python | py | Runtime Error | 0 | 0 | 284 | while 1:
H, W = map(int,raw_input().split())
if H + W == 0:
???break
for h in range(H):
if h % 2 == 0:
if W % 2 == 0:
print ('#.'*(W//2))
else:
print ('#.'*(W//2)+'#')
else:
if: W % 2 == 0:
print ('.#'*(W//2))
else:
print ('.#'*(W//2)+'.')
print '' |
s845995655 | p02405 | u233232390 | 1454421410 | Python | Python | py | Runtime Error | 0 | 0 | 283 | while 1:
H, W = map(int,raw_input().split())
if H + W == 0:
???break
for h in range(H):
if h % 2 == 0:
if W % 2 == 0:
print ('#.'*(W//2))
else:
print ('#.'*(W//2)+'#')
else:
if W % 2 == 0:
print ('.#'*(W//2))
else:
print ('.#'*(W//2)+'.')
print '' |
s719615245 | p02405 | u233232390 | 1454421458 | Python | Python | py | Runtime Error | 0 | 0 | 281 | while 1:
H, W = map(int,raw_input().split())
if H + W == 0:
break
for h in range(H):
if h % 2 == 0:
if W % 2 == 0:
print ('#.'*(W//2))
else:
print ('#.'*(W//2)+'#')
else:
if W % 2 == 0:
print ('.#'*(W//2))
else:
print ('.#'*(W//2)+'.')
print '' |
s188721805 | p02405 | u532962080 | 1454423362 | Python | Python | py | Runtime Error | 0 | 0 | 383 | while 1:
H,W=map(int,raw_input().split())
if H==W==0:
break
elif H!=0 or W!=0:
for i in range(0,H):
if i%2 == 0:
if W%2 == 1:
print '#.'*(W/2)+'#'
elif W%2 == 0:
print '#.'*(W/2)
else:
if W%2 == 1:
print '.#'*(W/2)+'.'
... |
s679085020 | p02405 | u177295149 | 1454424381 | Python | Python | py | Runtime Error | 0 | 0 | 309 | while 1:
H,W = map(raw_input().split())
if H == 0 and W == 0:
break
for i in range(H):
if i%2 == 0:
if W%2 == 0:
print "#."*(W/2)
else:
print "#."*(W/2) + "#"
else:
if W%2 == 0:
print ".#"*(W/2)
else:
print ".#"*(W/2) + "."
print "" |
s491972372 | p02405 | u279955105 | 1454774244 | Python | Python3 | py | Runtime Error | 0 | 0 | 283 | while True:
H,W = list(map(int, input().split()))
if (H == 0 and W == 0):
break
else:
for n in range(H):
s = ""
for m in range(W):
if ((n % 2 == 1) and (m % 2 == 0)) or5 6 ((n % 2 == 0) and (m % 2 == 1)):
s += "."
else:
s += "#"
print(s)
print("") |
s748347358 | p02405 | u648595404 | 1455294227 | Python | Python | py | Runtime Error | 0 | 0 | 142 | for height in range(H):
if height == H-1 or height == 0:
print "#"*W
else:
print "#"+ "."*(W-2)+"#\n"
print "" |
s728931562 | p02405 | u648595404 | 1455294273 | Python | Python | py | Runtime Error | 0 | 0 | 178 | for height in range(H):
if H == W == 0:
break
elif height == H-1 or height == 0:
print "#"*W
else:
print "#"+ "."*(W-2)+"#\n"
print "" |
s726386597 | p02405 | u011261384 | 1469553425 | Python | Python | py | Runtime Error | 0 | 0 | 545 | while 1:
H,W = map(int, raw_input().split())
if H == W == 0:
break
for i in range(H):
if i % 2 == 0:
if W % 2 == 0:
print "#." * (W / 2)
else:
print no ... |
s730278110 | p02405 | u011261384 | 1469553722 | Python | Python | py | Runtime Error | 0 | 0 | 553 | while 1:
H,W = map(int, raw_input()
if H == W == 0:
break
for i in range(H):
if i % 2 == 0:
if W % 2 == 0:
print "#." * (W / 2)
else:
print "#." * (W / ... |
s301971205 | p02405 | u011261384 | 1469553913 | Python | Python | py | Runtime Error | 0 | 0 | 579 | while 1:
H,W = map(int, raw_input().split())
if H + W == 0:
break
for i in range(H):
if i % 2 == 0:
if W % 2 == 0:
print "#." * (W / 2)
else:
print "#."... |
s726114564 | p02405 | u204883389 | 1469603121 | Python | Python3 | py | Runtime Error | 0 | 0 | 305 | attern = {
0:["#", "."],
1:[".", "#"],
}
while True:
(H, W) = [int(i) for i in input().split())]
if H == W == 0:
break
for j in range(H):
p = pattern[j % 2]
print (.join([p[i % 2] for i in range(W)]))
print() |
s654148015 | p02405 | u204883389 | 1469603162 | Python | Python3 | py | Runtime Error | 0 | 0 | 306 | pattern = {
0:["#", "."],
1:[".", "#"],
}
while True:
(H, W) = [int(i) for i in input().split())]
if H == W == 0:
break
for j in range(H):
p = pattern[j % 2]
print (.join([p[i % 2] for i in range(W)]))
print() |
s266071948 | p02405 | u204883389 | 1469603243 | Python | Python3 | py | Runtime Error | 0 | 0 | 270 | pattern = {
0:["#", "."],
1:[".", "#"],
}
while True:
(H, W) = [int(i) for i in input().split())]
if H == W == 0:
break
for j in range(H):
p = pattern[j % 2]
print (.join([p[i % 2] for i in range(W)]))
print() |
s442225649 | p02405 | u204883389 | 1469603295 | Python | Python3 | py | Runtime Error | 0 | 0 | 262 | pattern = {
0:["#", "."],
1:[".", "#"],
}
while True:
(H, W) = [int(i) for i in input().split())]
if H == W == 0:
break
for j in range(H):
p = pattern[j % 2]
print (.join([p[i % 2] for i in range(W)]))
print() |
s151734020 | p02405 | u204883389 | 1469603303 | Python | Python3 | py | Runtime Error | 0 | 0 | 262 | pattern = {
0:["#", "."],
1:[".", "#"],
}
while True:
(H, W) = [int(i) for i in input().split())]
if H == W == 0:
break
for j in range(H):
p = pattern[j % 2]
print (.join([p[i % 2] for i in range(W)]))
print() |
s677604342 | p02405 | u204883389 | 1469603371 | Python | Python3 | py | Runtime Error | 0 | 0 | 259 | pattern = {
0: ["#", "."],
1: [".", "#"],
}
while True:
(H, W) = [int(i) for i in input().split())]
if H == W == 0:
break
for j in range(H):
p = pattern[j % 2]
print(.join([p[i % 2] for i in range(W)]))
print() |
s503278180 | p02405 | u204883389 | 1469679946 | Python | Python3 | py | Runtime Error | 0 | 0 | 265 | pattern = {
0:["#", "."],
1:[".", "#"],
}
while True:
(H, W) = map(int, raw_input().split())
if H == W == 0:
break
for j in range(H):
p = pattern[j % 2]
print ("join([p[i % 2] for i in range(W)]))
print() |
s882354355 | p02405 | u204883389 | 1469680030 | Python | Python3 | py | Runtime Error | 0 | 0 | 269 | pattern = {
0:["#", "."],
1:[".", "#"],
}
while True:
(H, W) = [int(i) for i in input().split()]
if H == W == 0:
break
for j in range(H):
p = pattern[j % 2]
print ("join([p[i % 2] for i in range(W)]))
print() |
s637320431 | p02405 | u204883389 | 1469680112 | Python | Python3 | py | Runtime Error | 0 | 0 | 269 | pattern = {
0:["#", "."],
1:[".", "#"],
}
while True:
(H, W) = [int(i) for i in input().split()]
if H == W == 0:
break
for i in range(H):
p = pattern[i % 2]
print ("join([p[i % 2] for i in range(W)]))
print() |
s717774170 | p02405 | u600195957 | 1469681357 | Python | Python3 | py | Runtime Error | 0 | 0 | 293 | while True:
H, W = [int(i) for i in input().split()]
for a in range(H):
for b in range(W):
if a % 2 == 0 or b % 2 == 0:
print('#', end='')
else:
print('.', end='')
print()
print()
|
s525144740 | p02405 | u514745787 | 1469681441 | Python | Python3 | py | Runtime Error | 0 | 0 | 164 | while True:
H, W = [int(i) for i in input().split()]
if H + W % == 0:
print('#')
else:
print('.')
print
|
s020729295 | p02405 | u514745787 | 1469681491 | Python | Python3 | py | Runtime Error | 0 | 0 | 143 | while True:
H, W = [int(i) for i in input().split()]
if H + W % == 0
print('#')
else:
print('.')
print
|
s916815356 | p02405 | u514745787 | 1469681593 | Python | Python3 | py | Runtime Error | 0 | 0 | 162 | while True:
H, W = [int(i) for i in input().split()]
if H + W % == 0
print('#')
else:
print('.')
print
|
s288447451 | p02405 | u514745787 | 1469681647 | Python | Python3 | py | Runtime Error | 0 | 0 | 163 | while True:
H, W = [int(i) for i in input().split()]
if H + W % == 0:
print('#')
else:
print('.')
print
|
s043103650 | p02405 | u514745787 | 1469681735 | Python | Python3 | py | Runtime Error | 0 | 0 | 166 | while True:
h, w = [int(i) for i in input().split()]
if (h + w) % 2 = 0:
print('#')
else:
print('.')
print
|
s806641990 | p02405 | u628732336 | 1469681756 | Python | Python3 | py | Runtime Error | 0 | 0 | 286 | while True:
height, width = [int(x) for x in input().split(" ")]
if height == width == 0:
break
col1 = "#." * 150
col2 = ".#" * 150
col_set = col,1[:width] + "\n" + col1[:width] + "\n"
print(col_set * (height // 2) + (col1[:width] + "\n") * (height % 2)) |
s214410284 | p02405 | u085472528 | 1469681863 | Python | Python3 | py | Runtime Error | 0 | 0 | 315 | True:
H, W = [int(i) for i in input().split()]
if H == W == 0:
break
for h in range(H):
for w in range(W):
if (h + w) % 2 == 0:
print('#', end='')
else:
print('.', end='')
print() |
s995723290 | p02405 | u514745787 | 1469681878 | Python | Python3 | py | Runtime Error | 0 | 0 | 213 | while True:
H, W = [int(i) for i in input().split()]
if H == W == 0:
break
if (h + w) % 2 = 0:
print('#', end='')
else:
print('.', end='')
print()
|
s139614208 | p02405 | u514745787 | 1469681956 | Python | Python3 | py | Runtime Error | 0 | 0 | 282 | while True:
H, W = [int(i) for i in input().split()]
if H == W == 0:
break
for h in range(H):
for w in range(W):
if (h + w) % 2 = 0:
print('#', end='')
else:
print('.', end='')
print()
|
s520055139 | p02405 | u204883389 | 1469681967 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | while True:
H, W = [int(i) for i in input().split()]
if H == W == 0:
break
for h in range(H):
for w in range(w):
if (h + w) % 2 == 0:
print('#', end='')
else:
print('.', end='')
print() |
s654766089 | p02405 | u514745787 | 1469681968 | Python | Python3 | py | Runtime Error | 0 | 0 | 283 | while True:
H, W = [int(i) for i in input().split()]
if H == W == 0:
break
for h in range(H):
for w in range(W):
if (h + w) % 2 = 0:
print('#', end='')
else:
print('.', end='')
print()
|
s373184241 | p02405 | u085472528 | 1469681974 | Python | Python3 | py | Runtime Error | 0 | 0 | 321 | True:
H, W = [int(i) for i in input().split()]
if H == W == 0:
break
for h in range(H):
for w in range(W):
if (h + w) % 2 == 0:
print('#', end='???')
else:
print('.', end='???')
print(... |
s295030054 | p02405 | u085472528 | 1469682011 | Python | Python3 | py | Runtime Error | 0 | 0 | 298 | True:
H, W = [int(i) for i in input().split()]
if H == W == 0:
break
for h in range(H):
for w in range(W):
if (h + w) % 2 == 0:
print('#', end='')
else:
print('.', end='')
print() |
s902276099 | p02405 | u204883389 | 1469682046 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | while True:
H, W = [int(i) for i in input().split()]
if H == W == 0:
break
for h in range(H):
for w in range(w):
if (h + w) % 2 == 0:
print('#', end='')
else:
print('.', end='')
print() |
s944075180 | p02405 | u498041957 | 1469682051 | Python | Python3 | py | Runtime Error | 0 | 0 | 219 | while True:
H,W = [int(i)for i in input.split()]
if H == W ==0:
break
for h in range(H):
for w in range(w):
if (h + w) % 2 == 0:
print('#', end='')
|
s196404311 | p02405 | u661284763 | 1469682080 | Python | Python3 | py | Runtime Error | 0 | 0 | 176 | while True:
h, w = map(int,input().strip().split())
if h == w == 0: berak
for y in range(h):
print(''.join('#.'[(x + y) % 2] for x in range(w)))
print() |
s213815381 | p02405 | u435917115 | 1469682104 | Python | Python3 | py | Runtime Error | 0 | 0 | 277 | while True:
H, W = [int(i) for i in input().split]
if H == W == 0:
break
for h in range(H):
for w in range(W):
if (h + w) % 2 == 0:
print('#', end='')
else:
print('.', end='')
print() |
s956491768 | p02405 | u498041957 | 1469682132 | Python | Python3 | py | Runtime Error | 0 | 0 | 288 | while True:
H,W = [int(i)for i in input.split()]
if H == W ==0:
break
for h in range(H):
for w in range(w):
if (h + w) % 2 == 0:
print('#', end='')
else:
print('.' end='')
print()
print() |
s129775824 | p02405 | u204883389 | 1469682154 | Python | Python3 | py | Runtime Error | 0 | 0 | 255 | while True:
H, W = [int(i) for i in input().split()]
if H == W == 0:
break
for h in range(H):
for w in range(W):
if (h + w) % 2 == 0:
print('#', end='')
else:
print('.', end='')
print() |
s506693402 | p02405 | u435917115 | 1469682155 | Python | Python3 | py | Runtime Error | 0 | 0 | 276 | while True:
H, W = [int(i) for i in input().split]
if H == W == 0:
break
for h in range(H):
for w in range(W):
if(h + w) % 2 == 0:
print('#', end='')
else:
print('.', end='')
print() |
s719795378 | p02405 | u264632995 | 1469682169 | Python | Python3 | py | Runtime Error | 0 | 0 | 289 | while True:
H,W = [int(i) for i in input().split()]
if H == W == 0:
break
for h in range(H):
for w in range(w):
if (h+w) % 2 == 0 :
print('#', end ='')
else
print('.', end ='')
print()
print() |
s922568174 | p02405 | u264632995 | 1469682187 | Python | Python3 | py | Runtime Error | 0 | 0 | 289 | while True:
H,W = [int(i) for i in input().split()]
if H == W == 0:
break
for h in range(H):
for w in range(w):
if (h+w) % 2 == 0 :
print('#', end ='')
elif
print('.', end ='')
print()
print() |
s375420754 | p02405 | u204883389 | 1469682202 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | while True:
H, W = [int(i) for i in input().split()]
if H == W == 0:
break
for h in range(h):
for w in range(w):
if (h + w) % 2 == 0:
print('#', end='')
else:
print('.', end='')
print() |
s819151485 | p02405 | u435917115 | 1469682247 | Python | Python3 | py | Runtime Error | 0 | 0 | 277 | while True:
H, W = [int(i) for i in input().split]
if H == W == 0:
break
for h in range(H):
for w in range(W):
if (H + W) % 2 == 0:
print('#', end='')
else:
print('.', end='')
print() |
s066084266 | p02405 | u216425054 | 1470735629 | Python | Python3 | py | Runtime Error | 0 | 0 | 212 | while True:
[H,W]=[int(x) for x in input().split()]
if [H,W]==[0,0]:
break
unit="#."
for i in range(0,H):
print(unit*(W/2)+unit[0]*(W%2))
unit=unit[1]+unit[0]
print("") |
s689424834 | p02405 | u119456964 | 1471248910 | Python | Python | py | Runtime Error | 0 | 0 | 350 | while 1;
H, W = map(int, raw_input().split())
s = ""
if H == 0 and W == 0:
break
for i in range(H):
for j in range(W):
if i%2 == 0:
if j%2 == 0:
s = s + "#"
else:
s = s + "."
else:
if j%2 == 0:
s = s + "."
else:
s = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.