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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s893006178 | p02404 | u085472528 | 1469603122 | Python | Python3 | py | Runtime Error | 0 | 0 | 243 | 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):
print('*', end='')
else:
print('+', end='')
print()
print() | File "/tmp/tmp21zadb80/tmpt1lqd48i.py", line 6
for h in range(H):
^
IndentationError: unindent does not match any outer indentation level
| |
s647733659 | p02404 | u085472528 | 1469603309 | Python | Python3 | py | Runtime Error | 0 | 0 | 314 | 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 == 0 or h == h -1 or w == 0 or w == W - 1:
print('#', end='')
else:
print('*', end='')
print()
print() | File "/tmp/tmpkkcfq_5j/tmpwjbwvo24.py", line 6
for h in range(H):
^
IndentationError: unindent does not match any outer indentation level
| |
s444601211 | p02404 | u085472528 | 1469603337 | Python | Python3 | py | Runtime Error | 0 | 0 | 315 | 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 == 0 or h == h -1 or w == 0 or w == W - 1:
print('#', end='')
else:
print('*', end='')
print()
print() | Traceback (most recent call last):
File "/tmp/tmpuylsble9/tmp3llhk5q8.py", line 2, in <module>
H, W =[int(i) for i in input().split ]
^^^^^^^
EOFError: EOF when reading a line
| |
s335088178 | p02404 | u085472528 | 1469603366 | Python | Python3 | py | Runtime Error | 0 | 0 | 315 | 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 == 0 or h == H -1 or w == 0 or w == W - 1:
print('#', end='')
else:
print('*', end='')
print()
print() | Traceback (most recent call last):
File "/tmp/tmp0wb7sbpu/tmppb5upq2r.py", line 2, in <module>
H, W =[int(i) for i in input().split ]
^^^^^^^
EOFError: EOF when reading a line
| |
s735391402 | p02404 | u085472528 | 1469603391 | Python | Python3 | py | Runtime Error | 0 | 0 | 315 | 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 == 0 or h == H -1 or w == 0 or w == W - 1:
print('#', end='')
else:
print('.', end='')
print()
print() | Traceback (most recent call last):
File "/tmp/tmpfny3m0w_/tmpdc741bat.py", line 2, in <module>
H, W =[int(i) for i in input().split ]
^^^^^^^
EOFError: EOF when reading a line
| |
s741157099 | p02404 | u757827098 | 1469603396 | Python | Python3 | py | Runtime Error | 0 | 0 | 318 | 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 == 0 or h == h -1 or w == 0 or w == W - 1:
print('#', end='')
else:
print('*', end='')
print()
print() | Traceback (most recent call last):
File "/tmp/tmpqkqjvtbl/tmpzr9sunjd.py", line 2, in <module>
H, W =[int(i) for i in input().split ]
^^^^^^^
EOFError: EOF when reading a line
| |
s800043713 | p02404 | u671553883 | 1469603402 | Python | Python3 | py | Runtime Error | 0 | 0 | 319 | while True:
H, W = [int(i) fir i in input().split()]
if H == W == 0:
break
for h in range(H):
for w in range(W):
if h == 0 or h == H -1 or w == 0 or w == W - 1:
print('#', end='')
else:
print('.', end='')
print()
print() | File "/tmp/tmpet6jbwn5/tmpdvuew0eg.py", line 2
H, W = [int(i) fir i in input().split()]
^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s207634407 | p02404 | u600195957 | 1469603418 | Python | Python3 | py | Runtime Error | 0 | 0 | 318 | while True:
H, W = [int(i) for i in input().split()]
if H == W == 0:
break
for a in
for h in range(H):
for h in range(W):
if h == 0 or h == H - 1 or w == 0 or w == W -1:
print('#', end='')
else:
print('.', end='')
print()
print() | File "/tmp/tmp5rfn182r/tmpsp41ewtp.py", line 7
for a in
^
SyntaxError: invalid syntax
| |
s561457560 | p02404 | u757827098 | 1469603419 | Python | Python3 | py | Runtime Error | 0 | 0 | 318 | 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 == 0 or h == h -1 or w == 0 or w == W - 1:
print('#', end='')
else:
print('.', end='')
print()
print() | Traceback (most recent call last):
File "/tmp/tmph1g5sm0u/tmppii111pq.py", line 2, in <module>
H, W =[int(i) for i in input().split ]
^^^^^^^
EOFError: EOF when reading a line
| |
s963379744 | p02404 | u085472528 | 1469603425 | Python | Python3 | py | Runtime Error | 0 | 0 | 316 | 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 == 0 or h == H -1 or w == 0 or w == W - 1:
print('#', end='')
else:
print('.', end='')
print()
print() | File "/tmp/tmpzt7hges5/tmpo6jyr4oy.py", line 15
print()
^
IndentationError: unindent does not match any outer indentation level
| |
s967415627 | p02404 | u757827098 | 1469603437 | Python | Python3 | py | Runtime Error | 0 | 0 | 320 | 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 == 0 or h == h -1 or w == 0 or w == W - 1:
print('#', end=' ')
else:
print('.', end=' ')
print()
print() | Traceback (most recent call last):
File "/tmp/tmp7gozntc0/tmp3t3y0hot.py", line 2, in <module>
H, W =[int(i) for i in input().split ]
^^^^^^^
EOFError: EOF when reading a line
| |
s549242621 | p02404 | u514745787 | 1469603438 | Python | Python3 | py | Runtime Error | 0 | 0 | 312 | while True:
H, W =[int(i) for i in input().split()]
if H == W == 0:
break
for i in range(H):
for i in range(W):
if h == 0 or h == H - 1 or w == 0 or w == W - 1:
print('#', end='')
else:
print('.', end='')
print()
print() | Traceback (most recent call last):
File "/tmp/tmpg_qm8_92/tmp4827xlza.py", line 2, in <module>
H, W =[int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s994859490 | p02404 | u628732336 | 1469603441 | Python | Python3 | py | Runtime Error | 0 | 0 | 321 | 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 == 0 or h == H - 1 or w == 0 or w == W - 1:
print('#', end='')
else:
print('.', end='')
print()
print(... | File "/tmp/tmpwi0t359h/tmpzldq82k_.py", line 13
print()
^
IndentationError: unindent does not match any outer indentation level
| |
s078752023 | p02404 | u085472528 | 1469603451 | Python | Python3 | py | Runtime Error | 0 | 0 | 315 | 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 == 0 or h == H -1 or w == 0 or w == W - 1:
print('#', end='')
else:
print('.', end='')
print()
print() | Traceback (most recent call last):
File "/tmp/tmp8gtoxk5e/tmpfuhxo_ew.py", line 2, in <module>
H, W =[int(i) for i in input().split ]
^^^^^^^
EOFError: EOF when reading a line
| |
s599890725 | p02404 | u085472528 | 1469603529 | Python | Python3 | py | Runtime Error | 0 | 0 | 317 | 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 == 0 or h == H - 1 or w == 0 or w == W - 1:
print('#', end='')
else:
print('.', end='')
print()
print() | Traceback (most recent call last):
File "/tmp/tmpg5q6aq6p/tmpd4yndw9k.py", line 2, in <module>
H, W =[int(i) for i in input().split ]
^^^^^^^
EOFError: EOF when reading a line
| |
s541341422 | p02404 | u628732336 | 1469603530 | Python | Python3 | py | Runtime Error | 0 | 0 | 321 | 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 == 0 or h == H - 1 or w == 0 or w == W - 1:
print('#', end='')
else:
print('.', end='')
print()
print(... | File "/tmp/tmp28n3b4gk/tmp_nf4sfyr.py", line 13
print()
^
IndentationError: unindent does not match any outer indentation level
| |
s569000819 | p02404 | u757827098 | 1469603530 | Python | Python3 | py | Runtime Error | 0 | 0 | 320 | 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 == 0 or h == h -1 or w == 0 or w == W - 1:
print('#', end=' ')
else:
print('.', end=' ')
print()
print() | Traceback (most recent call last):
File "/tmp/tmp2c62gcr6/tmpwkgejfgv.py", line 2, in <module>
H, W =[int(i) for i in input().split ]
^^^^^^^
EOFError: EOF when reading a line
| |
s330056998 | p02404 | u747009765 | 1469603550 | Python | Python3 | py | Runtime Error | 0 | 0 | 322 | 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 == 0 or h == H - 1 or w == 0 or w == W - 1:
print('#', end='')
else:
print('.', end='')
print()
print... | File "/tmp/tmpluri3i_v/tmpd8prwmpv.py", line 2
H, W = [int(i), for i in input().split()]
^^^^^^^
SyntaxError: did you forget parentheses around the comprehension target?
| |
s214543552 | p02404 | u628732336 | 1469603578 | Python | Python3 | py | Runtime Error | 0 | 0 | 236 | for vertical in range(h + 1):
for horizontal in range(vertical):
if horizontal == 0 or horizontal == vertical - 1\
or vertical == h:
print('*', end='')
else:
print('+', end='') | Traceback (most recent call last):
File "/tmp/tmpdmz9i8bb/tmpio91ga57.py", line 1, in <module>
for vertical in range(h + 1):
^
NameError: name 'h' is not defined
| |
s307812568 | p02404 | u587193722 | 1469603584 | Python | Python3 | py | Runtime Error | 0 | 0 | 259 | H, W= [int(i) for i in input().split()]
for i in range(0,H):
if W ==0 and H ==0:
break
elif i == 0:
print('#'*W)
elif i == (y-1):
print('#'*W)
elif H == 1:
break
else:
print('#','.'*(W-2),'#',sep='') | Traceback (most recent call last):
File "/tmp/tmpazg7wqnh/tmp9r3hh5th.py", line 1, in <module>
H, W= [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s038826875 | p02404 | u628732336 | 1469603584 | Python | Python3 | py | Runtime Error | 0 | 0 | 236 | for vertical in range(h + 1):
for horizontal in range(vertical):
if horizontal == 0 or horizontal == vertical - 1\
or vertical == h:
print('*', end='')
else:
print('+', end='') | Traceback (most recent call last):
File "/tmp/tmpseiltn7s/tmpbu7wkywo.py", line 1, in <module>
for vertical in range(h + 1):
^
NameError: name 'h' is not defined
| |
s250940456 | p02404 | u175111751 | 1477514882 | Python | Python3 | py | Runtime Error | 0 | 0 | 283 | while True:
H, W = [int(x) for x in input().split()]
if H == W == 0:
break
for i in range(H):
if i == 0 or i == H - 1:
print('#'*W)
else:
print(''.join(*['#' if c == 0 or c == W - 1 else '.' for c in range(W)]))
print() | Traceback (most recent call last):
File "/tmp/tmpex6oc_9c/tmpvo40u38w.py", line 2, in <module>
H, W = [int(x) for x in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s551767791 | p02404 | u619785977 | 1478247288 | Python | Python | py | Runtime Error | 0 | 0 | 183 | exec("h = input()\nw = input()\no = ''\nfor i in range(0, h):\n for p in range(0,w):\n if i == 0 or i == h-1 or p == 0 or p == w-1: o += '#'\n else: o += '.'\n o += '\\n'\nprint o") | Traceback (most recent call last):
File "/tmp/tmpauf7mjj_/tmpmbjsp739.py", line 1, in <module>
exec("h = input()\nw = input()\no = ''\nfor i in range(0, h):\n for p in range(0,w):\n if i == 0 or i == h-1 or p == 0 or p == w-1: o += '#'\n else: o += '.'\n o += '\\n'\nprint o")
File "<string>", line 9
print... | |
s978271439 | p02404 | u086566114 | 1479428203 | Python | Python | py | Runtime Error | 0 | 0 | 205 | while True:
[W, H] = raw_input().split()
if [W, H] == [0, 0]:
break
print('#' * W)
counter = 0
while counter < H - 1:
print('#' + '.' * (W - 2) + '#')
print('#' * W) | Traceback (most recent call last):
File "/tmp/tmpi3w2_2jn/tmpo95ivxua.py", line 2, in <module>
[W, H] = raw_input().split()
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s264334877 | p02404 | u186082958 | 1480502021 | Python | Python3 | py | Runtime Error | 0 | 0 | 421 | while True:
a,b=map(int,input().split())
if a==0 and b==0:break
f=[[0 for i in range(a)]for j in range(b)]
for i in range(a):
for j in range(b):
if i==0 or i==a-1 or j==0 or j==b-1:
f[i][j]=1
for i in range(a):
for j in range(b):
if f[i][j]==1:... | Traceback (most recent call last):
File "/tmp/tmpk26kmzil/tmpxiw42_9q.py", line 2, in <module>
a,b=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s387076625 | p02404 | u865138391 | 1482516536 | Python | Python3 | py | Runtime Error | 0 | 0 | 156 | while True:
h, w = map( int, input().split() )
if not h and not w: break
print('#' * w +'\n' + ('#' + '.' * w-2 + '#\n') * h-2 + '#' * w + '\n') | Traceback (most recent call last):
File "/tmp/tmpmbad4ks5/tmpmefxz2jd.py", line 2, in <module>
h, w = map( int, input().split() )
^^^^^^^
EOFError: EOF when reading a line
| |
s099725192 | p02404 | u144068724 | 1486046765 | Python | Python3 | py | Runtime Error | 0 | 0 | 203 | while 1:
H,W = map(int,input().split())
if H == 0 and W == 0:
break
print ("#") * W
for i in range(H-2):
print ("#" + "." * (W-2) + "#")
print ("#") * W
print ("") | Traceback (most recent call last):
File "/tmp/tmp37u1k2zb/tmpw0zis45t.py", line 2, in <module>
H,W = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s821718689 | p02404 | u957680575 | 1492606900 | Python | Python3 | py | Runtime Error | 0 | 0 | 326 | while True:
H,W= map(int, input().split())
s = "#"
a = H
b = "."
for i in range(H):
if H==0 and W==0:
break
elif a==H or a==1:
x = s*W
print(x)
a-=1
else:
y = s+b*(W-2)+s
print(y)
a-=1
pri... | Traceback (most recent call last):
File "/tmp/tmp56yte5v8/tmpb50urqzs.py", line 2, in <module>
H,W= map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s232223728 | p02404 | u957680575 | 1492607182 | Python | Python3 | py | Runtime Error | 0 | 0 | 353 | while True:
H,W= map(int, input().split())
s = "#"
a = H
b = "."
for i in range(H):
if 1<a<H:
y = s+b*(W-2)+s
print(y)
a-=1
elif a==H or a==1:
x = s*W
print(x)
a-=1
else:
H==0 and W==... | Traceback (most recent call last):
File "/tmp/tmp9d8ah17s/tmp8yluwhkp.py", line 2, in <module>
H,W= map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s381079253 | p02404 | u957680575 | 1492607300 | Python | Python3 | py | Runtime Error | 0 | 0 | 344 | while True:
H,W= map(int, input().split())
s = "#"
a = H
b = "."
for i in range(H):
if 1<a<H:
y = s+b*(W-2)+s
print(y)
a-=1
elif a==H or a==1:
x = s*W
print(x)
a-=1
else:
H==0 and W==0
... | Traceback (most recent call last):
File "/tmp/tmpvuw5vk2i/tmpun36lmc3.py", line 2, in <module>
H,W= map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s230680452 | p02404 | u156215655 | 1494042478 | Python | Python3 | py | Runtime Error | 0 | 0 | 151 | while(True):
h,w=map(int,input())
if h==0 and w==0:
break
rect='#'*w+'\n'
rect+=('#'+'.'*(w-2)+'#\n')*(h-2)
rect='#'*w+'\n'
print(rect) | Traceback (most recent call last):
File "/tmp/tmpecss2iqg/tmp7vydqyeo.py", line 2, in <module>
h,w=map(int,input())
^^^^^^^
EOFError: EOF when reading a line
| |
s943934977 | p02404 | u213265973 | 1494297282 | Python | Python3 | py | Runtime Error | 0 | 0 | 230 | while True:
num = [int(i) for i in input().split(" ")]
H = num[0]
W = [1]
if W == H == 0:
break
print("#" * W, end = "\n")
print( ( ("#" + "." * (W - 2) + "#" ) + "\n") * (H -2) )
print("#" * W) | Traceback (most recent call last):
File "/tmp/tmpw8hpdup9/tmpwvkqno2g.py", line 2, in <module>
num = [int(i) for i in input().split(" ")]
^^^^^^^
EOFError: EOF when reading a line
| |
s358899539 | p02404 | u650790815 | 1495684171 | Python | Python3 | py | Runtime Error | 0 | 0 | 164 | import sys
while 1:
h,w = sys.stdin.readline().split()
if h == w == 0:break
print('#'*w)
print(('#'+'.'*(w-2)+'#\n')*(h-2),end ='')
print('#'*w) | Traceback (most recent call last):
File "/tmp/tmpqay9fqc2/tmpjn5vbs6w.py", line 3, in <module>
h,w = sys.stdin.readline().split()
^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s169749068 | p02404 | u650790815 | 1495700452 | Python | Python3 | py | Runtime Error | 0 | 0 | 98 | H,W = map(int,input()split())
print('#'*W)
print(('#'+'.'*(W-2)+'#\n')*(H-2),end ='')
print('#'*W) | File "/tmp/tmpidcbr5ie/tmpkpgmlmnj.py", line 1
H,W = map(int,input()split())
^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s507441066 | p02404 | u650790815 | 1496032936 | Python | Python3 | py | Runtime Error | 0 | 0 | 155 | import sys
while 1:
h,w = map(int,sys.stdin.readline().split())
print('#'*w)
print(('#' + '.' * (w-2) + '#\n')*(h-2),end = '')
print('#'*w) | Traceback (most recent call last):
File "/tmp/tmp8o9hf8py/tmp5moc45tv.py", line 3, in <module>
h,w = map(int,sys.stdin.readline().split())
^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s338057034 | p02404 | u627002197 | 1497705394 | Python | Python3 | py | Runtime Error | 0 | 0 | 282 | while 1:
H,W = [int(i) for i in input().split()]
if input_data[0]==0 and input_data[1]==0:
break
for i in range(H):
for j in range(W):
if (i==0 or i==H-1) or (j == 0 or j == W-1):
print("#",end='')
else:
print(".",end='')
if j == W-1:
print("\n",end='') | Traceback (most recent call last):
File "/tmp/tmplmcrw8um/tmpb8wfzrap.py", line 2, in <module>
H,W = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s264401227 | p02404 | u853619096 | 1500382179 | Python | Python3 | py | Runtime Error | 0 | 0 | 326 | while True:
a = input().split()
h=int(a)
w=int(b)
if h ==0 and w==0:
break
else:
print(w*"#")
if h>=3 and h>=3:
for i in range(h-2):
print(1*"#"+(w-2)*"."+1*"#")
print(w * "#")
elif h==2:
print(w * "#")
prin... | Traceback (most recent call last):
File "/tmp/tmpar_ptmax/tmpzmkbp5ep.py", line 2, in <module>
a = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s334555353 | p02404 | u659034691 | 1502687611 | Python | Python3 | py | Runtime Error | 0 | 0 | 421 | #15frame
H,W=(int(i) for i in input().split())
while H!=0 or W!=0:
for i in range(H):
S=""
for j in range(W):
S+="#"
print(S)
for i in range(H-2):
S="#"
for i in range(W-2):
S+="."
S+="#"
print(S)
S=""
for i in range(W):
... | File "/tmp/tmp0d3q7wa8/tmpncq9v9dv.py", line 8
print(S)
^
IndentationError: unindent does not match any outer indentation level
| |
s182428501 | p02404 | u283452598 | 1503047217 | Python | Python3 | py | Runtime Error | 0 | 0 | 189 | while True:
W,H = map(int,input().split())
if W==0 & H==0:
break
print("#"*H)
for i in range(1,W-1):
print("#"+"."*(H-2)+"#")
print("#"*H)
print(\n) | File "/tmp/tmp0bsnhboz/tmp7v7xhbt4.py", line 10
print(\n)
^
SyntaxError: unexpected character after line continuation character
| |
s321682961 | p02404 | u283452598 | 1503047238 | Python | Python3 | py | Runtime Error | 0 | 0 | 196 | while True:
W,H = tuple(map(int,input().split()))
if W==0 & H==0:
break
print("#"*H)
for i in range(1,W-1):
print("#"+"."*(H-2)+"#")
print("#"*H)
print(\n) | File "/tmp/tmp95p1d55c/tmp9wkyt0c4.py", line 10
print(\n)
^
SyntaxError: unexpected character after line continuation character
| |
s280813626 | p02404 | u727538672 | 1504693598 | Python | Python3 | py | Runtime Error | 0 | 0 | 945 | while True:
H, W = map(int, input().split())
if H == 0 and W == 0:
break
countH, countW = 0, 0
while True:
if countH == H:
break
if countH == 0 or countH == H - 1:
while True:
... | File "/tmp/tmpljxrcktt/tmpp1jxzy2d.py", line 28
~
^
SyntaxError: invalid syntax
| |
s643916155 | p02404 | u362494298 | 1505285069 | Python | Python3 | py | Runtime Error | 0 | 0 | 151 | while True:
h,w=map(int, input().split())
if h==w== 0:break
print('#' * w)
print('#' + '.'*(w-2) + '#\n')*(h-2)
print('#'*w + '\n') | Traceback (most recent call last):
File "/tmp/tmpzs5aodkm/tmp5yzi735d.py", line 2, in <module>
h,w=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s399555633 | p02404 | u362494298 | 1505285257 | Python | Python3 | py | Runtime Error | 0 | 0 | 140 | while True:
h,w=map(int, input().split())
if h==w== 0:break
print('#' * w + '\n' +'#' + '.'*(w-2) + '#\n')*(h-2) +'#'* w + '\n') | File "/tmp/tmpbfsclhau/tmp0_5uvsh2.py", line 4
print('#' * w + '\n' +'#' + '.'*(w-2) + '#\n')*(h-2) +'#'* w + '\n')
^
SyntaxError: unmatched ')'
| |
s764268705 | p02404 | u197670577 | 1508074107 | Python | Python | py | Runtime Error | 0 | 0 | 192 | While True:
H, W = map(int, raw_input().split())
if H == W == 0:
break
print "#" * W
for i in range(H -2):
print "#" + "." *(W-2) + "#"
print "#" * W + "\n" | File "/tmp/tmpe_nrrsb_/tmp53391hi0.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s065595949 | p02404 | u197670577 | 1508074218 | Python | Python | py | Runtime Error | 0 | 0 | 195 | While True:
H, W = map(int, raw_input().split())
if H == W == 0:
break
print "#" * W
for i in range(H -2):
print "#" + "." *(W-2) + "#"
print "#" * W
print | File "/tmp/tmp8voomv_7/tmp62eyl9go.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s634575583 | p02404 | u197670577 | 1508074400 | Python | Python | py | Runtime Error | 0 | 0 | 196 | While True:
H, W = map(int, raw_input().split())
if H == W == 0:
break
print "#" * W
for i in xrange(H -2):
print "#" + "." *(W-2) + "#"
print "#" * W
print | File "/tmp/tmpt7yia4pt/tmpkija450p.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s457918399 | p02404 | u954858867 | 1510218378 | Python | Python | py | Runtime Error | 0 | 0 | 185 | while True:
h,w = map(int, raw_input().split())
if h == w == 0:
break
ret += '#'*w+'\n'
ret += ('#' + '.' * (w-2) + '#\n') * (h - 2)
ret += '#'*w+'\n\n'
print ret, | File "/tmp/tmpi5m4wz_f/tmp3vyad2s8.py", line 8
print ret,
^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s305904802 | p02404 | u899891332 | 1512549203 | Python | Python3 | py | Runtime Error | 0 | 0 | 151 | HW=input().split()
map(int(), HW)
print('#'*HW[1])
for i in range(HW[0]-2):
print('#',end='')
print('.'*(HW[1]-2),end='"')
print('#'*HW[1])
print() | Traceback (most recent call last):
File "/tmp/tmp92b0_rwo/tmpiukfrzpm.py", line 1, in <module>
HW=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s244672808 | p02404 | u899891332 | 1512550023 | Python | Python3 | py | Runtime Error | 0 | 0 | 211 | whlie True:
HW=input().split()
HW=[int(x) for x in HW]
if HW[0] == 0: break
print('#'*HW[1])
for i in range(HW[0]-2):
print('#',end='')
print('.'*(HW[1]-2),end='"')
print('#'*HW[1])
print() | File "/tmp/tmp_knqwjzo/tmpiqxzlfcd.py", line 1
whlie True:
^^^^
SyntaxError: invalid syntax
| |
s751242730 | p02404 | u899891332 | 1512550226 | Python | Python3 | py | Runtime Error | 0 | 0 | 211 | whlie True:
HW=input().split()
HW=[int(x) for x in HW]
if HW[0] == 0: break
print('#'*HW[1])
for i in range(HW[0]-2):
print('#',end='')
print('.'*(HW[1]-2),end='#')
print('#'*HW[1])
print() | File "/tmp/tmpmncqh7qu/tmptgwsebu3.py", line 1
whlie True:
^^^^
SyntaxError: invalid syntax
| |
s161320259 | p02404 | u150984829 | 1513085328 | Python | Python3 | py | Runtime Error | 0 | 0 | 136 | while True:
h,w=map(int,input().split())
if h==0:break
print([#]*w)
for _ in range(h-2):print("#".join(['.']*(w-2)))
print([#]*w\n) | File "/tmp/tmpwzqeyk3_/tmpi0bdzpiz.py", line 5
for _ in range(h-2):print("#".join(['.']*(w-2)))
^^^
SyntaxError: invalid syntax
| |
s423879318 | p02404 | u150984829 | 1513085373 | Python | Python3 | py | Runtime Error | 0 | 0 | 140 | while True:
h,w=map(int,input().split())
if h==0:break
print(['#']*w)
for _ in range(h-2):print("#".join(['.']*(w-2)))
print(['#']*w\n) | File "/tmp/tmp7388mr8r/tmpztq64tch.py", line 6
print(['#']*w\n)
^
SyntaxError: unexpected character after line continuation character
| |
s345803357 | p02404 | u150984829 | 1513085494 | Python | Python3 | py | Runtime Error | 0 | 0 | 157 | while True:
h,w=map(int,input().split())
if h==0:break
print("".join(['#']*w))
for _ in range(h-2):print("#".join(['.']*(w-2)))
print("".join(['#']*w))| | File "/tmp/tmpa1500f6x/tmpcgzndwii.py", line 6
print("".join(['#']*w))|
^
SyntaxError: invalid syntax
| |
s734121995 | p02404 | u150984829 | 1513085598 | Python | Python3 | py | Runtime Error | 0 | 0 | 163 | while True:
h,w=map(int,input().split())
if h==0:break
print("".join(['#']*w))
for _ in range(h-2):print("#".join(['.']*(w-2)))
print(f'{"".join(['#']*w)}\n') | File "/tmp/tmpldwdk17n/tmp115sbfa9.py", line 6
print(f'{"".join(['#']*w)}\n')
^
SyntaxError: '(' was never closed
| |
s090281223 | p02404 | u150984829 | 1513085672 | Python | Python3 | py | Runtime Error | 0 | 0 | 167 | while True:
h,w=map(int,input().split())
if h==0:break
print("".join(['#']*w))
for _ in range(h-2):print("#".join(['.']*(w-2)))
print("".join(['#']*w))
print(\n) | File "/tmp/tmpn0l7ir21/tmpdcnmjjpz.py", line 7
print(\n)
^
SyntaxError: unexpected character after line continuation character
| |
s896543748 | p02404 | u150984829 | 1513096831 | Python | Python3 | py | Runtime Error | 0 | 0 | 140 | while True:
h,w=map(int,input().split())
if h==0:break
print('#'*w)
for _ in range(h-2):print('#'+'.'*(w-2)+'#'))
print('#'*w)
print() | File "/tmp/tmpyxv41ruk/tmp61n5y30h.py", line 5
for _ in range(h-2):print('#'+'.'*(w-2)+'#'))
^
SyntaxError: unmatched ')'
| |
s869553354 | p02404 | u150984829 | 1513096858 | Python | Python3 | py | Runtime Error | 0 | 0 | 146 | while True:
h,w=map(int,input().split())
if h==0:break
print(('#'*w))
for _ in range(h-2):print(('#'+'.'*(w-2)+'#')))
print(('#'*w))
print() | File "/tmp/tmp2kupe9w0/tmp7exznp01.py", line 5
for _ in range(h-2):print(('#'+'.'*(w-2)+'#')))
^
SyntaxError: unmatched ')'
| |
s931828100 | p02404 | u150984829 | 1513096960 | Python | Python3 | py | Runtime Error | 0 | 0 | 144 | while True:
h,w=map(int,input().split())
if h==0:break
print(('#'*w))
for _ in range(h-2):print('#'+'.'*(w-2)+'#'))
print(('#'*w))
print() | File "/tmp/tmpf1bywre3/tmpfyn3gvr3.py", line 5
for _ in range(h-2):print('#'+'.'*(w-2)+'#'))
^
SyntaxError: unmatched ')'
| |
s070976269 | p02404 | u378741642 | 1514424884 | Python | Python3 | py | Runtime Error | 0 | 0 | 257 | while True:
a,b=map(int, input().split())
if a = 0 and b = 0:
break
for i in range(a):
for j in range(b):
if i>0 and i < a-1 and j>0 and j<b-1 and a>0 and b>0:
print(".",end="")
else:
print('#',end='')
print('') | File "/tmp/tmp765w81bn/tmpu4ldbj13.py", line 3
if a = 0 and b = 0:
^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s454355996 | p02404 | u442426662 | 1518113932 | Python | Python3 | py | Runtime Error | 0 | 0 | 358 | for i in range(10000):
H,W=input().split()
if H==0 and W==0:
break
s=""
t=""
for j in range(int(W)):
s+="#"
if j==0 or j==int(W)-1:
t+="#"
else:
t+="."
for k in range(int(H)):
if k==0 or k==int(H)-1:
print(s)
els... | Traceback (most recent call last):
File "/tmp/tmpgvirtu2h/tmpnd8fryi9.py", line 2, in <module>
H,W=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s812402890 | p02404 | u017435045 | 1520841776 | Python | Python3 | py | Runtime Error | 0 | 0 | 289 | while 1:
h,w=map(int, input().split())
if h==0 or w==0: break
eilif h ==1: print("#"*w)
elif w==1: for j in range(h):print("#")
else:
print("#"*w)
for I in range(h-2):
print("#"+"."*(w-2)+"#")
print("#"*w)
| File "/tmp/tmpa6zvy6l6/tmp86eck4uz.py", line 4
eilif h ==1: print("#"*w)
^
SyntaxError: invalid syntax
| |
s303335213 | p02404 | u017435045 | 1520841895 | Python | Python3 | py | Runtime Error | 0 | 0 | 223 | while 1:
h,w=map(int, input().split())
if h==0 or w==0: break
eilif h ==1: print("#"*w)
elif w==1: for j in range(h):print("#")
else:
print("#"*w)
for I in range(h-2):
print("#"+"."*(w-2)+"#")
print("#"*w)
| File "/tmp/tmplze7pfw7/tmpu414vasp.py", line 4
eilif h ==1: print("#"*w)
^
SyntaxError: invalid syntax
| |
s819651127 | p02404 | u017435045 | 1520842123 | Python | Python3 | py | Runtime Error | 0 | 0 | 160 | while 1:
h,w=map(int, input().split())
if (h==0) or (w==0): break
else:
print("#"*w)
for I in range(h-2):
print("#"+"."*(w-2)+"#")
print("#"*w)
| File "/tmp/tmpu_tvo90x/tmp695f0nwv.py", line 8
print("#"+"."*(w-2)+"#")
^
IndentationError: expected an indented block after 'for' statement on line 7
| |
s489008663 | p02404 | u017435045 | 1520842136 | Python | Python3 | py | Runtime Error | 0 | 0 | 161 | while 1:
h,w=map(int, input().split())
if (h==0) and (w==0): break
else:
print("#"*w)
for I in range(h-2):
print("#"+"."*(w-2)+"#")
print("#"*w)
| File "/tmp/tmp_cqhi7x2/tmpcjvh56g1.py", line 8
print("#"+"."*(w-2)+"#")
^
IndentationError: expected an indented block after 'for' statement on line 7
| |
s728652799 | p02404 | u017435045 | 1520842147 | Python | Python3 | py | Runtime Error | 0 | 0 | 163 | while 1:
h , w=map(int, input().split())
if (h==0) and (w==0): break
else:
print("#"*w)
for I in range(h-2):
print("#"+"."*(w-2)+"#")
print("#"*w)
| File "/tmp/tmp26xlyxeu/tmp4qkfb6ii.py", line 8
print("#"+"."*(w-2)+"#")
^
IndentationError: expected an indented block after 'for' statement on line 7
| |
s076515678 | p02404 | u017435045 | 1520842157 | Python | Python3 | py | Runtime Error | 0 | 0 | 166 | while True:
h , w=map(int, input().split())
if (h==0) and (w==0): break
else:
print("#"*w)
for I in range(h-2):
print("#"+"."*(w-2)+"#")
print("#"*w)
| File "/tmp/tmprj9fk8fg/tmpgex1wfc2.py", line 8
print("#"+"."*(w-2)+"#")
^
IndentationError: expected an indented block after 'for' statement on line 7
| |
s961715882 | p02404 | u017435045 | 1520842182 | Python | Python3 | py | Runtime Error | 0 | 0 | 183 | while True:
h , w=map(int, input().split())
if (h==0) and (w==0):
break
else:
print("#"*w)
for I in range(h-2):
print("#"+"."*(w-2)+"#")
print("#"*w)
| File "/tmp/tmp88d1mc_k/tmpoc7ijynz.py", line 9
print("#"+"."*(w-2)+"#")
^
IndentationError: expected an indented block after 'for' statement on line 8
| |
s062208223 | p02404 | u017435045 | 1520842238 | Python | Python3 | py | Runtime Error | 0 | 0 | 189 | while True:
h , w=map(int, input().split())
if (h==0) and (w==0):
break
else:
print('#'*w)
for I in range(h-2):
print('#'+'.'*(w-2)+'#')
print('#'*w)
| File "/tmp/tmpdi1hel2y/tmpyuhj35vh.py", line 5
else:
TabError: inconsistent use of tabs and spaces in indentation
| |
s097527518 | p02404 | u017435045 | 1520842252 | Python | Python3 | py | Runtime Error | 0 | 0 | 187 | while True:
h,w=map(int, input().split())
if (h==0) and (w==0):
break
else:
print('#'*w)
for I in range(h-2):
print('#'+'.'*(w-2)+'#')
print('#'*w)
| File "/tmp/tmpu59j1ycv/tmper3y4n50.py", line 5
else:
TabError: inconsistent use of tabs and spaces in indentation
| |
s390235975 | p02404 | u017435045 | 1520842389 | Python | Python3 | py | Runtime Error | 0 | 0 | 187 | while True:
h,w=map(int, input().split())
if (h==0) and (w==0):
break
else:
print('#'*w)
for I in range(h-2):
print('#'+'.'*(w-2)+'#')
print('#'*w)
| File "/tmp/tmph9lxoy0l/tmp24nsegc_.py", line 5
else:
TabError: inconsistent use of tabs and spaces in indentation
| |
s638568203 | p02404 | u621084859 | 1522643375 | Python | Python3 | py | Runtime Error | 0 | 0 | 242 | while 1:
n=input().split()
w=int(x[0])
h=int(x[1])
if h==w==0:
break
for i in range (h):
if i==0 or i==h-1:
print("#"*w)
else:
print("#", "."*(w-2), "#")
print()
| Traceback (most recent call last):
File "/tmp/tmp_td8p57f/tmp3w816dux.py", line 2, in <module>
n=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s588600381 | p02404 | u621084859 | 1522643460 | Python | Python3 | py | Runtime Error | 0 | 0 | 241 | while 1:
n=input().split()
w=int(x[0])
h=int(x[1])
if h==w==0:
break
for i in range (h):
if i==0 or i==h-1:
print("#"*w)
else:
print("#" "."*(w-2), "#")
print()
| Traceback (most recent call last):
File "/tmp/tmpecudosic/tmpr7gjllvf.py", line 2, in <module>
n=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s859316680 | p02404 | u843169619 | 1523895636 | Python | Python3 | py | Runtime Error | 0 | 0 | 16 | 3 4
5 6
3 3
0 0
| File "/tmp/tmpmb9yjzhd/tmpttf_5n56.py", line 1
3 4
^
SyntaxError: invalid syntax
| |
s368447767 | p02404 | u589139267 | 1524486098 | Python | Python3 | py | Runtime Error | 0 | 0 | 235 | H, W = map(int, input().split())
if H == 0 and W == 0:
break
print("#" * W)
for i in range(1, H-1):
print("#", end = "")
for j in range(1, W-1):
print(".", end = "")
print("#", end = "")
print("#" * W)
print("")
| File "/tmp/tmp9xd8d7g1/tmpb6ug9epe.py", line 4
break
^^^^^
SyntaxError: 'break' outside loop
| |
s470304873 | p02404 | u592529978 | 1525393484 | Python | Python | py | Runtime Error | 0 | 0 | 159 | while True :
h, w = map(int, raw_input().split())
if h + w ==0 : break
print '#'*w
for y in xrange(h-2)
print '#' + '.'*(w-2) + '#'
print '#'*w
print
| File "/tmp/tmpr2hel45_/tmppz1fj1zw.py", line 5
print '#'*w
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s924179745 | p02404 | u592529978 | 1525393540 | Python | Python | py | Runtime Error | 0 | 0 | 162 | while True :
h, w = map(int, raw_input().split())
if h + w ==0 : break
print '#'*w
for y in xrange(h-2)
print '#' + '.'*(w-2) + '#'
print '#'*w
print
| File "/tmp/tmpjp3vbzzk/tmpat7zqqxz.py", line 5
print '#'*w
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s748710350 | p02404 | u781194524 | 1525939815 | Python | Python | py | Runtime Error | 0 | 0 | 228 | while True:
H,W=[int() for x in input().split()]
if H == 0 and W == 0:
break
for a in range (H):
if a == 0 or a == H-1:
print("#"*W)
else:
print("#" + "."*(W-2) + "#")
| Traceback (most recent call last):
File "/tmp/tmpjdb87gj2/tmpomane_vl.py", line 2, in <module>
H,W=[int() for x in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s495576957 | p02404 | u781194524 | 1525939848 | Python | Python | py | Runtime Error | 0 | 0 | 243 | while True:
H,W=[int(x) for x in input().split()]
if H == 0 and W == 0:
break
for a in range (H):
if a == 0 or a == H-1:
print("#"*W)
else:
print("#" + "."*(W-2) + "#")
print('')
| Traceback (most recent call last):
File "/tmp/tmpoeqjh1tb/tmpdzb2kxiv.py", line 2, in <module>
H,W=[int(x) for x in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s282495743 | p02404 | u237094818 | 1527610976 | Python | Python | py | Runtime Error | 0 | 0 | 180 | # -*-coding: utf-8
while True:
a = map(int,raw_input().split())
print('#'*a[1])
for i in range(a[0]-2):
b = a[1]-2
print('#''*'*b'#')
print('#'*a[1])
| Traceback (most recent call last):
File "/tmp/tmpeb2hmn0a/tmpcvgvxdkj.py", line 4, in <module>
a = map(int,raw_input().split())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s652230794 | p02404 | u237094818 | 1527611109 | Python | Python | py | Runtime Error | 0 | 0 | 205 | # -*-coding: utf-8
while True:
a = map(int,raw_input().split())
print('#'*a[1])
for i in range(a[0]-2):
b = a[1]-2
print('#''*'*b'#')
print('#'*a[1])
if a == [0,0]
break
| File "/tmp/tmp5wlox_mv/tmpkibx2zbh.py", line 10
if a == [0,0]
^
SyntaxError: expected ':'
| |
s201750108 | p02404 | u237094818 | 1527611134 | Python | Python | py | Runtime Error | 0 | 0 | 205 | # -*- coding: utf-8
while True:
a = map(int,raw_input().split())
print('#'*a[1])
for i in range(a[0]-2):
b = a[1]-2
print('#''*'*b'#')
print('#'*a[1])
if a == [0,0]
break
| File "/tmp/tmpe_bh8wqn/tmp9wd9sf1w.py", line 10
if a == [0,0]
^
SyntaxError: expected ':'
| |
s965330058 | p02404 | u237094818 | 1527611218 | Python | Python | py | Runtime Error | 0 | 0 | 206 | # -*- coding: utf-8
while True:
a = map(int,raw_input().split())
print('#'*a[1])
for i in range(a[0]-2):
b = a[1]-2
print('#''*'*b'#')
print('#'*a[1])
if a == [0,0]:
break
| Traceback (most recent call last):
File "/tmp/tmp7d36aj_e/tmp0o_x3_h8.py", line 4, in <module>
a = map(int,raw_input().split())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s442009505 | p02404 | u763301852 | 1363009074 | Python | Python | py | Runtime Error | 0 | 0 | 240 | def draw(h, w):
print("#" * w)
for i in range(h-2)
print("#" + ("."*(w-2)) + "#")
print("#" * w)
print "\n"
while True:
h, w = map(int, raw_input().split())
if h == 0 and w == 0:
break
draw(h, w) | File "/tmp/tmpe0ny6_7r/tmp1piadgmi.py", line 3
for i in range(h-2)
^
SyntaxError: expected ':'
| |
s408696866 | p02404 | u633068244 | 1393320548 | Python | Python | py | Runtime Error | 0 | 0 | 437 | while True:
h, w = map(int, raw_input().split())
if h == 0 and w == 0:
break
hcnt = 1
for i in range(0, h):
wid = ""
if hcnt == 1 or hcnt == h:
for j in range(0, w):
wid += "#"
print wid
else:
wid += "#"
... | File "/tmp/tmpvvxekvtw/tmp2stesaoj.py", line 13
print wid
^
IndentationError: unindent does not match any outer indentation level
| |
s084162485 | p02404 | u633068244 | 1393320676 | Python | Python | py | Runtime Error | 0 | 0 | 438 | while True:
h, w = map(int, raw_input().split())
if h == 0 and w == 0:
break
hcnt = 1
for i in range(0, h):
wid = ""
if hcnt == 1 or hcnt == h:
for j in range(0, w):
wid += "#"
print wid
else:
wid += "#"
... | File "/tmp/tmpe3ko_ve5/tmpqn_x8c2t.py", line 13
print wid
^
IndentationError: unindent does not match any outer indentation level
| |
s383614813 | p02404 | u971748390 | 1398844674 | Python | Python | py | Runtime Error | 0 | 0 | 149 | while(true)
if W==0 && H==0 :
break
H,W = map(int,raw_input().split())
print "#"*W + "\n"
print ("#"+ "."*(W-2)+ "#"+"\n")*(H-2)
print "#"*W + "\n" | File "/tmp/tmp_h_ar6s7/tmp71pe9dm1.py", line 1
while(true)
^
SyntaxError: expected ':'
| |
s513541988 | p02404 | u971748390 | 1400309969 | Python | Python | py | Runtime Error | 0 | 0 | 230 | while true:
if W==0 and H==0 :
break
H,W = map(int,raw_input().split())
print '#' * W + '\n'
/*実行すると、この直前の行でerrorになる。なぜ。。。*/
print ('#'+ '.'*(W-2)+ '#'+'\n')*(H-2)
print '#'*W + '\n' | File "/tmp/tmp_1a_xrnx/tmp03o6u7zi.py", line 6
/*実行すると、この直前の行でerrorになる。なぜ。。。*/
^
SyntaxError: invalid character '、' (U+3001)
| |
s159838225 | p02404 | u971748390 | 1400312489 | Python | Python | py | Runtime Error | 0 | 0 | 155 | while true:
H,W = map(int,raw_input().split())
if W==0 and H==0 :
break
print '#' * W + '\n'
print ('#'+ '.'*(W-2)+ '#'+'\n')*(H-2)
print '#'*W + '\n' | File "/tmp/tmpc9i8_d9p/tmpgaxwz6s0.py", line 2
H,W = map(int,raw_input().split())
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s021091291 | p02404 | u971748390 | 1400312542 | Python | Python | py | Runtime Error | 0 | 0 | 155 | while True:
H,W = map(int,raw_input().split())
if W==0 and H==0 :
break
print '#' * W + '\n'
print ('#'+ '.'*(W-2)+ '#'+'\n')*(H-2)
print '#'*W + '\n' | File "/tmp/tmpt8o8f6ls/tmpofkvqh34.py", line 2
H,W = map(int,raw_input().split())
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s457872446 | p02404 | u971748390 | 1400312828 | Python | Python | py | Runtime Error | 0 | 0 | 161 | while true:
H,W = map(int,raw_input().split())
if W==0 and H==0 :
break
print '#' * W + '\n'
print ('#'+ '.'*(W-2)+ '#'+'\n')*(H-2)
print '#'*W + '\n' | File "/tmp/tmp2foau8yz/tmpi4k5l5v3.py", line 2
H,W = map(int,raw_input().split())
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s339629445 | p02404 | u971748390 | 1400312907 | Python | Python | py | Runtime Error | 0 | 0 | 170 | while true:
H,W = map(int,raw_input().split())
if W==0 and H==0 :
break
elif :
print '#' * W + '\n'
print ('#'+ '.'*(W-2)+ '#'+'\n')*(H-2)
print '#'*W + '\n' | File "/tmp/tmpbimp_ch3/tmp9pfx1kbr.py", line 2
H,W = map(int,raw_input().split())
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s633382762 | p02405 | u917722865 | 1530796452 | Python | Python3 | py | Runtime Error | 0 | 0 | 340 | #include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
int H, W;
while(scanf("%d %d", &H, &W), H!=0)
{
for (int i = 0; i < H; i++)
{
for (int j = 0; j < W; j++)
{
if ((i + j) % 2 == 0)
{
cout << "#";
}
else
{
cout << ".";
}
}
cout << endl;
}
... | File "/tmp/tmpdm9u4f1k/tmpkq4quqlc.py", line 4
using namespace std;
^^^^^^^^^
SyntaxError: invalid syntax
| |
s482990696 | p02405 | u336705996 | 1535090870 | Python | Python3 | py | Runtime Error | 0 | 0 | 258 | 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):
if (i+j)%2==0: print('#',end=='')
else: print('.',end=='')
if j==w-1: print()
print()
| Traceback (most recent call last):
File "/tmp/tmp8hl43eb6/tmpry4fe5qo.py", line 2, in <module>
h,w = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s492108909 | p02405 | u525366883 | 1535168619 | Python | Python | py | Runtime Error | 0 | 0 | 368 | while True:
H, W = map(int, raw_input().split())
if H == W == 0:
break
for i in range(H):
if W == 1 and i % 2 == 1:
print "#"
elif W == 1 abd i % 2 == 0:
print "."
elif i % 2 == 0:
print "#." * (W / 2) + "#" * (W%2)
else:
... | File "/tmp/tmpr9rya0cb/tmpxlj9gcdn.py", line 7
print "#"
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s710229047 | p02405 | u281808376 | 1540350712 | Python | Python3 | py | Runtime Error | 0 | 0 | 418 | while True:
input=input().split()
H=int(input[0])
W=int(input[1])
if H==0:
break
for i in range(1,H+1):
if i%2!=0:
if W%2==0:
print("#."*(W/2))
if W%2!=0:
print("#."*(W/2)+".")
if i%2==0:
if W%2==0:
... | Traceback (most recent call last):
File "/tmp/tmpa_4ksnie/tmpgt8j1xga.py", line 2, in <module>
input=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s256257308 | p02405 | u281808376 | 1540350745 | Python | Python3 | py | Runtime Error | 0 | 0 | 422 | while True:
input=input().split()
H=int(input[0])
W=int(input[1])
if H==0:
break
for i in range(1,H+1):
if i%2!=0:
if W%2==0:
print("#."*(W//2))
if W%2!=0:
print("#."*(W//2)+".")
if i%2==0:
if W%2==0:
... | Traceback (most recent call last):
File "/tmp/tmpy8eymkm0/tmp376kw7pf.py", line 2, in <module>
input=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s499260603 | p02405 | u277375424 | 1540389672 | Python | Python3 | py | Runtime Error | 0 | 0 | 248 | while True:
H,W = map(int,input().split())
if H == W == 0:
break
for i in range(H):
if i % 2 == 0:
print("#"+".")
else
print("."+"#")
print("")
| File "/tmp/tmp637_ut6r/tmpmvlcwzmy.py", line 9
else
^
SyntaxError: expected ':'
| |
s512804077 | p02405 | u277375424 | 1540390240 | Python | Python3 | py | Runtime Error | 0 | 0 | 270 | while True:
H,W = map(int,input().split())
if H == W == 0:
break
for i in range(H):
if i % 2 == 0:
print('.','#',sep='')
else:
print('#',''.',sep='')
print("")
| File "/tmp/tmpcf1h0157/tmpz1set3gd.py", line 11
print('#',''.',sep='')
^
SyntaxError: unterminated string literal (detected at line 11)
| |
s976623351 | p02405 | u277375424 | 1540390715 | Python | Python3 | py | Runtime Error | 0 | 0 | 234 | while True:
H,W = map(int,input().split())
if H == W == 0:
break
for i in range(H):
if i % 2 == 0:
print("#."*(W/2),sep="")
else:
print(".#"*(W/2),sep="")
print("")
| Traceback (most recent call last):
File "/tmp/tmpow2jya34/tmp8l04y5j0.py", line 2, in <module>
H,W = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s106330229 | p02405 | u277375424 | 1540391082 | Python | Python3 | py | Runtime Error | 0 | 0 | 156 | while True:
H,W = map(int,input().split())
if H == W == 0:
break
for i in range(H):
print(('#.'*w)[i%2:][:w])
print()
| Traceback (most recent call last):
File "/tmp/tmpgmban68x/tmp5nv1t0us.py", line 2, in <module>
H,W = map(int,input().split())
^^^^^^^
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.