s_id string | p_id string | u_id string | date string | language string | original_language string | filename_ext string | status string | cpu_time string | memory string | code_size string | code string | error string | stdout string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s855498887 | p02405 | u201514950 | 1474079979 | Python | Python | py | Runtime Error | 0 | 0 | 634 | mport sys
while 1:
H,W = map(int, raw_input().split())
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:
sys.stdout.write("#")
else:
sys.stdout.write(".")
... | File "/tmp/tmpo7rak06p/tmppw69dlfp.py", line 1
mport sys
^^^
SyntaxError: invalid syntax
| |
s581784327 | p02405 | u982344959 | 1481174023 | Python | Python3 | py | Runtime Error | 0 | 0 | 191 | H, W = map(int, input().split())
for i in range(H):
for j in range(W):
if (i + j) % 2 == 0:
print("#", end="")
else:
print(???????????)
print() | File "/tmp/tmp7c1dwr8v/tmpbmxp5vrg.py", line 7
print(???????????)
^
SyntaxError: invalid syntax
| |
s560461970 | p02405 | u982344959 | 1481174049 | Python | Python3 | py | Runtime Error | 0 | 0 | 191 | H, W = map(int, input().split())
for i in range(H):
for j in range(W):
if (i + j) % 2 == 0:
print("#", end="")
else:
print(???????????)
print() | File "/tmp/tmpf4vcil3v/tmpz3w87vt4.py", line 7
print(???????????)
^
SyntaxError: invalid syntax
| |
s215727157 | p02405 | u494314211 | 1481411709 | Python | Python3 | py | Runtime Error | 0 | 0 | 312 | while(True):
H,W=list(map(int,input().split()))
if H==0 and W==0:
break
l1=""
for i in range(W):
if i%2==0:
l1+="#"
else:
l1+="."
l1+="\n"
l2=""
for i in range(W):
if i%2==0:
l2+="."
else:
l2+="#"
l2+="\n"
l=""
for i in range(N):
if i%2==0:
l+=l1
else:
l+=l2
print(l) | Traceback (most recent call last):
File "/tmp/tmpfhmj3sfv/tmpz1nz0ne1.py", line 2, in <module>
H,W=list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s193079839 | p02405 | u144068724 | 1486053806 | Python | Python3 | py | Runtime Error | 0 | 0 | 231 | while 1:
H,W = map(int,input().split())
if H == 0 and W == 0:
break
col1 = "#." * (W + 1) // 2
col2 = ".#" * (W + 1) // 2
print((col1[:W] + "\n" + col2[:W] + "\n") * (H // 2) + (col1[:W] + "\n") * H % 2) | Traceback (most recent call last):
File "/tmp/tmpyeajk9bh/tmpfvuqt_a0.py", line 2, in <module>
H,W = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s400130976 | p02405 | u144068724 | 1486053850 | Python | Python3 | py | Runtime Error | 0 | 0 | 231 | while 1:
H,W = map(int,input().split())
if H == 0 and W == 0:
break
col1 = "#." * (W + 1) // 2
col2 = ".#" * (W + 1) // 2
print((col1[:W] + "\n" + col2[:W] + "\n") * (H // 2) + (col1[:W] + "\n") * H % 2) | Traceback (most recent call last):
File "/tmp/tmpjdkp6tdt/tmppn68in58.py", line 2, in <module>
H,W = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s350829109 | p02405 | u731896389 | 1487311132 | Python | Python | py | Runtime Error | 0 | 0 | 225 | even = "#." * 151
odd = ".#" * 151
while 1:
h,w = map(int,input().split())
if h == w ==0:
break
for i in range(h//2):
print(even[:w])
print(odd[:w])
if h%2 != 0:
print(even[:w]) | Traceback (most recent call last):
File "/tmp/tmph0gbaw_b/tmpw6pdkt6x.py", line 4, in <module>
h,w = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s548302228 | p02405 | u024715419 | 1488252665 | Python | Python3 | py | Runtime Error | 0 | 0 | 404 | while True:
h,w = map(int,input().split())
if h == 0 and w == 0:
break
sym1 = "#"
sym2 = "."
for i in range(h):
if i%2 = 1:
sym1 = "#"
sym2 = "."
else:
sym1 = "."
sym2 = "#"
for j in range(w):
if j%2 == 1:
print(sym1,end=... | File "/tmp/tmpr3pou110/tmpb16e_dzw.py", line 8
if i%2 = 1:
^^^
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
| |
s074855470 | p02405 | u024715419 | 1488252770 | Python | Python3 | py | Runtime Error | 0 | 0 | 413 | while True:
h,w = map(int,input().split())
if h == 0 and w == 0:
break
for i in range(h):
if i%2 = 1:
sym1 = "#"
sym2 = "."
else:
sym1 = "."
sym2 = "#"
for j in range(w):
if j%2 == 1:
print(sym1,end=... | File "/tmp/tmp0ewoifg2/tmpd8u7yulg.py", line 6
if i%2 = 1:
^^^
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
| |
s674242818 | p02405 | u267740286 | 1491323897 | Python | Python3 | py | Runtime Error | 0 | 0 | 855 | # #.#.#.
# .#.#.#
# #.#.#
def listToStr(list):
return ''.join(list)
def getChar(h, w):
h_parity = h % 2
w_parity = w % 2
total_parity = (h_parity + w_parity) % 2
if total_parity == 0:
return "#"
else:
return "."
def getMatrix(h, w):
result = []
for i in range(h... | File "/tmp/tmpe2os2no2/tmp8kayx9zt.py", line 42
matrix = getMatrix(input.0, input.1)
^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s133364606 | p02405 | u267740286 | 1491323969 | Python | Python3 | py | Runtime Error | 0 | 0 | 855 | # #.#.#.
# .#.#.#
# #.#.#
def listToStr(list):
return ''.join(list)
def getChar(h, w):
h_parity = h % 2
w_parity = w % 2
total_parity = (h_parity + w_parity) % 2
if total_parity == 0:
return "#"
else:
return "."
def getMatrix(h, w):
result = []
for i in range(h... | File "/tmp/tmp74tnam5a/tmpdbji9lp6.py", line 42
matrix = getMatrix(input.0, input.1)
^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s202547109 | p02405 | u267740286 | 1491324001 | Python | Python3 | py | Runtime Error | 0 | 0 | 825 | def listToStr(list):
return ''.join(list)
def getChar(h, w):
h_parity = h % 2
w_parity = w % 2
total_parity = (h_parity + w_parity) % 2
if total_parity == 0:
return "#"
else:
return "."
def getMatrix(h, w):
result = []
for i in range(h):
result.append([])
... | File "/tmp/tmpaocrvtwt/tmp3x2ad__u.py", line 38
matrix = getMatrix(input.0, input.1)
^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s181801895 | p02405 | u267740286 | 1491324542 | Python | Python3 | py | Runtime Error | 0 | 0 | 898 | def listToStr(list):
return ''.join(list)
def getChar(h, w):
h_parity = h % 2
w_parity = w % 2
total_parity = (h_parity + w_parity) % 2
if total_parity == 0:
return "#"
else:
return "."
def getMatrix(h, w):
result = []
for i in range(h):
result.append([])
... | Traceback (most recent call last):
File "/tmp/tmp3nmx7at1/tmpfwp8j9la.py", line 38, in <module>
inputs = input_parse()
^^^^^^^^^^^^^
File "/tmp/tmp3nmx7at1/tmpfwp8j9la.py", line 25, in input_parse
input_HW = input().split(",")
^^^^^^^
EOFError: EOF when reading a line
| |
s975673827 | p02405 | u267740286 | 1491324567 | Python | Python3 | py | Runtime Error | 0 | 0 | 855 | def listToStr(list):
return ''.join(list)
def getChar(h, w):
h_parity = h % 2
w_parity = w % 2
total_parity = (h_parity + w_parity) % 2
if total_parity == 0:
return "#"
else:
return "."
def getMatrix(h, w):
result = []
for i in range(h):
result.append([])
... | Traceback (most recent call last):
File "/tmp/tmpdizicoct/tmpqxz10hg8.py", line 37, in <module>
inputs = input_parse()
^^^^^^^^^^^^^
File "/tmp/tmpdizicoct/tmpqxz10hg8.py", line 25, in input_parse
input_HW = input().split(",")
^^^^^^^
EOFError: EOF when reading a line
| |
s188674621 | p02405 | u267740286 | 1491324714 | Python | Python3 | py | Runtime Error | 0 | 0 | 855 | def listToStr(list):
return ''.join(list)
def getChar(h, w):
h_parity = h % 2
w_parity = w % 2
total_parity = (h_parity + w_parity) % 2
if total_parity == 0:
return "#"
else:
return "."
def getMatrix(h, w):
result = []
for i in range(h):
result.append([])
... | Traceback (most recent call last):
File "/tmp/tmp1fm4zcsq/tmp9j2qwf1d.py", line 37, in <module>
inputs = input_parse()
^^^^^^^^^^^^^
File "/tmp/tmp1fm4zcsq/tmp9j2qwf1d.py", line 25, in input_parse
input_HW = input().split(",")
^^^^^^^
EOFError: EOF when reading a line
| |
s743642276 | p02405 | u606989659 | 1491460687 | Python | Python3 | py | Runtime Error | 0 | 0 | 436 | while True:
h,w = map(int,input().split())
def bw(x):
if x % 2 == 0:
print((x//2)*('#.'))
elif x % 2 == 1:
print((x//2)*('#.')+'#')
def wb(x):
if x % 2 == 0:
print((x//2)*('.#'))
elif x % 2 == 0:
print((x//2)*('.#')+'.')
for... | Traceback (most recent call last):
File "/tmp/tmp3bbf1j8b/tmpdlekwnye.py", line 2, in <module>
h,w = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s434604207 | p02405 | u606989659 | 1491660842 | Python | Python3 | py | Runtime Error | 0 | 0 | 437 | while True:
H,W = map(int,input().split())
a = '#.'
b = '#'
c = '.#'
d = '.'
def bw(n):
if n % 2 == 0:
print((n//2)*a)
else:
print((n//2)*a + b)
def wb(n):
if n % 2 == 0:
print((n//2)*c)
else:
print((n//2)*c + ... | Traceback (most recent call last):
File "/tmp/tmptg4d3chp/tmpqobo4vfl.py", line 2, in <module>
H,W = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s687315112 | p02405 | u156215655 | 1494044349 | Python | Python3 | py | Runtime Error | 0 | 0 | 227 | while(True)
h,w=map(int,input().split())
if h==0 and w==0:
break
rect=''
for i in range(h):
for j in range(w):
if (i+j)%2 == 0:
rect+='#'
else:
rect+='.'
rect+='\n'
print(rect) | File "/tmp/tmpjthm3nk4/tmptpbjn145.py", line 1
while(True)
^
SyntaxError: expected ':'
| |
s687442735 | p02405 | u440180827 | 1495871513 | Python | Python3 | py | Runtime Error | 0 | 0 | 242 | while True:
H, W = map(int, input().split())
for i in range(H):
for j in range(W):
if (i + j) % 2:
print('.', end='')
else:
print('#', end='')
print()
print() | Traceback (most recent call last):
File "/tmp/tmpeh7d0mbn/tmpe5qfbln2.py", line 2, in <module>
H, W = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s823424206 | p02405 | u999594662 | 1496383117 | Python | Python3 | py | Runtime Error | 0 | 0 | 319 | while True:
a = ""
b = ""
H, W = map(int, input().split())
if (H == 0 and W == 0) : break
for i in range(W):
if (i % 2 == 0) : a = a + "#"
else : a = a + "."
for i in range(W):
if (i % 2 == 0) : b = b + "."
else : b = b + ???#???
for j in range(H):
if j % 2 == 0: print(a)
else : print(b)
print() | File "/tmp/tmp_qd7e7pq/tmptie9iv21.py", line 12
else : b = b + ???#???
^
SyntaxError: invalid syntax
| |
s201994682 | p02405 | u999594662 | 1496383136 | Python | Python3 | py | Runtime Error | 0 | 0 | 316 | while 1:
a = ""
b = ""
H, W = map(int, input().split())
if (H == 0 and W == 0) : break
for i in range(W):
if (i % 2 == 0) : a = a + "#"
else : a = a + "."
for i in range(W):
if (i % 2 == 0) : b = b + "."
else : b = b + ???#???
for j in range(H):
if j % 2 == 0: print(a)
else : print(b)
print() | File "/tmp/tmpy99unoyr/tmpccicbu9j.py", line 12
else : b = b + ???#???
^
SyntaxError: invalid syntax
| |
s837670649 | p02405 | u962381052 | 1496648617 | Python | Python3 | py | Runtime Error | 0 | 0 | 371 | figure = ''
pattern = ['', '#', '.']
p_selector = 1
height, width = [int(x) for x in input().split()]
while height or width:
for h in range(height):
for w in range(weight):
figure += pattern[p_selector]
p_selector *= -1
figure += '\n'
figure += '\n'
height, width = [i... | Traceback (most recent call last):
File "/tmp/tmpxlwololu/tmplpk9dyw0.py", line 4, in <module>
height, width = [int(x) for x in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s184268761 | p02405 | u962381052 | 1496648979 | Python | Python3 | py | Runtime Error | 0 | 0 | 374 | figure = ''
patterns = ['', '#', '.']
p_selector = 1
height, width = [int(x) for x in input().split()]
while height or width:
for h in range(height):
for w in range(weight):
figure += patterns[p_selector]
p_selector *= -1
figure += '\n'
figure += '\n'
height, width = ... | Traceback (most recent call last):
File "/tmp/tmpphepn6iz/tmpe3dzhdn6.py", line 4, in <module>
height, width = [int(x) for x in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s804258214 | p02405 | u853619096 | 1500422672 | Python | Python3 | py | Runtime Error | 0 | 0 | 278 | while True :
a,b=input().split()
h =int(a)
w=int(b)
if a==0 and b==0:
break
for i in range(h):
if i %2==0:
print(".#"*(w/2))
elif w ==1 :
print(#.")
else:
print("#."*(w-1)/2))
primt(" ") | File "/tmp/tmpi6xy_109/tmpylr970_w.py", line 12
else:
^^^^
SyntaxError: invalid syntax
| |
s372995300 | p02405 | u853619096 | 1500422723 | Python | Python3 | py | Runtime Error | 0 | 0 | 277 | while True :
a,b=input().split()
h =int(a)
w=int(b)
if a==0 and b==0:
break
for i in range(h):
if i %2==0:
print(".#"*(w/2))
elif w ==1 :
print(#.")
else:
print("#."*(w-1)/2))
print("") | File "/tmp/tmp225qkobh/tmpr3p7ifpm.py", line 12
else:
^^^^
SyntaxError: invalid syntax
| |
s973361042 | p02405 | u853619096 | 1500422900 | Python | Python3 | py | Runtime Error | 0 | 0 | 325 | while True :
a,b=input().split()
h =int(a)
w=int(b)
if a==0 and b==0:
break
for i in range(h):
if i %2==0:
print(".#"*(w/2))
if w==1:
print(".")
elif h ==1 :
print("#")
else:
print("#."*(w-1)/2))
prin... | File "/tmp/tmpvgs3hl4l/tmpy6fri_w8.py", line 15
print("#."*(w-1)/2))
^
SyntaxError: unmatched ')'
| |
s252718644 | p02405 | u853619096 | 1500423036 | Python | Python3 | py | Runtime Error | 0 | 0 | 374 | while True :
a,b=input().split()
h =int(a)
w=int(b)
if a==0 and b==0:
break
for i in range(h):
if i %2==0:
print(".#"*(w/2))
if w==1:
print(".")
elif h ==1 :
print("#")
else:
print("#."*(w-1)/2))
... | File "/tmp/tmpzcujwxds/tmpajbj8guw.py", line 15
print("#."*(w-1)/2))
^
SyntaxError: unmatched ')'
| |
s095186086 | p02405 | u853619096 | 1500423126 | Python | Python3 | py | Runtime Error | 0 | 0 | 378 | while True :
a,b=input().split()
h =int(a)
w=int(b)
if a==0 and b==0:
break
for i in range(h):
if i %2==0:
print(".#"*(w/2))
if w==1:
print(".")
elif h ==1 :
print("#")
else:
print("#."*((w+1)/2)-1))
... | File "/tmp/tmpnx5edzbi/tmp4j3hpzj4.py", line 15
print("#."*((w+1)/2)-1))
^
SyntaxError: unmatched ')'
| |
s789990798 | p02405 | u853619096 | 1500423138 | Python | Python3 | py | Runtime Error | 0 | 0 | 378 | while True :
a,b=input().split()
h =int(a)
w=int(b)
if a==0 and b==0:
break
for i in range(h):
if i %2==0:
print(".#"*(w/2))
if w==1:
print(".")
elif h ==1 :
print("#")
else:
print("#."*((w+1)/2)-1))
... | File "/tmp/tmps3tw7pbm/tmpa4ozotti.py", line 15
print("#."*((w+1)/2)-1))
^
SyntaxError: unmatched ')'
| |
s813536424 | p02405 | u853619096 | 1500423206 | Python | Python3 | py | Runtime Error | 0 | 0 | 378 | while True :
a,b=input().split()
h =int(a)
w=int(b)
if a==0 and b==0:
break
for i in range(h):
if i %2==0:
print(".#"*(w/2))
if w==1:
print(".")
elif w ==1 :
print("#")
else:
print("#."*((w+1)/2)-1))
... | File "/tmp/tmprgdw8ujb/tmpiqx68bhv.py", line 15
print("#."*((w+1)/2)-1))
^
SyntaxError: unmatched ')'
| |
s700721461 | p02405 | u744121389 | 1502969038 | Python | Python3 | py | Runtime Error | 0 | 0 | 172 |
While True:
a,b = map(int,input().strip().sprit())
if a == b == 0: break
for i in range(a):
for j in range(b):
print(''.join("#."[(i+j)%2])) | File "/tmp/tmpz9m6oftw/tmp97dnhq0s.py", line 2
While True:
^^^^
SyntaxError: invalid syntax
| |
s786136393 | p02405 | u744121389 | 1502969126 | Python | Python3 | py | Runtime Error | 0 | 0 | 184 |
While True:
a,b = map(int,input().strip().sprit())
if a == b == 0: break
for i in range(a):
for j in range(b):
print(''.join("#."[(i+j)%2]))
print() | File "/tmp/tmpxb2q8olf/tmpsq8zzy_9.py", line 2
While True:
^^^^
SyntaxError: invalid syntax
| |
s073468646 | p02405 | u316697096 | 1503208686 | Python | Python | py | Runtime Error | 0 | 0 | 303 | 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:
for j in range(W):
if j%2==0:
print "#",
elif:
print ".",
print ""
elif:
for j in range(W):
if j%2==0:
print ".",
elif:
print "#",
print "" | File "/tmp/tmpuq16hoda/tmppbg9fljo.py", line 4
break
^
IndentationError: expected an indented block after 'if' statement on line 3
| |
s942867570 | p02405 | u450020188 | 1505280858 | Python | Python3 | py | Runtime Error | 0 | 0 | 937 | while True:
H, W =(int(i) for i in input().split())
line1, line2 = "", ""
line3, line4 ="#", "."
if W % 2 == 0:
for i in range(W//2):
line1 += "#."
line2 += ".#"
if H % 2 == 0:
for i in range(H//2):
print (line1)
print ... | Traceback (most recent call last):
File "/tmp/tmpzwzm6gra/tmp7iii8icc.py", line 3, in <module>
H, W =(int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s859394276 | p02405 | u362494298 | 1505285854 | Python | Python3 | py | Runtime Error | 0 | 0 | 158 | while True:
h,w=map(int, input().split())
if h==w== 0:break
if h%2==1:
print('#.'*(w/2) + '\n')
else:
print('.#'*(w/2) + '\n') | Traceback (most recent call last):
File "/tmp/tmp9xn9vd8j/tmp01p_omvy.py", line 2, in <module>
h,w=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s254996683 | p02405 | u362494298 | 1505286683 | Python | Python3 | py | Runtime Error | 0 | 0 | 170 | while True:
h,w=map(int, input().split())
if h==w== 0:break
for x in (h+1):
if h%2==1:print('#.'*(w//2) + '\n')
else:print('.#'*(w//2) + '\n') | Traceback (most recent call last):
File "/tmp/tmpzk6z1nc6/tmpwny0zgzg.py", line 2, in <module>
h,w=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s247020486 | p02405 | u362494298 | 1505286793 | Python | Python3 | py | Runtime Error | 0 | 0 | 168 | while True:
h,w=map(int, input().split())
if h==w== 0:break
for x in (h):
if h%2==1:print('#.'*(w//2) + '\n')
else:print('.#'*(w//2) + '\n') | Traceback (most recent call last):
File "/tmp/tmph6ya4tlm/tmp7meclug5.py", line 2, in <module>
h,w=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s539562274 | p02405 | u362494298 | 1505351338 | Python | Python3 | py | Runtime Error | 0 | 0 | 209 | while 1:
h,w = map(int, input().split())
if h==w==0:break
for y in range(1,h+1):
for x in range(1,w+1):
if ((x+y)%2)==0:prnt('#',end())
else print('.',end())
print('\n') | File "/tmp/tmpyza4a7ki/tmprovbf5wp.py", line 6
if ((x+y)%2)==0:prnt('#',end())
^
IndentationError: expected an indented block after 'for' statement on line 5
| |
s451722790 | p02405 | u362494298 | 1505352087 | Python | Python3 | py | Runtime Error | 0 | 0 | 228 | while True:
h,w = map(int, input().split())
if h==w==0:break
for y in range(h):
for x in range(1,w+1):
if ((x+y)%2)==0:prnt('#',end())
else print('.',end())
print()
print() | File "/tmp/tmpzg3xddb7/tmpmptd1rn_.py", line 7
else print('.',end())
^^^^^
SyntaxError: expected ':'
| |
s328529528 | p02405 | u362494298 | 1505352192 | Python | Python3 | py | Runtime Error | 0 | 0 | 228 | while True:
h,w = map(int, input().split())
if h==w==0:break
for y in range(h):
for x in range(1,w+1):
if (x+y)%2==0:prnt('#',end='')
else print('.',end='')
print()
print() | File "/tmp/tmp5816jyvk/tmpwmq3gc24.py", line 7
else print('.',end='')
^^^^^
SyntaxError: expected ':'
| |
s878194634 | p02405 | u362494298 | 1505352252 | Python | Python3 | py | Runtime Error | 0 | 0 | 224 | while True:
h,w = map(int, input().split())
if h==w==0:break
for y in range(h):
for x in range(w):
if (x+y)%2==0:prnt('#',end='')
else print('.',end='')
print()
print() | File "/tmp/tmpejfvej7u/tmpklhgfe5e.py", line 7
else print('.',end='')
^^^^^
SyntaxError: expected ':'
| |
s932158590 | p02405 | u362494298 | 1505352388 | Python | Python3 | py | Runtime Error | 0 | 0 | 222 | while 1:
h,w = map(int, input().split())
if h==w==0:break
for y in range(h):
for x in range(w):
if (x+y)%2==0:print('#',end='')
else print('.',end='')
print()
print() | File "/tmp/tmpwoo47egs/tmp7e5u81a6.py", line 7
else print('.',end='')
^^^^^
SyntaxError: expected ':'
| |
s838586442 | p02405 | u927166214 | 1505359652 | Python | Python3 | py | Runtime Error | 0 | 0 | 1054 | While True:
H, W = map(int, input().split())
if H == 0 and W == 0:
break
countl = 0
while True:
if W == 0:
break
if countl == H:
break
elif countl % 2 == 0:
... | File "/tmp/tmpxf3gfe64/tmpdi5f5fl6.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s149089933 | p02405 | u927166214 | 1505359672 | Python | Python3 | py | Runtime Error | 0 | 0 | 1054 | While True:
H, W = map(int, input().split())
if H == 0 and W == 0:
break
countl = 0
while True:
if W == 0:
break
if countl == H:
break
elif countl % 2 == 0:
... | File "/tmp/tmph8os7vz5/tmpu_arxrwd.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s480733741 | p02405 | u664228906 | 1506404690 | Python | Python3 | py | Runtime Error | 0 | 0 | 229 | H, W = map(int, input().split())
while true:
if H ==0 and W == 0:
break
for h in range(H):
if h%2 == 0:
print("#."*(W//2) + "#"*(W%2))
else:
print(".#"*(W//2) + "."*(W%2))
print()
H, W = map(int, input().split()) | Traceback (most recent call last):
File "/tmp/tmpj0ct4wne/tmpqyc_onmu.py", line 1, in <module>
H, W = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s953605961 | p02405 | u518939641 | 1509975749 | Python | Python3 | py | Runtime Error | 0 | 0 | 228 | import sys
lines=sys.stdin.readlines()
for line in lines:
H,W=map(int,line.split())
if H == W == 0: break
for i in range(H):
unit='#.' if i % 2 == 0 else '.#'
print((unit*(W+1)//2)[1:W])
print('') | ||
s853138998 | p02405 | u825994660 | 1512654789 | Python | Python3 | py | Runtime Error | 0 | 0 | 425 | while True:
a,b = list(map(int, input().split()))
if a == b == 0:
break
for i in range(1,a+1):
if i % 2 != 0:
if b % 2 == 0:
print('#.' * (b / 2))
else:
print('#.' * ((b -1) /2) + '#')
else:
if b % 2 == 0:
... | Traceback (most recent call last):
File "/tmp/tmpclq5tpzf/tmpkrvbr7i4.py", line 2, in <module>
a,b = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s205022141 | p02405 | u825994660 | 1512654829 | Python | Python3 | py | Runtime Error | 0 | 0 | 428 | while True:
a,b = list(map(int, input().split(" ")))
if a == b == 0:
break
for i in range(1,a+1):
if i % 2 != 0:
if b % 2 == 0:
print('#.' * (b / 2))
else:
print('#.' * ((b -1) /2) + '#')
else:
if b % 2 == 0:
... | Traceback (most recent call last):
File "/tmp/tmphs93m9tk/tmppex8rl1w.py", line 2, in <module>
a,b = list(map(int, input().split(" ")))
^^^^^^^
EOFError: EOF when reading a line
| |
s178431779 | p02405 | u825994660 | 1512654914 | Python | Python3 | py | Runtime Error | 0 | 0 | 449 | while True:
a = list(map(int, input().split()))
b = a[0]
c = a[1]
if b == c == 0:
break
for i in range(1,b+1):
if i % 2 != 0:
if c % 2 == 0:
print('#.' * (c / 2))
else:
print('#.' * ((c -1) /2) + '#')
else:
i... | Traceback (most recent call last):
File "/tmp/tmp79du59fw/tmptqogd2f0.py", line 2, in <module>
a = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s497799421 | p02405 | u825994660 | 1512655284 | Python | Python3 | py | Runtime Error | 0 | 0 | 453 | while True:
a = list(map(int, input().split()))
b = a[0]
c = a[1]
if b == c == 0:
break
for i in range(1,b+1):
if i % 2 != 0:
if c % 2 == 0:
print('#.' * (c / 2))
else:
print('#.' * ((c - 1) / 2) + '#')
else:
... | Traceback (most recent call last):
File "/tmp/tmpfkwhitej/tmpnh99linu.py", line 2, in <module>
a = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s113538699 | p02405 | u825994660 | 1512656264 | Python | Python3 | py | Runtime Error | 20 | 5596 | 444 | while True:
a = list(map(int, input().split()))
b = a[0]
c = a[1]
if b == c == 0:
break
for i in range(1, b+1):
if i % 2 != 0:
if c % 2 == 0:
print('#.' * (c / 2))
else:
print('#.' * (c // 2) + '#')
else:
if ... | Traceback (most recent call last):
File "/tmp/tmpz5bv2mx4/tmpbwf2tga6.py", line 2, in <module>
a = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s210373214 | p02405 | u825994660 | 1512656289 | Python | Python3 | py | Runtime Error | 20 | 5592 | 444 | while True:
a = list(map(int, input().split()))
b = a[0]
c = a[1]
if b == c == 0:
break
for i in range(1, b+1):
if i % 2 != 0:
if c % 2 == 0:
print('#.' * (c / 2))
else:
print('#.' * (c // 2) + '#')
else:
if ... | Traceback (most recent call last):
File "/tmp/tmp4u1wlh8s/tmpc3wi6uvd.py", line 2, in <module>
a = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s488349424 | p02405 | u150984829 | 1513086328 | Python | Python3 | py | Runtime Error | 0 | 0 | 167 | while True:
h,w=map(int,input().split())
if h==0:break
for i in range(h):
x,y='#','.' if i%0==0 else '.','#'
print("".join(zip([x]*(w+1)//2,[y]*w//2)))
print() | Traceback (most recent call last):
File "/tmp/tmpc5emi5c8/tmpa5jtp2gr.py", line 2, in <module>
h,w=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s027339004 | p02405 | u150984829 | 1513086339 | Python | Python3 | py | Runtime Error | 0 | 0 | 171 | while True:
h,w=map(int,input().split())
if h==0:break
for i in range(h):
x,y=['#','.'] if i%0==0 else ['.','#']
print("".join(zip([x]*(w+1)//2,[y]*w//2)))
print() | Traceback (most recent call last):
File "/tmp/tmpv5as6m4z/tmpxpyt_pnq.py", line 2, in <module>
h,w=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s747625144 | p02405 | u150984829 | 1513086364 | Python | Python3 | py | Runtime Error | 0 | 0 | 171 | while True:
h,w=map(int,input().split())
if h==0:break
for i in range(h):
x,y=['#','.'] if i%2==0 else ['.','#']
print("".join(zip([x]*(w+1)//2,[y]*w//2)))
print() | Traceback (most recent call last):
File "/tmp/tmpxjk9vkkp/tmpohl6qm18.py", line 2, in <module>
h,w=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s211261006 | p02405 | u640809202 | 1518330083 | Python | Python3 | py | Runtime Error | 0 | 0 | 221 | while True:
h, w = map(int, input().split())
if a == 0: break
for i in range(h)
for j in range(w)
if (i+j) % 2 == 0 : print("#")
else : print(".")
print()
print()
| File "/tmp/tmpmtgiie36/tmpknmo_ujk.py", line 5
for i in range(h)
^
SyntaxError: expected ':'
| |
s502928058 | p02405 | u640809202 | 1518330108 | Python | Python3 | py | Runtime Error | 0 | 0 | 222 | while True:
h, w = map(int, input().split())
if h == 0: break
for i in range(h)
for j in range(w)
if (i+j) % 2 == 0 : print("#")
else : print(".")
print()
print()
| File "/tmp/tmp_1d9eq1r/tmpil5tagch.py", line 5
for i in range(h)
^
SyntaxError: expected ':'
| |
s832720557 | p02405 | u640809202 | 1518330150 | Python | Python3 | py | Runtime Error | 0 | 0 | 210 |
while True:
h, w = map(int, input().split())
if h == 0: break
for i in range(h)
for j in range(w)
if (i+j) % 2 == 0 : print("#")
else : print(".")
print()
| File "/tmp/tmplzwyr5x5/tmpm06afb6u.py", line 6
for i in range(h)
^
SyntaxError: expected ':'
| |
s377003119 | p02405 | u640809202 | 1518330268 | Python | Python3 | py | Runtime Error | 0 | 0 | 237 |
while True:
h, w = map(int, input().split())
if h == 0: break
for i in range(h)
for j in range(w)
if (i+j) % 2 == 0 : print("#",end="")
else : print(".",end="")
print()
print()
| File "/tmp/tmpt5cfjej8/tmp7haklqm_.py", line 6
for i in range(h)
^
SyntaxError: expected ':'
| |
s185148103 | p02405 | u641357568 | 1519037708 | Python | Python3 | py | Runtime Error | 0 | 0 | 601 | def even_line(w):
s=''
for i in range(0,w):
if i%2 == 0:
s=s+'#'
else:
s=s+'.'
print(s)
return 0
def odd_line(w):
s=''
for i in range(0,w):
if i%2 == 0:
s=s+'.'
else:
s=s+'#'
print(s)
return 0
if __name__ ... | File "/tmp/tmpe0llqw0y/tmpfspja8_9.py", line 32
print()
^
SyntaxError: invalid non-printable character U+3000
| |
s212377680 | p02405 | u641357568 | 1519037783 | Python | Python3 | py | Runtime Error | 0 | 0 | 601 | def even_line(w):
s=''
for i in range(0,w):
if i%2 == 0:
s=s+'#'
else:
s=s+'.'
print(s)
return 0
def odd_line(w):
s=''
for i in range(0,w):
if i%2 == 0:
s=s+'.'
else:
s=s+'#'
print(s)
return 0
if __name__ ... | File "/tmp/tmpqxwiq5kg/tmpq2ipgc5d.py", line 32
print()
^
SyntaxError: invalid non-printable character U+3000
| |
s199299252 | p02405 | u005739171 | 1520308656 | Python | Python3 | py | Runtime Error | 0 | 0 | 219 | while True:
a,b=map(int,input().split())
if a==0 and b==0:break
for i in range(H):
for j in range(W):
if (i + j)%2 == 0:print('#',end="")
else:print(".",end="")
print("")
print("")
| Traceback (most recent call last):
File "/tmp/tmp5_tcpde_/tmpyk70sk_a.py", line 2, in <module>
a,b=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s754613435 | p02405 | u017435045 | 1521128416 | Python | Python3 | py | Runtime Error | 0 | 0 | 377 | while 1:
h,w=map(int,input().split())
if h==w==0:
break
p=[['#'for i in range(w)] for j in range(h)]
for i in range(w):
for j in range(h):
if (i+j)%2=1:
p[i][j]='.'
else:
... | File "/tmp/tmpy_hmtpr_/tmplgrn0stc.py", line 8
if (i+j)%2=1:
^^^^^^^
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
| |
s056416890 | p02405 | u017435045 | 1521129021 | Python | Python3 | py | Runtime Error | 0 | 0 | 529 | while 1:
h,w=map(int,input().split())
if h==w==0:
break
p=[[0 for i in range(w)] for j in range(h)]
for i in range(w):
for j in range(h):
if (i+j)%2=1:
p[i][j]=1
for i in range(w):
... | File "/tmp/tmptn5lnwpt/tmpjqc4w0j7.py", line 8
if (i+j)%2=1:
^^^^^^^
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
| |
s462645337 | p02405 | u580737984 | 1524108983 | Python | Python3 | py | Runtime Error | 0 | 0 | 514 | while True:
flag = 0
line = input().split()
h = int(line[0])
w = int(line[1])
if h == 0 and w == 0:
break
for i in range(h):
if i % 2 == 0:
for j in range(w):
if(j%2==0):
print("#",end='')
else:
print(".",e... | File "/tmp/tmp86_si0yh/tmpvy4dfjhm.py", line 14
print("#",end='')
TabError: inconsistent use of tabs and spaces in indentation
| |
s240165473 | p02405 | u580737984 | 1524109186 | Python | Python3 | py | Runtime Error | 0 | 0 | 384 | while True:
flag = 0
line = input().split()
h = int(line[0])
w = int(line[1])
if h == 0 and w == 0:
break
for i in range(h):
if i % 2 == 0:
for j in range(w):
if(j%2==0):
print("#",end='')
else:
print(".",end='')
else:
for j in range(w):
if(j%2==0):
print(".",end='')
... | File "/tmp/tmpmfn3ihp0/tmpoqqabhmc.py", line 24
print()
TabError: inconsistent use of tabs and spaces in indentation
| |
s497568534 | p02405 | u485986915 | 1524482044 | Python | Python3 | py | Runtime Error | 0 | 0 | 282 | while True:
W = input()
H = input()
if H == 0 and W == 0: break
for i in range(0,H) :
for j in range(0,W):
if(i+j)%2 == 0:
print("#", end='')
else:
print(".", end='')
print("")
print("")
| File "/tmp/tmpaz9e_su6/tmp5o9wf0d7.py", line 13
print("")
^
IndentationError: unindent does not match any outer indentation level
| |
s927100692 | p02405 | u589139267 | 1524489503 | Python | Python3 | py | Runtime Error | 0 | 0 | 836 | while True:
H, W = map(int, input().split())
if H == 0 and W == 0:
break
for i in range(H/2):
if H % 2 == 0:
for j in range(W/2):
if W % 2 == 0:
print("#." * (W/2))
print("")
print(".#" * (W/2))
else:
pri... | Traceback (most recent call last):
File "/tmp/tmpk6nuhc8s/tmperk5mvxx.py", line 2, in <module>
H, W = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s528588854 | p02405 | u589139267 | 1524491047 | Python | Python3 | py | Runtime Error | 0 | 0 | 424 | while True:
H, W = map(int, input().split())
if H == 0 and W == 0:
break
for i in range(H/2):
if W % 2 == 0:
print("#." * (W/2))
else:
print("#."*(W/2) + "#")
if W % 2 == 0
print(".#" * (W/2))
else:
print(".#"*(W/2) + ".")
if H % 2 != 0
... | File "/tmp/tmpzw2w3ev5/tmple0m2pp2.py", line 10
if W % 2 == 0
^
SyntaxError: expected ':'
| |
s511801570 | p02405 | u589139267 | 1524491205 | Python | Python3 | py | Runtime Error | 0 | 0 | 447 | while True:
H, W = map(int, input().split())
if H == 0 and W == 0:
break
for i in range(int(H/2)):
if W % 2 == 0:
print("#." * int(W/2))
else:
print("#."*int(W/2) + "#")
if W % 2 == 0
print(".#" * int(W/2))
else:
print(".#"*int(W/2) + ".")
if... | File "/tmp/tmpwm7w8c3l/tmpav1kxw3x.py", line 10
if W % 2 == 0
^
SyntaxError: expected ':'
| |
s194102688 | p02405 | u806005289 | 1525229171 | Python | Python3 | py | Runtime Error | 0 | 0 | 234 | l=input().split()
a=int(l[0])
b=int(l[1])
if b%2==0:
c=b/2
while c>0:
print(l[1]*"#.")
print(l[1]*".#")
c=c-2
else:
d=b-1
c=d/2
while C>0:
print(l[1]*"#.")
print(l[1]*".#")
c=c-2
print(l[1]*"#.")
| Traceback (most recent call last):
File "/tmp/tmpjjxtrt1f/tmpt4epxckf.py", line 1, in <module>
l=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s737318328 | p02405 | u806005289 | 1525276494 | Python | Python3 | py | Runtime Error | 0 | 0 | 991 | while True:
l=input().split()
a=int(l[0])
b=int(l[1])
if a==0 and b==0:
break
else:
if a%2==0:
c=a/2
if b%2==0:
d=b/2
while c>0:
print(d*"#.")
print(d*".#")
c=c-2
... | Traceback (most recent call last):
File "/tmp/tmpeued8k8z/tmp6sgcwgzd.py", line 2, in <module>
l=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s919051770 | p02405 | u592529978 | 1525827636 | Python | Python | py | Runtime Error | 0 | 0 | 316 | H, W = map(int, raw_input().split())
while H > 0 or W > 0 :
for y in xrange(H) :
for x in xrange(W) :
if (x + y) % 2 == 0 :
sys.stdout.write("#")
else :
sys.stdout.write(".")
print
print
H, W = map(int, raw_input().split())
| Traceback (most recent call last):
File "/tmp/tmpbyg9j49o/tmppkk_zjry.py", line 1, in <module>
H, W = map(int, raw_input().split())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s338294541 | p02405 | u592529978 | 1525828677 | Python | Python | py | Runtime Error | 0 | 0 | 274 | H, W = map(int, raw_input().split())
while H > 0 or W > 0 :
for y in xrange(H) :
for x in xrange(W) :
if (x + y) % 2 == 0 :
sys.stdout.write("#")
else :
sys.stdout.write(".")
print
print
| Traceback (most recent call last):
File "/tmp/tmp78jwrlj4/tmpnq1iau8g.py", line 1, in <module>
H, W = map(int, raw_input().split())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s403831957 | p02405 | u592529978 | 1525828677 | Python | Python | py | Runtime Error | 0 | 0 | 274 | H, W = map(int, raw_input().split())
while H > 0 or W > 0 :
for y in xrange(H) :
for x in xrange(W) :
if (x + y) % 2 == 0 :
sys.stdout.write("#")
else :
sys.stdout.write(".")
print
print
| Traceback (most recent call last):
File "/tmp/tmplw5fxaxr/tmpxof94eb7.py", line 1, in <module>
H, W = map(int, raw_input().split())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s233724306 | p02405 | u592529978 | 1525830007 | Python | Python | py | Runtime Error | 0 | 0 | 297 | import sys
line = sys.stdin.readline()
while line :
H,W = map(int,line.split())
if H == 0 and W == 0: break;
for i in range(0,H):
for j in range(0,W):
if (i+j)%2 == 0: sys.stdout.write("#")
else: sys.stdout.write(".")
print ""
print ""
line = sys.stdin.readline()
| File "/tmp/tmpkd_wx390/tmp8i2znp1f.py", line 6
for i in range(0,H):
IndentationError: unexpected indent
| |
s871288174 | p02405 | u074747865 | 1526696710 | Python | Python3 | py | Runtime Error | 0 | 0 | 196 | while True:
h,w=map(int,input().split())
if h==0 & w==0:
break
for i in range(h):
for i in range(w):
if (i+j)%2==0:
print("#")
else:
print(".")
print()
| Traceback (most recent call last):
File "/tmp/tmpoqnnxa4o/tmp88nutfpt.py", line 2, in <module>
h,w=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s810125970 | p02405 | u074747865 | 1526697153 | Python | Python3 | py | Runtime Error | 0 | 0 | 213 | while True:
h,w=map(int,input().split())
if h==0 & w==0:
break
for i in range(h):
for i in range(w):
if (i+j)%2==0:
print("#", end ="")
else:
print(".", end="")
print()
| Traceback (most recent call last):
File "/tmp/tmpdl31hfvj/tmp2d_3ytnq.py", line 2, in <module>
h,w=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s228589078 | p02405 | u074747865 | 1526697249 | Python | Python3 | py | Runtime Error | 0 | 0 | 227 | while True:
h,w=map(int,input().split())
if h==0 & w==0:
break
for i in range(h):
for i in range(w):
if (i+j)%2==0:
print("#", end ="")
else:
print(".", end="")
print("")
print()
| Traceback (most recent call last):
File "/tmp/tmpo6jgyduy/tmpdgfi43bv.py", line 2, in <module>
h,w=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s907985818 | p02405 | u074747865 | 1526697275 | Python | Python3 | py | Runtime Error | 0 | 0 | 229 | while True:
h,w=map(int,input().split())
if h==0 & w==0:
break
for i in range(h):
for i in range(w):
if (i+j)%2==0:
print("#", end ="")
else:
print(".", end="")
print("")
print("")
| Traceback (most recent call last):
File "/tmp/tmp37cql1vv/tmpwn5sptgj.py", line 2, in <module>
h,w=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s234398858 | p02405 | u074747865 | 1526704275 | Python | Python3 | py | Runtime Error | 0 | 0 | 133 | while True:
h,w=map(int,input().split())
if h==0 & w==0:
break
for i in range(h):
print("#."*w[i%2:][:w])
print()
| Traceback (most recent call last):
File "/tmp/tmpjccowlu4/tmp16cdfqgq.py", line 2, in <module>
h,w=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s287249610 | p02405 | u237094818 | 1527691124 | Python | Python3 | py | Runtime Error | 0 | 0 | 485 | # -*- coding: utf-8
while True:
a = list(map(int,input().split()))
if a == [0,0]:
break
if a[1] % 2 == 0:
b1 = "#."*int(a[1]/2)
b2 = ".#"*int(a[1]/2)
if a[1] % 2 == 1:
b1 = "#."*int((a[1]-1)/2)+"#"
b2 = ".#"*int((a[1]-1)/2)+"."
if a[0] %2 == 0:
for i in range(a[0]... | Traceback (most recent call last):
File "/tmp/tmpdjq24fpd/tmp69s7upar.py", line 4, in <module>
a = list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s119145012 | p02405 | u929141425 | 1528969524 | Python | Python3 | py | Runtime Error | 0 | 0 | 1074 | class dice:
def __init__(self):
self.d = [0] + list(map(int, input().split()))
def move(self):
dir = list(input())
up = [0,1,2,3]
for a in self.dir:
if a == "E":
up = [0, 7-up[3], up[2], up[1]]
elif a == "W":
up = ... | Traceback (most recent call last):
File "/tmp/tmp5t1z0x04/tmpym8sdwsa.py", line 32, in <module>
ob = dice()
^^^^^^
File "/tmp/tmp5t1z0x04/tmpym8sdwsa.py", line 3, in __init__
self.d = [0] + list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s742069850 | p02405 | u763301852 | 1363009647 | Python | Python | py | Runtime Error | 0 | 0 | 262 | def draw(h, w):
for i in range(h):
for j in range(w):
print("#" if (i+j)%2 == 0 else ".", end='')
print("")
print("")
while True:
h, w = map(int, raw_input().split())
if h == 0 and w == 0:
break
draw(h, w) | Traceback (most recent call last):
File "/tmp/tmpzxw58siz/tmpby6eujzg.py", line 9, in <module>
h, w = map(int, raw_input().split())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s055962399 | p02405 | u912237403 | 1370871144 | Python | Python | py | Runtime Error | 0 | 0 | 339 | import stdin from sys
x = []
for line in sys.stdin:
h,w = line.split()
h,w = int(h), int(w)
if h == 0 and w== 0: break
x.append([h,w])
for i in range(len(x)):
h, w = x[i]
s1 = '.#' * ((w+1)/2)
s2 = '#.' * ((w+1)/2)
for j in range(h):
if (j & 1)==0: print s2[:w]
else: pri... | File "/tmp/tmplp2ggid_/tmpk84hdj9j.py", line 1
import stdin from sys
^^^^
SyntaxError: invalid syntax
| |
s135428298 | p02405 | u912237403 | 1370871179 | Python | Python | py | Runtime Error | 0 | 0 | 345 | from sys import stdin
x = []
for line in sys.stdin:
h,w = line.split()
h,w = int(h), int(w)
if h == 0 and w== 0: break
x.append([h,w])
for i in range(len(x)):
h, w = x[i]
s1 = '.#' * ((w+1)/2)
s2 = '#.' * ((w+1)/2)
for j in range(h):
if (j & 1)==0: print s2[:w]
else: pr... | File "/tmp/tmpb2yaluwe/tmpe45490j3.py", line 14
if (j & 1)==0: print s2[:w]
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s841179999 | p02405 | u814387366 | 1402746338 | Python | Python | py | Runtime Error | 0 | 0 | 198 | import sys
while True:
h,w=map(int,raw_input().split())
for i in range(0,h):
for j in range(0,w):
if (i+j)%2==0:sys.stdout.write("#")
else :sys.stdout.write(".")
print ""
print "" | File "/tmp/tmpzrg419un/tmpnzq9yf5v.py", line 10
print ""
^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s773448704 | p02406 | u075006557 | 1541063371 | Python | Python3 | py | Runtime Error | 0 | 0 | 117 | a = int(input())
for i in range(1, a+1):
if(i % 3 == 0 or i % 10 == 3):
print(" %d"%i, emd = "")
print()
| Traceback (most recent call last):
File "/tmp/tmppu7puq30/tmp2m64dcym.py", line 1, in <module>
a = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s657180685 | p02406 | u075006557 | 1541063492 | Python | Python3 | py | Runtime Error | 0 | 0 | 117 | a = int(input())
for i in range(1, a+1):
if(i % 3 == 0 or i % 10 == 3):
print(" %d"%i, emd = "")
print()
| Traceback (most recent call last):
File "/tmp/tmpmbif2p4l/tmpc2274elb.py", line 1, in <module>
a = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s563823221 | p02406 | u075006557 | 1541064386 | Python | Python3 | py | Runtime Error | 0 | 0 | 187 | a = int(input())
for i in range(1, a+1):
while True:
if(i < 100):
break
if(i % 3 == 0 or i % 10 == 3 or i // 10 = 3):
print(" %d"%i, end = "")
print()
| File "/tmp/tmp3ky8s2bp/tmpnz512ocp.py", line 6
if(i % 3 == 0 or i % 10 == 3 or i // 10 = 3):
^
SyntaxError: invalid syntax
| |
s857569135 | p02406 | u498462680 | 1546304986 | Python | Python3 | py | Runtime Error | 0 | 0 | 450 | inData = int(input())
seqData = list(range(1,inData+1,1))
outData = [0] * inData
for thisData in seqData:
if thisData == inData:
if thisData%3 == 0 or thisData%10==3 or int((thisData/10))%10==3:
print(" "+str(thisData))
else:
print(" "+""\n")
else:
if thisData%3 ... | File "/tmp/tmps1r_t5pk/tmp7wrjofn3.py", line 10
print(" "+""\n")
^
SyntaxError: unexpected character after line continuation character
| |
s612282126 | p02406 | u498462680 | 1546331041 | Python | Python3 | py | Runtime Error | 0 | 0 | 940 | inData = int(input())
seqData = list(range(1,inData+1,1))
outData = [0] * inData
for thisData in seqData:
if thisData == inData:
if thisData%3 == 0 or thisData%10==3:
print(" "+str(thisData), end = "")
else:
for i in range(5):
i=i+1
over = 10... | File "/tmp/tmpbk4rk8ni/tmpahigavvr.py", line 31
pass:
^
SyntaxError: invalid syntax
| |
s684282038 | p02406 | u498462680 | 1546331246 | Python | Python3 | py | Runtime Error | 0 | 0 | 915 | inData = int(input())
seqData = list(range(1,inData+1,1))
outData = [0] * inData
for thisData in seqData:
if thisData == inData:
if thisData%3 == 0 or thisData%10==3:
print(" "+str(thisData))
else:
for i in range(5):
i=i+1
over = 10 ** i
... | File "/tmp/tmpf_mvh_wu/tmpfgos41nr.py", line 18
pass:
^
SyntaxError: invalid syntax
| |
s777167135 | p02406 | u792747184 | 1551412599 | Python | Python3 | py | Runtime Error | 0 | 0 | 212 | n = int(input())
i = 1
for i range in (1,n):
if i % 10 == 3:
print('{0}'.format(i))
elif i % 3 == 0:
if i % 10 == 3:
continue
print('{0}'.format(i))
i = i + 1
| File "/tmp/tmp8rck42to/tmp2tq4xp3r.py", line 3
for i range in (1,n):
^^^^^
SyntaxError: invalid syntax
| |
s708447180 | p02406 | u792747184 | 1551412761 | Python | Python3 | py | Runtime Error | 0 | 0 | 222 | n = int(input())
a = 1
for i range in (1,n):
if i % 10 == 3:
print('{0}'.format(i))
elif i % 3 == 0:
if i % 10 == 3:
continue
print('{0}'.format(i))
a = i
a = a + 1
| File "/tmp/tmppuencyfq/tmpvltgraia.py", line 3
for i range in (1,n):
^^^^^
SyntaxError: invalid syntax
| |
s828369736 | p02406 | u792747184 | 1551412820 | Python | Python3 | py | Runtime Error | 0 | 0 | 224 | n = int(input())
a = 1
for i range in (1,n+1):
if i % 10 == 3:
print('{0}'.format(i))
elif i % 3 == 0:
if i % 10 == 3:
continue
print('{0}'.format(i))
a = i
a = a + 1
| File "/tmp/tmphbqaz5pa/tmpcwh9hh8k.py", line 3
for i range in (1,n+1):
^^^^^
SyntaxError: invalid syntax
| |
s398386193 | p02406 | u792747184 | 1551412882 | Python | Python3 | py | Runtime Error | 0 | 0 | 220 | n = int(input())
a = 1
for i range in (n):
if i % 10 == 3:
print('{0}'.format(i))
elif i % 3 == 0:
if i % 10 == 3:
continue
print('{0}'.format(i))
a = i
a = a + 1
| File "/tmp/tmpfnu5qm02/tmp_f2gdjlr.py", line 3
for i range in (n):
^^^^^
SyntaxError: invalid syntax
| |
s219572207 | p02406 | u792747184 | 1551413384 | Python | Python3 | py | Runtime Error | 0 | 0 | 196 | n = int(input())
a = 1
for i range in (n):
if i % 10 == 3:
print('{0}'.format(i))
elif i % 3 == 0:
if i % 10 == 3:
continue
print('{0}'.format(i))
| File "/tmp/tmpvaexjlig/tmp7f60tpmi.py", line 3
for i range in (n):
^^^^^
SyntaxError: invalid syntax
| |
s544454468 | p02406 | u792747184 | 1551413396 | Python | Python3 | py | Runtime Error | 0 | 0 | 198 | n = int(input())
a = 1
for i range in (1,n):
if i % 10 == 3:
print('{0}'.format(i))
elif i % 3 == 0:
if i % 10 == 3:
continue
print('{0}'.format(i))
| File "/tmp/tmp7r4fyfn1/tmpd2zycwks.py", line 3
for i range in (1,n):
^^^^^
SyntaxError: invalid syntax
| |
s931906996 | p02406 | u252054808 | 1556178967 | Python | Python3 | py | Runtime Error | 0 | 0 | 304 | def nabeatsu(n):
if(n % 3 == 0):
return True
temp = n
while(temp > 0):
if(temp % 10 == 3):
return True
temp = temp // 10
return False
x = int(input())
ans = []
for i in range(x):
if(nabeatsu(i + 1)):
ans.append(i + 1)
print(' '.join(ans))
| Traceback (most recent call last):
File "/tmp/tmp0qumcu47/tmpnngjqbbj.py", line 11, in <module>
x = int(input())
^^^^^^^
EOFError: EOF when reading a line
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.