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
s766194281
p02404
u277375424
1540373836
Python
Python3
py
Runtime Error
0
0
216
while True: H,W = map(int,input().split()) if H == W == 0: break for i in range(1, H): if i == 1,H: print("#"*W) else: print("#","."*(W-2),"#") print()
s509495499
p02404
u277375424
1540374796
Python
Python3
py
Runtime Error
0
0
333
while True: data = [int(x) for x in input().split(' ')] H = data[0] W = data[1] if H == 0 and W == 0: break for i in range(H): if i == 0 or i == H-1: print('#' * W) else: print('#' + '.'*(W-2) + '#') ...
s155573550
p02404
u277375424
1540374829
Python
Python3
py
Runtime Error
0
0
287
if __name__ == '__main__': while True: H,W = map(int,input().split()) if H == W == 0: break for i in range(1, H): if i == 1: print("#"*W) elif i == H: print("#"*W) else: print("#","."*(W-2),"#") print()
s657981054
p02404
u075006557
1541060966
Python
Python3
py
Runtime Error
0
0
272
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(1 < i < a and 1 < j < b): print(".", end = "") else print("#", end = "") print()
s170501812
p02404
u498462680
1546263757
Python
Python3
py
Runtime Error
0
0
645
while True: H,W = [int(i) for in input().split()] if H == 0 and W == 0: break else: for line in list(range(1,H+1,1)): for column in list(range(1,W+1,1)): if line == 1 or line == H: if column == W: print("#") ...
s520948135
p02404
u175224634
1551543008
Python
Python3
py
Runtime Error
0
0
222
while True: H, W = map(int, input().split()) if H == 0 and W == 0: break for i in range(H): if i != 0 or i != H-1: print("#"+"." * (W-2)+"#") else print("#" * W) print()
s755569600
p02404
u175224634
1551543298
Python
Python3
py
Runtime Error
0
0
201
while True: 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()
s737819779
p02404
u175224634
1551545699
Python
Python3
py
Runtime Error
0
0
236
while True:     H,W = map(int,input().split())     if H==W==0:         break;     print("#"*W)     for i in range(0,H-2):         print("#"+"."*(W-2)+"#")     print("#"*W)     print()
s799018320
p02404
u482227082
1556422616
Python
Python3
py
Runtime Error
0
0
267
while True: h,w = map(int, input().split()) if h == 0 and w == 0: break else: for i in range(h): if i == 0 or i == h-1 print("#" * w) else: print("#" + "." * (w-2) + "#") print()
s185704605
p02404
u482227082
1556422627
Python
Python3
py
Runtime Error
0
0
269
while True: h,w = map(int, input().split()) if h == 0 and w == 0: break else: for i in range(h): if i == 0 or i == (h-1) print("#" * w) else: print("#" + "." * (w-2) + "#") print()
s804671450
p02404
u681232780
1556507453
Python
Python3
py
Runtime Error
0
0
226
while True : H,W = map(int,input().split()) if W == 0 and H == 0 : break for i in range(H) : if i == 0 or i == H-1 : print('#'*W) else : print('#' + '.'*(W-2) + '#') print('')
s094314066
p02404
u629874472
1559036682
Python
Python3
py
Runtime Error
0
0
117
while True: h,w = map(int,input().split()) for i in range(h): print('#'+'.'*(w-2)+'#') print('')
s735153729
p02404
u629874472
1559037782
Python
Python3
py
Runtime Error
0
0
190
while True: h,w = map(int,input().split()) for i in range(h): if i == 0 or i== h-1: print('#'*w) else: print('#'+'.'*(w-2)+'#') print('')
s520828963
p02404
u535719732
1559197986
Python
Python3
py
Runtime Error
0
0
508
while True: num = list(map(int,input().split())) if(num[0] == 0 and num[1] == 0): break else: flag = False for i in range(num[0]): str = "" if(i == 0 or i == num[0]-1): flag=True else: flag=False for j in range(num[1]): if(j == ...
s932363969
p02404
u818126736
1559540549
Python
Python3
py
Runtime Error
0
0
210
for i in range(100000): H,W = map(int,input().split(" ")) if H + W == 0: break print("#"*W) for j in range(h-2): print("#" + "."*(W-2) + "#") print("#"*W) print("")
s158303823
p02404
u433250944
1559540898
Python
Python3
py
Runtime Error
0
0
248
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 : print("#", end="") else: print(".", end="") print()
s700676540
p02404
u527848444
1422845671
Python
Python3
py
Runtime Error
0
0
338
while True: (H,W) = [int(x) for x in input().split()] if H == W == 0: break for hc in range(H): for wc in range(W): if hc == 0 or hc == H - 1 or wc == 0 or wc == W - 1: print('#' ,end=' ') else: print('.',end=' ') print...
s311749984
p02404
u442346200
1422845725
Python
Python3
py
Runtime Error
0
0
340
while True: (H, W) = [int(x) for x in input().split()] if H == W == 0: break for hc in range(H): for wc in range(W): if hc == 0 or hc == H - 1 or wc == 0 or wc == W - 1: print('#' , end = ' ') else: print('.', end = ' ') ...
s830120139
p02404
u636711749
1422845753
Python
Python3
py
Runtime Error
0
0
409
while True: (H, W) = [int(x) for x in input().split()] if H == W == 0: break for hc in range(H): for wc in range(W): if hc == 0 or hc == H - 1 or wc == 0 or wc == W - 1: print('#', end='') else: print('.'...
s583391704
p02404
u442346200
1422846155
Python
Python3
py
Runtime Error
0
0
336
while True: (H, W) = [int(x) for x in input().split()] if H == W == 0: break for hc in range(H): for wc in range(W): if hc == 0 or hc == H - 1 or wc == 0 or wc == W - 1: print('#' , end = ' ') else: print('.', end = ' ') pri...
s187260712
p02404
u527848444
1422846237
Python
Python3
py
Runtime Error
0
0
264
while True: (H,W) = [int(x) for x in input().split()] if H == W == 0: break for hc in range(H): if hc == 0 or hc == H - 1: print('#'* W) else: print('#' + '.' * (W - 2) + '#') print()
s693079832
p02404
u193599711
1423111173
Python
Python3
py
Runtime Error
0
0
441
data_h = [] data_w = [] while True: h, w = (int(i) for i in input().split()) if h == w == 0: break else: data_h.append(h) data_w.append(w) for count in range(len(data_h)): h = data_h[count] w = data_w[count] for i in range(h): print('#',end='') for j in range(w): if i == 0 or i == r...
s531163773
p02404
u376883550
1424090926
Python
Python
py
Runtime Error
0
0
246
H, W = map(int, raw_input().split()) while H | W != 0: for i in range(H): if i == 0 or i == H - 1: print '#' * W else: print '#' + '.' * W - 2 + '#' print '' H, W = map(int, raw_input().split())
s889097424
p02404
u971748390
1431074991
Python
Python3
py
Runtime Error
0
0
173
while true: H,W = map(int,raw_input().split()) if:W==0 and H==0 : break else: print ('#' * W + '\n') print ('#'+ '.'*(W-2)+ '#'+'\n')*(H-2) print ('#'*W + '\n')
s324596673
p02404
u971748390
1431075058
Python
Python3
py
Runtime Error
0
0
174
while true: H,W = map(int,raw_input().split()) if W==0 and H==0 : break else : print ('#' * W + '\n') print ('#'+ '.'*(W-2)+ '#'+'\n')*(H-2) print ('#'*W + '\n')
s669095207
p02404
u971748390
1431075179
Python
Python3
py
Runtime Error
0
0
176
while true: H,W = map(int,raw_input().split()) if W==0 and H==0 : break else : print ('#' * W + '\n') print (('#'+ '.'*(W-2)+ '#'+'\n')*(H-2)) print ('#'*W + '\n')
s048810006
p02404
u971748390
1431075308
Python
Python3
py
Runtime Error
0
0
195
while true: H,W = map(int,raw_input().split()) if W==0 and H==0 : break else : print ('#' * W + '\n') for i in range(H-2) : print ('#'+ '.'*(W-2)+ '#'+'\n') print ('#'*W + '\n')
s708650402
p02404
u162387221
1431156777
Python
Python
py
Runtime Error
0
0
173
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'
s565035336
p02404
u446066125
1437962079
Python
Python3
py
Runtime Error
0
0
206
while True : (H, W) = [int(i) for i in input().split()] if H == W == 0: break ??????print('#' * W) for i in range(H - 2) : print('#' + ('.' * (W - 2)) + '#') print('#' * W)
s051850450
p02404
u446066125
1437962149
Python
Python3
py
Runtime Error
0
0
228
while True : (H, W) = [int(i) for i in input().split()] if H == W == 0: break ??????print(('#' * W) + '\n') for i in range(H - 2) : print('#' + ('.' * (W - 2)) + '#\n') print(('#' * W) + '\n')
s734588206
p02404
u446066125
1437962258
Python
Python3
py
Runtime Error
0
0
240
while True : (H, W) = [int(i) for i in input().split()] if H == W == 0: break ??????print(('#' * W) + '\n') for i in range(H - 2) : print('#' + ('.' * (W - 2)) + '#\n') print(('#' * W) + '\n') print()
s022375278
p02404
u925228699
1437962320
Python
Python3
py
Runtime Error
0
0
208
while True : (H, W) = [int(i) for i in input().split()] if H == W == 0: break ??????print('#' * W) for i in range(H - 2) : print('#' + ('.' * (W - 2)) + '#') print('#' * W)
s021076616
p02404
u446066125
1437964060
Python
Python3
py
Runtime Error
0
0
218
while True : (H, W) = [int(i) for i in input().split()] if H == W == 0: break print('#' * W) for a in range(H - 2): print('#' + ('.' * (W - 2)) + '#') print('#' * W) ??????print()
s849676744
p02404
u446066125
1437964123
Python
Python3
py
Runtime Error
0
0
216
while True : (H, W) = [int(i) for i in input().split()] if H == W == 0: break print('#' * W) for a in range(H - 2): print('#' + '.' * (W - 2) + '#') print('#' * W) ??????print()
s218811717
p02404
u446066125
1437964350
Python
Python3
py
Runtime Error
0
0
216
while True : (H, W) = [int(i) for i in input().split()] if H == W == 0: break print('#' * W) for a in range(H - 2): print('#' + '.' * (W - 2) + '#') print('#' * W) ??????print()
s674647358
p02404
u446066125
1437964676
Python
Python
py
Runtime Error
0
0
214
while True : (H, W) = [int(i) for i in input().split()] if H == W == 0: break print('#' * W) for a in range(H - 2): print("#" + "." * (W - 2) + "#") print('#' * W) print()
s809074158
p02404
u446066125
1437964778
Python
Python
py
Runtime Error
0
0
214
while True : (H, W) = [int(i) for i in input().split()] if H == W == 0: break print('#' * W) for a in range(H - 2): print('#' + '.' * (W - 2) + '#') print('#' * W) print()
s042629226
p02404
u925228699
1437966696
Python
Python3
py
Runtime Error
0
0
257
while True: (H, W) =[int(i) for i in input(). split()] if H == W ==0: break for a in range(H): for b in range(W): if (a + b) % 2 == 0: print('#', end='') else: print('.',end='') print() print()
s196645784
p02404
u925228699
1437966790
Python
Python3
py
Runtime Error
0
0
257
while True: (H, W) =[int(i) for i in input(). split()] if H == W ==0: break for a in range(H): for b in range(W): if (a + b) % 2 == 0: print('#', end='') else: print('.',end=``) print() print()
s219025959
p02404
u473077745
1439858314
Python
Python3
py
Runtime Error
0
0
202
while True: (H, W) = [int(i) for i in input().split()] if H == W == 0: break for a in range(H): for b in range(w): print('#', end='') print() print()
s763720064
p02404
u734743631
1442562925
Python
Python
py
Runtime Error
0
0
366
while True: h, w = map(int, raw_input().split()) if h == 0 and w == 0: break else: if w <= 2: for i in range(h): print a * w else: for i in range(h): if i == 0 or i == h - 1: print a * w else:...
s725183712
p02404
u233232390
1453863535
Python
Python
py
Runtime Error
0
0
181
while 1: H,W = map(int, raw_input().split()) if h == w == 0: break print '#'*w for i in range(h-2): if w >= 2: print '#'+'.'*(w-2)+'#' else: print '#' print '#'*w
s606021608
p02404
u233232390
1453863570
Python
Python
py
Runtime Error
0
0
180
while 1: H,W = map(int, raw_input().split()) if h == w == 0: break print '#'*w for i in range(h-2): if w >= 2: print '#'+'.'*(w-2)+'#' else: print '#' print '#'*w
s138135375
p02404
u233232390
1453863580
Python
Python
py
Runtime Error
0
0
179
while 1: H,W = map(int, raw_input().split()) if h == w == 0: break print '#'*w for i in range(h-2): if w >= 2: print '#'+'.'*(w-2)+'#' else: print '#' print '#'*w
s561688453
p02404
u233232390
1453863615
Python
Python
py
Runtime Error
0
0
178
while 1: H,W = map(int, raw_input().split()) if h == w == 0: break print '#'*w for i in range(h-2): if w >= 2: print '#'+'.'*(w-2)+'#' else: print '#' print '#'*w
s854825733
p02404
u233232390
1453863661
Python
Python
py
Runtime Error
0
0
193
while 1: H,W = map(int, raw_input().split()) if h == w == 0: break else: print '#'*w for i in range(h-2): if w >= 2: print '#'+'.'*(w-2)+'#' else: print '#' print '#'*w
s832592082
p02404
u233232390
1453863698
Python
Python
py
Runtime Error
0
0
204
while 1: H,W = map(int, raw_input().split()) if h == w == 0: break else: print '#'*w for i in range(h-2): if w >= 2: print '#'+'.'*(w-2)+'#' else: print '#' print '#'*w print' '
s288395803
p02404
u803327846
1453877918
Python
Python
py
Runtime Error
0
0
196
while 1: h, w = map(int, input().split) if h == w == 0: break for i in range(h) if i == 0 or i == h-1: print "#" * w else: print "#" + "." * (w - 2) + "#" print ""
s645935980
p02404
u803327846
1453877923
Python
Python
py
Runtime Error
0
0
196
while 1: h, w = map(int, input().split) if h == w == 0: break for i in range(h) if i == 0 or i == h-1: print "#" * w else: print "#" + "." * (w - 2) + "#" print ""
s130598001
p02404
u803327846
1453877952
Python
Python
py
Runtime Error
0
0
197
while 1: h, w = map(int, input().split) if h == w == 0: break for i in range(h): if i == 0 or i == h-1: print "#" * w else: print "#" + "." * (w - 2) + "#" print ""
s911231270
p02404
u803327846
1453877969
Python
Python
py
Runtime Error
0
0
199
while 1: h, w = map(int, input().split()) if h == w == 0: break for i in range(h): if i == 0 or i == h-1: print "#" * w else: print "#" + "." * (w - 2) + "#" print ""
s248297918
p02404
u803327846
1453878022
Python
Python
py
Runtime Error
0
0
197
while 1: h, w = map(int, input().split()) if h == w == 0: break for i in range(h): if i == 0 or i == h-1: print "#" * w else: print "#" + "."*(w - 2) + "#" print ""
s775356983
p02404
u834416077
1454153954
Python
Python
py
Runtime Error
0
0
315
import sys while(1): H,W = map(int, raw_input().split()) if H==0 and W==0: break for i in range(H): sys.stdout.white("#") for j in range(1,W-1): if i == 1 or i == H: sys.stdout.write("#") else: sys.stdout.write(".") sys.stdout.white("#") print "" print ""
s162874462
p02404
u834416077
1454154029
Python
Python
py
Runtime Error
0
0
304
import sys while(1): H,W = map(int, raw_input().split()) if H==0 and W==0: break for i in range(H): sys.stdout.white("#") for j in range(1,W-1): if i == 1 or i == H: sys.stdout.write("#") else: sys.stdout.write(".") sys.stdout.white("#\n") print ""
s234215965
p02404
u834416077
1454154105
Python
Python
py
Runtime Error
0
0
304
import sys while(1): H,W = map(int, raw_input().split()) if H==0 and W==0: break for i in range(H): sys.stdout.white("#") for j in range(2,W-1): if i == 1 or i == H: sys.stdout.write("#") else: sys.stdout.write(".") sys.stdout.white("#\n") print ""
s349358916
p02404
u834416077
1454154360
Python
Python
py
Runtime Error
0
0
314
import sys while(1): H,W = map(int, raw_input().split()) if H==0 and W==0: break for i in range(H): sys.stdout.white("#") for j in range(2,W-1): if i == 1 or i == H: sys.stdout.write("#") else: sys.stdout.write(".") sys.stdout.white("#\n") sys.stdout.white("\n")
s079763418
p02404
u834416077
1454155335
Python
Python
py
Runtime Error
0
0
199
while(1): H,W = map(int, raw_input().split()) if H==0 and W==0: break for i in range(H): if i == 0 or i == H-1: print "#"*w else: print "#" + "."*(W-2)" + "#" print ""
s384564916
p02404
u834416077
1454155376
Python
Python
py
Runtime Error
0
0
199
while(1): H,W = map(int, raw_input().split()) if H==0 and W==0: break for i in range(H): if i == 0 or i == H-1: print "#"*W else: print "#" + "."*(W-2)" + "#" print ""
s033506647
p02404
u613805578
1454161945
Python
Python
py
Runtime Error
0
0
179
while 1: W, H = map(int, raw_input().split()) if W = H = 0: break for i in range(H): if i = 0 or i = H-1: print "#" else print "#" + "" * (W-2) + "H"
s050604397
p02404
u613805578
1454162023
Python
Python
py
Runtime Error
0
0
189
while 1: W, H = map(int, raw_input().split()) if W == 0 and H == 0: break for i in range(H): if i == 0 or i == H-1: print "#" else print "#" + "" * (W-2) + "H"
s313281702
p02404
u613805578
1454162033
Python
Python
py
Runtime Error
0
0
190
while 1: W, H = map(int, raw_input().split()) if W == 0 and H == 0: break for i in range(H): if i == 0 or i == H-1: print "#" else print "#" + " " * (W-2) + "H"
s020099277
p02404
u613805578
1454162087
Python
Python
py
Runtime Error
0
0
194
while 1: W, H = map(int, raw_input().split()) if W == 0 and H == 0: break for i in range(H): if i == 0 or i == H-1: print "#" * W else print "#" + " " * (W-2) + "H"
s176955201
p02404
u613805578
1454163465
Python
Python
py
Runtime Error
0
0
186
while 1: W, H = map(int, input().split()) if W == 0 and H == 0: break print ("#"*W) for i in range(1, H-1): print ("#" + ("." * (W-2)) + "#") print ("#"*W) print ("")
s471239625
p02404
u613805578
1454163565
Python
Python
py
Runtime Error
0
0
186
while 1: H, W = map(int, input().split()) if W == 0 and H == 0: break print ("#"*W) for i in range(1, H-1): print ("#" + ("." * (W-2)) + "#") print ("#"*W) print ("")
s580572566
p02404
u613805578
1454163705
Python
Python
py
Runtime Error
0
0
186
while 1: H, W = map(int, input().split()) if W == 0 and H == 0: break print ("#"*W) for i in range(1, H-1): print ("#" + ("." * (W-2)) + "#") print ("#"*W) print ("")
s619853031
p02404
u613805578
1454163805
Python
Python
py
Runtime Error
0
0
181
while 1: H, W = map(int, input().split()) if W == 0 and H == 0: break print "#"*W for i in range(1, H-1): print ("#" + ("." * (W-2)) + "#") print "#"* W print ""
s331087053
p02404
u630265299
1454169798
Python
Python
py
Runtime Error
0
0
239
while True: h, w = map(int, raw_input().split()) if (h == 0 and w == 0): break for i in range(0,h): for j in range(0,w): if i==0 or j==0 or i==h-1 or j==w-1: ?????? print ("#") else: print (".") print print
s819215560
p02404
u630265299
1454169839
Python
Python
py
Runtime Error
0
0
239
while True: h, w = map(int, raw_input().split()) if (h == 0 and w == 0): break for i in range(0,h): for j in range(0,w): if i==0 or j==0 or i==h-1 or j==w-1: ?????? print ("#") else: print (".") print print
s965182262
p02404
u970436839
1454169874
Python
Python
py
Runtime Error
0
0
325
while True: H, W = map(int, raw_input().split()) if H == 0 and W == 0: break for i in range(H): width = "#" if i == 0 or i == H - 1: for j in range(1,W): width += "#" print width else: for j in range(1,W-1): width += "." width += "#" print width pri...
s105061293
p02404
u630265299
1454169933
Python
Python
py
Runtime Error
0
0
250
while True: h, w = map(int, raw_input().split()) if (h == 0 and w == 0): break for i in range(0,h): for j in range(0,w): if i==0 or j==0 or i==h-1 or j==w-1: ?????? print ("#") else: print (".") print("\n)
s785274950
p02404
u970436839
1454169981
Python
Python
py
Runtime Error
0
0
323
while True: H, W = map(int, raw_input().split()) if H == 0 and W == 0: break for i in range(H): width = "#" if i == 0 or i == H - 1: for j in range(W-1): width += "#" print width else: for j in range(W-2): width += "." width += "#" print width print...
s005764736
p02404
u630265299
1454169984
Python
Python
py
Runtime Error
0
0
258
while True: h, w = map(int, raw_input().split()) if (h == 0 and w == 0): break for i in range(0,h): for j in range(0,w): if i == 0 or j == 0 or i == h-1 or j == w-1: ?????? print ("#") else: print (".") print("\n)
s290366541
p02404
u630265299
1454170030
Python
Python
py
Runtime Error
0
0
256
while True: h, w = map(int, raw_input().split()) if (h == 0 and w == 0): break for i in range(0,h): for j in range(0,w): if i == 0 or j == 0 or i == h-1 or j == w-1: print ("#") else: print (".") print("\n)
s718976168
p02404
u970436839
1454170149
Python
Python
py
Runtime Error
0
0
177
while True: H, W = map(int, raw_input().split()) if H == 0 and W == 0: break print "#"*W for i in range(H-1): print "#" + "."*(W-2) + "#" print "#"*W print ""
s656710284
p02404
u970436839
1454170185
Python
Python
py
Runtime Error
0
0
183
while True: H, W = map(int, raw_input().split()) if H == 0 and W == 0: break print ("#"*W) for i in range(H-1): print ("#" + "."*(W-2) + "#") print ("#"*W) print ""
s485198124
p02404
u970436839
1454170290
Python
Python
py
Runtime Error
0
0
222
while True: H, W = map(int, raw_input().split()) if H == 0 and W == 0: break print "#"*W for i in range(H-1): if W > 2: print "#" + "."*(W-2) + "#" else: print "#"*W print "#"*W print ""
s586221607
p02404
u630265299
1454170363
Python
Python
py
Runtime Error
0
0
13
bari ga ippai
s024345548
p02404
u047737909
1454216201
Python
Python
py
Runtime Error
0
0
252
while 1: H, W = map(int, raw_input().split()) if (H == 0 and W == 0): break for i in range(H): if(i==0): print "#"*W elif(i==h-1): print "#"*W else: print "#"* print "."*(W-2) print "#"* print ""
s261600888
p02404
u047737909
1454216245
Python
Python
py
Runtime Error
0
0
252
while 1: H, W = map(int, raw_input().split()) if (H == 0 and W == 0): break for i in range(H): if(i==0): print "#"*W elif(i==H-1): print "#"*W else: print "#"* print "."*(W-2) print "#"* print ""
s433873619
p02404
u532962080
1454421452
Python
Python
py
Runtime Error
0
0
171
while True: H,W=map(int,raw_input().split()) if H==W==0: break elif H!=0 or W!=0: print (('#'*W + '\n')+('#' + '.'*(W-2) + '#' + '\n')*(H-2) + ('#'*W + '\n')
s975643181
p02404
u177295149
1454422830
Python
Python
py
Runtime Error
0
0
161
while 1: H, W = map(int, raw_input().split()) if H == 0 and W == 0: break for i in range(H): print "#" print "." * W-2 print "#" print""
s828140336
p02404
u177295149
1454423768
Python
Python
py
Runtime Error
0
0
211
while 1: H, W = map(int, raw_input().split()) if (H == 0 and W == 0): break print ('#' * W) for i in range(H-2): print ('#' + '.' * (W - 2) + '#' ) print ('#'* W) print" "
s615542235
p02404
u177295149
1454423835
Python
Python
py
Runtime Error
0
0
213
while 1: H, W = map(int, raw_input().split()) if (H == 0 and W == 0): break print ('#' * W) for i in range(1,H-1): print ('#' + '.' * (W - 2) + '#' ) print ('#'* W) print" "
s817980138
p02404
u177295149
1454423848
Python
Python
py
Runtime Error
0
0
217
while 1: H, W = map(int, raw_input().split()) if (H == 0 and W == 0): break print ('#' * W) for i in range(1,H-1): print ('#' + '.' * (W - 2) + '#' ) print ('#'* W) print" "
s534327613
p02404
u648595404
1455200612
Python
Python
py
Runtime Error
0
0
173
H = raw_input().split() W = raw_input().split() for height in range(H): if height == H-1 or height == 0: print "#"*W else: print "#"+ "."*(W-2)+"#\n"
s020820049
p02404
u648595404
1455200683
Python
Python
py
Runtime Error
0
0
151
H,W = raw_input().split() for height in range(H): if height == H-1 or height == 0: print "#"*W else: print "#"+ "."*(W-2)+"#\n"
s184737054
p02404
u648595404
1455200951
Python
Python
py
Runtime Error
0
0
150
H,W = raw_input().spllit() for height in range(H): if height == H-1 or height == 0: print "#"*W else: print "#"+ "."*(W-2)+"#"
s965289146
p02404
u648595404
1455201290
Python
Python
py
Runtime Error
0
0
151
[h, w] =raw_input().split() for height in range(h): if height == h-1 or height == 0: print "#"*w else: print "#"+ "."*(w-2)+"#"
s503813844
p02404
u648595404
1455201573
Python
Python
py
Runtime Error
0
0
192
[h, w] =map(int,raw_input().split()) if h == w == 0: break for height in range(h): if height == h-1 or height == 0: print "#"*w else: print "#"+ "."*(w-2)+"#"
s209625754
p02404
u648595404
1455292862
Python
Python
py
Runtime Error
0
0
228
while true: H,W = [int(if(i) for i input().split("")] if H == W == 0: break print ("#"*(W) for h in range(W-2): print ("."*(W-2).join("#","#")) print ("#"*(W)) print ()
s231385764
p02404
u648595404
1455292872
Python
Python3
py
Runtime Error
0
0
228
while true: H,W = [int(if(i) for i input().split("")] if H == W == 0: break print ("#"*(W) for h in range(W-2): print ("."*(W-2).join("#","#")) print ("#"*(W)) print ()
s114448639
p02404
u648595404
1455292908
Python
Python
py
Runtime Error
0
0
225
while true: H,W = [int(i) for i input().split("")] if H == W == 0: break print ("#"*(W) for h in range(W-2): print ("."*(W-2).join("#","#")) print ("#"*(W)) print ()
s511603692
p02404
u648595404
1455292932
Python
Python
py
Runtime Error
0
0
228
while true: H,W = [int(i) for i in input().split("")] if H == W == 0: break print ("#"*(W) for h in range(W-2): print ("."*(W-2).join("#","#")) print ("#"*(W)) print ()
s850154158
p02404
u648595404
1455292996
Python
Python
py
Runtime Error
0
0
204
while True: H,W=[int(i) for i in input().split(" ")] if H==W==0: break print("#"*(W)) for h in range(H-2): print(("."*(W-2)).join(("#","#"))) print("#"*(W)) print()
s879547732
p02404
u648595404
1455294545
Python
Python
py
Runtime Error
0
0
217
H,W = map(int(x) for x in raw_input().split("")) for height in range(H): if H == W == 0: break elif height == H-1 or height == 0: print "#"*W else: print "#"+ "."*(W-2)+"#" print ""
s888514525
p02404
u648595404
1455294575
Python
Python
py
Runtime Error
0
0
219
H,W = tuple(int(x) for x in raw_input().split("")) for height in range(H): if H == W == 0: break elif height == H-1 or height == 0: print "#"*W else: print "#"+ "."*(W-2)+"#" print ""
s567436492
p02404
u130979865
1459557741
Python
Python
py
Runtime Error
0
0
325
# -*- coding: utf-8 -*- while True: line = map(str, raw_input().split()) H = int(line[0]) W = int(line[1]) if H+W: for i in range(H): if i == 0 or i == (H-1): print "#"*W elif: print "#" + "."*(W-2) +"#" print "" else: ...
s375042104
p02404
u104931506
1464523888
Python
Python3
py
Runtime Error
0
0
155
while True: H, W = map(int, input().split()) if H == W == 0: break print('#' * W + '\n' + trye('#' + '.' * (W - 2) + '#' + '\n') * (H - 2) + '#' * W)
s845141075
p02404
u011261384
1469524039
Python
Python
py
Runtime Error
0
0
208
break for i in range(0,h): if i == 0 or i == h-1: print ("#"*w) else: print ("#"+"."*(w-2)+"#") print
s608678853
p02404
u085472528
1469602788
Python
Python3
py
Runtime Error
0
0
226
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()