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
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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(...
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()
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()
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(...
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()
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...
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='')
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='')
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='')
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()
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")
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)
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:...
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')
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 ("")
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...
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==...
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 ...
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)
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)
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)
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)
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)
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='')
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...
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): ...
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)
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)
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: ...
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')
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')
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"
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
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
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,
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()
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()
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()
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)
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)
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))|
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')
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)
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()
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()
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()
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('')
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...
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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()
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()
s859316680
p02404
u843169619
1523895636
Python
Python3
py
Runtime Error
0
0
16
3 4 5 6 3 3 0 0
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("")
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
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
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) + "#")
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('')
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])
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
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
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
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)
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 += "#" ...
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 += "#" ...
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"
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'
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'
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'
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'
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'
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; } ...
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()
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: ...
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: ...
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: ...
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("")
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("")
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("")
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()