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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s040765193 | p03711 | u529186305 | 1495333217 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 277 | x, y = map(int,input().split())
#def list
list1 = [1,3,5,7,8,10,12]
list2 = [4,6,9,11]
list3 = [2]
#group check
if x in list1 and y in list1:
print 'YES'
elif x in list2 and y in list2:
print 'YES'
elif x in list3 and y in list3:
print 'YES'
else:
print 'NO'
|
s311745626 | p03711 | u529186305 | 1495332601 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 331 | # -*- coding: utf-8 -*-
import sys
argv = sys.argv
x = int(argv[1])
y = int(argv[2])
#def list
list1 = [1,3,5,7,8,10,12]
list2 = [4,6,9,11]
list3 = [2]
#group check
if x in list1 and y in list1:
print 'YES'
elif x in list2 and y in list2:
print 'YES'
elif x in list3 and y in list3:
print 'YES'
else:
... |
s911760726 | p03711 | u529186305 | 1495332391 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 435 | # -*- coding: utf-8 -*-
import sys
argv = sys.argv
x = int(argv[1])
y = int(argv[2])
print argv
print x
print y
#range check
if 1 <= x < y <= 12:
pass
else:
print 'invalid range'
#def list
list1 = [1,3,5,7,8,10,12]
list2 = [4,6,9,11]
list3 = [2]
#group check
if x in list1 and y in list1:
print 'YES'
el... |
s488251460 | p03711 | u529186305 | 1495331533 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 437 | #!/usr/bin/env python
import sys
argv = sys.argv
x = int(argv[1])
y = int(argv[2])
#範囲チェック
if 1 <= x < y <= 12:
pass
else:
print 'invalid range'
#リストの定義
list1 = [1,3,5,7,8,10,12]
list2 = [4,6,9,11]
list3 = [2]
#グループのチェック
if x in list1 and y in list1:
print 'YES'
elif x in list2 and y in list2:
print ... |
s377284683 | p03711 | u143802957 | 1495331347 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 171 | size = input()
size = size.split()
print("#" * (int(size[1]) + 2))
for i in range(int(size[0])):
row = input()
print("#" + row + "#")
print("#" * (int(size[1]) + 2))
|
s508866601 | p03711 | u529186305 | 1495331328 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 439 | # -*- coding: utf-8 -*-
import sys
argv = sys.argv
x = int(argv[1])
y = int(argv[2])
#範囲チェック
if 1 <= x < y <= 12:
pass
else:
print 'invalid range'
#リストの定義
list1 = [1,3,5,7,8,10,12]
list2 = [4,6,9,11]
list3 = [2]
#グループのチェック
if x in list1 and y in list1:
print 'YES'
elif x in list2 and y in list2:
prin... |
s837098547 | p03711 | u205678452 | 1495331324 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 303 | listA = [1, 3, 5, 7, 8, 10, 12]
listB = [4, 6, 9, 11]
listC = [2]
N = [int(i) for i in input().split()]
for i in range(2):
a[i] = N[i] in listA
b[i] = N[i] in listB
c[i] = N[i] in listC
if a[0] == a[1]:
print "yes"
elif b[0] == b[1]:
print "yes"
elif c[0] == c[1]:
print "yes"
else:
print "no" |
s128418135 | p03711 | u529186305 | 1495330560 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 453 | # -*- coding: utf-8 -*-
import sys
argv = sys.argv
x = int(argv[1])
y = int(argv[2])
#範囲チェック
if 1 <= x < y <= 12:
pass
else:
print 'invalid range'
sys.exit()
#リストの定義
list1 = [1,3,5,7,8,10,12]
list2 = [4,6,9,11]
list3 = [2]
#グループのチェック
if x in list1 and y in list1:
print 'YES'
elif x in list2 and y in ... |
s912782739 | p03711 | u529186305 | 1495330102 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 466 | # -*- coding: utf-8 -*-
import sys
argv = sys.argv
x = int(argv[1])
y = int(argv[2])
#範囲チェック
if 1 <= x < y <= 12:
print 'correct range'
else:
print 'invalid range'
quit()
#リストの定義
list1 = [1,3,5,7,8,10,12]
list2 = [4,6,9,11]
list3 = [2]
#グループのチェック
if x in list1 and y in list1:
print 'YES'
elif x in li... |
s838604113 | p03711 | u451817125 | 1495329873 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 304 | b.py a.py X
l = raw_input().split(" ")
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]
ans="No"
if (l[0] in a and l[1] in a):
ans="Yes"
if (l[0] in b and l[1] in b):
ans="Yes"
if (l[0] in c and l[1] in c):
ans="Yes"
print(ans)
|
s305701334 | p03711 | u451817125 | 1495329809 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 304 | b.py a.py X
l = raw_input().split(" ")
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]
ans="No"
if (l[0] in a and l[1] in a):
ans="Yes"
if (l[0] in b and l[1] in b):
ans="Yes"
if (l[0] in c and l[1] in c):
ans="Yes"
print(ans)
|
s683504883 | p03711 | u529186305 | 1495329691 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 339 | # -*- coding: utf-8 -*-
import sys
argv = sys.argv
x = int(argv[1])
y = int(argv[2])
#範囲チェック
if 1 <= x < y <= 12:
print 'OK'
else:
print 'NG'
quit()
#リストの定義
list1 = [1,3,5,7,8,10,12]
list2 = [4,6,9,11]
list3 = [2]
#グループのチェック
if x and y in list1:
print 'YES'
else:
print 'NO' |
s548148365 | p03711 | u049595114 | 1495328983 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 303 | x, y = [int(x) for x in input().split()]
list1 = [1, 3, 5, 7, 8, 10, 12]
list2 = [4, 6, 9, 11]
list3 = [2]
if x in list1:
if y in list1:
print("Yes")
else:
pirnt("No")
elif x in list2:
if y in list2:
print("Yes")
else:
print("No")
else:
if y in list3:
print("Yes")
else:
print("No")
|
s728280639 | p03711 | u451817125 | 1495328783 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 223 | l = raw_input().split(" ")
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]
ans="NO"
if (l[0] in a and l[1] in a):
ans="YES"
if (l[0] in b and l[1] in b):
ans="YES"
if (l[0] in c and l[1] in c):
ans="YES"
print(ans)
|
s482681901 | p03712 | u546853743 | 1601048622 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8940 | 83 | print('#'*(w+2))
for i in range(h):
print('#'+input()+'#')
print('#'*(w+2)) |
s454412557 | p03712 | u546853743 | 1600894445 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9096 | 208 | h,w=map(int,input().split())
for i in range(h):
for j in range(w):
a=list(input())
print('#'*(w+2))
for i in range(h):
for j in range(w):
print('#'+a[i][j]+'#')
print('#'*(w+2)) |
s323551567 | p03712 | u244836567 | 1599256603 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9184 | 165 | x,y=input().split()
x=int(x)
y=int(y)
a=[input() for i in range(x)]
c=""
for i in range(y+2):
c=c+"#"
print(c)
for i in range(y-1):
print("#"+a[i]+"#")
print(c)
|
s509358484 | p03712 | u244836567 | 1599256516 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9144 | 160 | x,y=input().split()
x=int(x)
y=int(y)
a=[input() for i in range(x)]
c=""
for i in range(y):
c=c+"#"
print(c)
for i in range(y):
print("#"+a[i]+"#")
print(c) |
s512148673 | p03712 | u244836567 | 1599256374 | Python | Python (3.8.2) | py | Runtime Error | 28 | 8960 | 138 | a=[input() for i in range]
c=""
for i in range(len(a[0])+2):
c=c+"#"
print(c)
for i in range(len(a[0]+2):
print("#"+a[i]+"#")
print(c) |
s405558480 | p03712 | u017415492 | 1597997143 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8908 | 885 | using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program
{
static void Main(string[] args)
{
string[] input = ReadLine().Split();
int h = int.Parse(input[0]);
int w = int.Parse(input[1]);
List<List<string>> a = new List<List<string>>()... |
s185394772 | p03712 | u953379577 | 1597855826 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9100 | 188 | x,y = map(int,input().split())
for i in range(x+1):
print("#",end = "")
print("#")
for i in range(y):
print("#"+input()+"#")
for i in range(x+1):
print("#",end = "")
print("#") |
s172005457 | p03712 | u800058906 | 1595677132 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8944 | 155 | H,W=int(input().split())
a=[]
a.append('#'*(W+2))
for i in range(1,H+1):
a.append('#'+input()+'#')
a.append('#'*(W+2))
for i in range(H+2):
print(a[i]) |
s092125664 | p03712 | u679089074 | 1594953275 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9064 | 226 | #49
H,W = map(int,input().split())
a = []
for i in range(H):
a.append(input())
for i in range(W+2):
print("#",end = "")
print("")
for i in a:
print("#",l,"#",sep = "")
for i in range(W+2):
print("#",end = "") |
s250546648 | p03712 | u062691227 | 1594506318 | Python | PyPy3 (7.3.0) | py | Runtime Error | 96 | 68468 | 136 | hw,*aaa = open(1).read().splitlines()
h,w = map(int, hw.split())
print('#'*(w+2))
for aa in aaa:
print(f'#{aa}#')
print('#'*(w+2)) |
s734094280 | p03712 | u642012866 | 1591933241 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 129 | H, W = map(int, input().split())
a = [input()for _ in range(H)]
print("#"*(W+2))
for r in a:
print(f"#{r}#")
print("#"*(W+2)) |
s732124545 | p03712 | u642012866 | 1591933186 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | H, W = map(int, input().split())
print("#"*(W+2))
for _ in range(H):
print(f"#{input()}#")
print("#"*(W+2)) |
s159072987 | p03712 | u941022948 | 1590814646 | Python | PyPy3 (2.4.0) | py | Runtime Error | 173 | 38512 | 234 | h,w=map(int,input().split())
list1=[[0 for i in range(h)] for j in range(w)]
for i in range(h):
list1[i]=list(map(str,input().split()))
print('#'*(w+2))
for i in range(h):
print('#'+str(''.join(list1[i]))+'#')
print('#'*(w+2)) |
s555680476 | p03712 | u274644863 | 1590371526 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 257 | h, w = map(int, input().split())
a = []
b = list([['#']*(w+2)]*(h+2)) #[]で囲うことが重要
for i in range(h):
a.append(list(input())) #splitを入れなければOK
for j in range(h):
for k in range(w):
b[j+1][k+1] = a[j][k]
print(b)
|
s494769028 | p03712 | u274644863 | 1590371262 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 255 | h, w = map(int, input().split())
a = []
b = list([['#']*(w+2)]*(h+2)) #[]で囲うことが重要
for i in range(h):
a.append(list(input())) #splitを入れなければOK
for j in range(h):
for k in range(w)
b[j+1][k+1] = a[j][k]
print(b) |
s570103893 | p03712 | u370852395 | 1589814916 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 154 | H,W = map(int,input().split())
l=[]
for i in range(2):
l.append(input())
print('#'*(W+2))
for i in range(H):
print('#'+l[i]+'#')
print('#'*(W+2))
|
s325556325 | p03712 | u671446913 | 1589069581 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 367 | #!/usr/bin/env python3
import collections
import itertools as it
import math
#import numpy as np
# = input()
# = int(input())
h, w = map(int, input().split())
# = list(map(int, input().split()))
# = [int(input()) for i in range(N)]
#
# c = collections.Counter()
print(f'{"#" * (w + 2)}')
for _ in range(h):
p... |
s950662703 | p03712 | u816631826 | 1588488151 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 406 | h,w=input().split()
h=int(h)
ch='#'
w=int(w)
lt=[]
for i in range(h):
a = []
a.append(input().split())
lt.append(a)
for j in range(w+2):
print(ch,end=' ')
print()
for i in range(h):
for j in range(w):
if j==0:
print(ch,end=' ')
print(lt[i][0][j],end=' ')
if j==w-1... |
s798016598 | p03712 | u614181788 | 1588450804 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 320 | h,w = map(int,input().split())
a = [0]*h
for i in range(h):
a[i] = input().split()
for i in range(h+2):
for j in range(w+2):
if i == 0 or i == h+1:
print('#',end='')
elif j == 0 or j == w+1:
print('#',end='')
else:
print(a[i-1][j-1],end='')
print() |
s510303397 | p03712 | u723792785 | 1588349202 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 203 | h,w = map(int, input().split())
a = [[] for _ in range(h)]
for i in range(h):
a[h] = list(map(str, input().split()))
print("#"*(w+2))
for i in range(h):
print("#"+a[h].join("")+"#")
print("#"*(w+2))
|
s600829005 | p03712 | u858670323 | 1587092498 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 204 | h,w=map(int,input().rstrip().split(' '))
A = list()
a = "#"*(W+2)
A.append(a)
for i in range(h):
a = str(input().rstrip())
a = "#"+a+"#"
A.append(a)
a = "#"*(W+2)
A.append(a)
for a in A:
print(a) |
s043383332 | p03712 | u863370423 | 1587078938 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 228 |
n,m=map(int,input().split())
# print
v=[]
for i in range(n+2):
s=""
if i==0 or i==n+1:
s="#"*(m+2)
else:
a=input()
s="#"+a+"#"
v.append(s)
for i in v:
print(i)
|
s520004620 | p03712 | u384124931 | 1586824366 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 119 | H, W=map(int,input().split())
print("#"*(w+2))
for i in range(h):
s=input()
s="#"+s+"#"
print(s)
print("#"*(w+2)) |
s650708458 | p03712 | u461833298 | 1585664663 | Python | Python (3.4.3) | py | Runtime Error | 21 | 4468 | 260 | H, W = map(int, input().split())
a = [[x for x in input()] for _ in range(H)]
ans = []
ans.append(['#'*(W+2)])
for row in a:
row.insert(0, '#')
row.append('#')
ans.append(row)
ans.append(['#'*(W+2)])
for i in range(W+2):
print(*ans[i], sep='') |
s090602174 | p03712 | u461833298 | 1585664604 | Python | Python (3.4.3) | py | Runtime Error | 21 | 4468 | 260 | H, W = map(int, input().split())
a = [[x for x in input()] for _ in range(H)]
ans = []
ans.append(['#'*(W+2)])
for row in a:
row.insert(0, '#')
row.append('#')
ans.append(row)
ans.append(['#'*(W+2)])
for i in range(W+2):
print(*ans[i], sep='') |
s442170295 | p03712 | u440129511 | 1585660664 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 164 | h,w=map(int,input().split())
a= [list(map(input().split())) for _ in range(h)]
print('#'*(w+2))
for i in range(h):
print('#'+"".join(a[i])+'#')
print('#'*(w+2)) |
s599894102 | p03712 | u016323272 | 1585144649 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 119 | H,W = map(int,input().split())
print('#'*(W+2)
for i in range(H):
a = input()
print('#'+a+'#')
print('#'*(W+2)) |
s128923038 | p03712 | u697696097 | 1583813406 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | h,w=map(int,input().strip())
print("#"*(w+2))
for _ in range(h):
print("#"+input().strip()+"#")
print("#"*(w+2))
|
s099467807 | p03712 | u697696097 | 1583813270 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 106 | h,w=map(int,input().strip())
print("#"*w)
for _ in range(h):
print("#"+input().strip()+"#")
print("#"*w) |
s965846258 | p03712 | u914330401 | 1582068144 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | h, w = map(int, input().split())
for i in range(h+2):
if i == 0 or i == h+1:
print("#"*(w+2))
else:
print("#"+input()"#")
|
s067684973 | p03712 | u690037900 | 1581533376 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 150 | a,b=map(int,input().split())
L=[list(map(str,input())) for i in rage(a)]
L.insert(0,[*]*(a+2))])
L.insert(-1,[*]*(a+2))])
for i in L
print("".join(i)) |
s726638816 | p03712 | u374146618 | 1581451126 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 173 | h, w = map(int, input().split())
a = [input().split() for _ in range(2)]
print("#"*(w+2))
for i in range(h):
t = "".join(["#"]+a[i]+["#"])
print(t)
print("#"*(w+2)) |
s514180367 | p03712 | u347640436 | 1581410501 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3188 | 116 | H, W = map(int, input())
print('#' * (W + 2))
for i in range(H):
print('#%s#' % (input()))
print('#' * (W + 2)) |
s407459924 | p03712 | u995004106 | 1581367248 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38256 | 416 | import numpy as np
H,W=map(int,input().split())
a=[list(map(str,list(input()))) for i in range(H)]
f=np.empty((H+2,W+2))
f=f.tolist()
#print(f)
#print(a)
for i in range(H+2):
for j in range(W+2):
if (i==0)or(i==H+1)or(j==0)or(j==W+1):
f[i][j]='#'
#print("#")
elif (i>0)and(j>... |
s270138122 | p03712 | u760767494 | 1581354791 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 118 | h,w=map(int,input().split())
print("#"*(w+2))
for i in range(h):
t = input()
print("#"+w+"#")
print("#"*(w+2)) |
s657265009 | p03712 | u760767494 | 1581354636 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 123 | h,w=map(int,input().split())
print("#"*(w+2))
for i in range(h):
w = input()
print("#"+w+"#")
print("#"*(w+2))
|
s687292505 | p03712 | u072717685 | 1581274912 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 158 | h, w = map(int,input().split()
a = [row for row in range(h)]
print('#' * w)
for i in range(h):
print('#' + a[i] + '#')
print('#' * w) |
s694775736 | p03712 | u840958781 | 1580600038 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 116 | h,w=map(int,input().split())
a=input()
b=input()
print("#"*(h+w))
print("#"+a+"#")
print("#"+b+"#")
print("#"*(h+w)) |
s127876331 | p03712 | u094191970 | 1580538983 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 106 | h,w=map(int,input().split())
print('#'*(w+2))
for i in range(h):
print('#'+input()+'#')
print('#'+(w+2)) |
s959131961 | p03712 | u843722521 | 1579457102 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38512 | 98 | h,w=map(int,input())
print("#"*(w+2))
for _ in range(h):
print("#"+input()+"#")
print("#"*(w+2)) |
s450121885 | p03712 | u934978909 | 1578906433 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 280 | H, W = input().split(' ')
H=int(H)
W=int(W)
lista=[]
pos=0
for lis in range(0,H):
a = input()
lista.append(a)
print ((W+2)*"#")
if H==1:
print('#'+lista[pos]+'#')
else:
for linha in range (0,W-1):
print ('#'+lista[pos]+'#')
pos+=1
print ((W+2)*'#') |
s455110085 | p03712 | u934978909 | 1578906195 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 290 | H, W = input().split(' ')
H=int(H)
W=int(W)
lista=[]
pos=0
for lis in range(0,H):
string = input()
lista.append(string)
print ((W+2)*"#")
if H==1:
print('#'+lista[pos]+'#')
else:
for linha in range (0,W-1):
print ('#'+lista[pos]+'#')
pos+=1
print ((W+2)*'#') |
s341613646 | p03712 | u007263493 | 1577629587 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 163 | h , w = map(int,input().split())
lis = []
for i in range(w):
lis.append(input())
print('#'*(w+2))
for i in range(h):
print('#'+lis[i]+'#')
print('#'*(w+2)) |
s835163518 | p03712 | u102242691 | 1577595486 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 153 |
h,w = map(int,input().split())
s = [input() for i in range(h)]
print("#" * (w + 2)
for i in range(h):
print("#" + s[i] + "#")
print("#" * (w + 2))
|
s581733749 | p03712 | u102242691 | 1577595382 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 150 |
h,w = map(int,input().split())
s = [input() for i in range(h)]
print("#" * w + 2)
for i in range(h):
print("#" + s[i] + "#")
print("#" * w + 2)
|
s854365425 | p03712 | u609814378 | 1577137547 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 1 | s |
s806109874 | p03712 | u923659712 | 1574105442 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 138 | h,w=map(int,input().split())
print("#"*(w+2))
for i in range(h):
d=input()
d.insert("#",0)
d.append("#")
print(d)
print("#"*(w+2)) |
s545997275 | p03712 | u814986259 | 1572626820 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 175 | H,W=map(int,input().split())
ans=[]*(H+2)
ans[0]=["#"]*(W+2)
ans[H+1]=["#"]*(W+2)
for i in range(1,H+1):
ans[i]="#"+input()+"#"
for i in range(H+2):
print("".join(ans[i])) |
s556712295 | p03712 | u597017430 | 1571087913 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 219 | h, w = map(int, input().split())
x = [0]*h
for i in range(h):
x[i] = input()
for i in range(w+):
print('#', end='')
print('#')
for i in range(h):
print('#' + x[i] + '#')
for i in range(w+2):
print('#', end='') |
s609654599 | p03712 | u623349537 | 1569858609 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 191 | H, W = map(int, input().split())
a = ["" for i in range(N)]
for i in range(H):
a[i] = input()
print("#" * (W + 2))
for i in range(H):
print("#" + a[i] + "#")
print("#" * (W + 2)) |
s244942563 | p03712 | u464912173 | 1569849549 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 107 | a,b=map(int,input().spllit())
print("#"*(b+2))
for i in range(a):
print("#"+input()+"#")
print("#"*(b+2)) |
s077959246 | p03712 | u450904670 | 1569806300 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 125 | w,h = list(map(int, input().split()))
print("#"*(w+2))
for i in range(h):
print("#", input(), "#", sep="")
print("#"*(w+2)) |
s747459612 | p03712 | u602677143 | 1568232879 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 186 | h,w = map(int,input().split())
for i in range(w):
print("#",end="")
print("")
for i in range(h):
a = input()
print("#" + a + "#")
for i in range(w):
print("#",end=") |
s393829073 | p03712 | u895536055 | 1567636290 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 446 | #include <bits/stdc++.h>
#define mod 1000000007
#define rep(i, n) for(int i=0; i<n; ++i)
using namespace std;
typedef long long ll;
const long long INF = 1LL << 60;
int main(void){
int H, W;
char a[110][110];
cin >> H >> W;
rep(i, H)
rep(j, W)
cin >> H[i][j];
rep(i, H+2){
rep(j, W+2){
if(j =... |
s982069128 | p03712 | u187857228 | 1567399947 | Python | Python (3.4.3) | py | Runtime Error | 160 | 12420 | 311 | import numpy as np
def test():
h,w = map(int,input().split())
arr = np.full((h+2,w+2),"#")
for i in range(1,h+1):
a = list(input())
for j in range(1,w+1):
arr[i][j] = a[j-1]
for i in range(h+2):
print("".join(arr[i]))
if __name__ == "__main__":
test()
|
s426947668 | p03712 | u187857228 | 1567398963 | Python | Python (3.4.3) | py | Runtime Error | 149 | 12392 | 270 | import numpy as np
def test():
h,w = map(int,input().split())
arr = np.full((h+2,w+2),"#")
for i in range(1,h+1):
a = list(input())
for j in range(1,w+1):
arr[i][j] = a[j-1]
print(arr)
if __name__ == "__main__":
test()
|
s056738870 | p03712 | u467826805 | 1566439356 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38384 | 672 | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
#include <set>
#include <map>
#include <queue>
#include <iomanip>
using namespace std;
#define rep(i,n) for(int i = 0;i<n;i++)
const long long MOD = 1000000007LL;
const string alpha = "abcdefghijklmnopqrstuvwxyz";
int main(){
... |
s016089314 | p03712 | u298297089 | 1566338723 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 159 | h,w = map(int,input().split())
edges = '#' * (W+2)
ans = [edges]
for i in range(h):
ans.append('#' + input() + '#')
ans.append(edges)
[print(i) for i in ans] |
s280517074 | p03712 | u994988729 | 1566266026 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 200 | h,w=map(int,input().split())
pic=[["#" for i in range(w+2)]]
for i in range(h):
s=list(input())
s="#"+s+"#"
pic.append(s)
pic.append(["#" for i in range(w+2)])
for i in pic:
print("".join(i)) |
s487517968 | p03712 | u842388336 | 1565822427 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 225 | a,b = map(int,input().split())
temp=["#" for _ in b+2]
mass = []
mass.append(temp)
for _ in range(a):
mass.append(["#"] + list(input()) + ["#"])
mass.append(temp)
for retsu in mass:
retsu = "".join(retsu)
print(retsu) |
s719955258 | p03712 | u842388336 | 1565822410 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 219 | a,b = map(int,input().split())
temp=["#" for _ in b+2]
mass = []
mass.append(temp)
for _ in range(a):
mass.append(["#"] + input() + ["#"])
mass.append(temp)
for retsu in mass:
retsu = "".join(retsu)
print(retsu) |
s642276947 | p03712 | u371530330 | 1565587015 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 249 | h,w = map(int, input().split())
a = [input().split() for i in range(h)]
b = []
for i in range(h):
a[i].insert(0,'#')
a[i].append('#')
for i in range(w+2):
b.append('#')
a.insert(0,b)
a.append(b)
for i in a:
print("".join(str(a[i]))) |
s582088785 | p03712 | u371530330 | 1565586115 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 252 | h,w = map(int, input().split())
a = [input().split() for i in range(h)]
a = {}
b = []
for i in h:
a[i].insert(0,'#')
a[i].append('#')
for i in w+2:
b.append('#')
a.insert(0,b)
a.append(b)
for i in a:
print("".join(list(map(str,i)))) |
s236685508 | p03712 | u371530330 | 1565584595 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 212 | h,w = map(int, input().split())
for i in h:
a[i] = list(input())
a = {}
b = []
for i in h+2:
b.append('#')
a.insert(0,b)
a.insert(h+2,b)
for i in w+2:
a[i].insert(0,'#')
a[i].insert(w+2,'#')
print(a) |
s933811044 | p03712 | u469953228 | 1565568798 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 160 | h,w = (int(i) for i in input().split())
a[]
for i in range(h):
a.append(input())
print('#'*(w+2))
for i in range(h):
print('#'+ a[i] + '#')
print('#'*(w+2)) |
s475156957 | p03712 | u201660334 | 1564207982 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 131 | h, w = map(int, input().splilt())
print("#" * (w + 2))
for i in range(h):
s = input()
print("#" + s + "#")
print("#" * (w + 2)) |
s695237272 | p03712 | u405256066 | 1561708879 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 205 | from sys import stdin
H,W = [int(x) for x in stdin.readline().rstrip().split()]
data = ["#"*(W+2)]
for _ in range(H):
data.append("#" + input() + "#")
deta.append("#"*(W+2))
for j in data:
print(j) |
s926963511 | p03712 | u223646582 | 1559585327 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | H,W=map(int,input().split())
print('#'*W+2)
for _ in range(H):
print('#'+input()+'#')
print('#'*W+2)
|
s052017808 | p03712 | u623687794 | 1558490838 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 165 | h,w = map(int,input().split())
for i in range(h+2):
if i ==0 or i == h+1:
for d in range(w+2):
print("#",end="")
continue
print("#"+input()+"#")
|
s220815774 | p03712 | u623687794 | 1558490788 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 149 | h,w = map(int,input().split())
for i in range(h+2):
if i ==0 or i == h+1:
for d in range(w+2):
print("#",end="")
print("#"+input()+"#") |
s869965317 | p03712 | u187205913 | 1558313075 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 122 | a,b = map(int,input()split())
print('#'*(b+2))
for _ in range(a):
c = input()
print('#{}#'.format(c))
print('#'*(b+2)) |
s748810716 | p03712 | u565149926 | 1556385580 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 126 | H, W = map(int, input().split())
a = ["#" * (W+2), *["#" + input() + "#" for _ in range(H)], "#" * (W+2)]
print("\n".join(a))
|
s526180497 | p03712 | u013408661 | 1553571557 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 221 | h,w=map(int,input().split())
ans=[]
ans.append(['#']*(w+2))
for i in range(h):
a=list(map(int,input().split()))
a.insert(0,'#')
a.append('#')
ans.append(a)
ans.append(['#']*(w+2))
for i in ans:
print(''.join(i)) |
s919813341 | p03712 | u013408661 | 1553571486 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 221 | h,w=map(int,input().split())
ans=[]
ans.append(['#'*(w+2)])
for i in range(h):
a=list(map(int,input().split()))
a.insert(0,'#')
a.append('#')
ans.append(a)
ans.append(['#'*(w+2)])
for i in ans:
print(''.join(i)) |
s288742980 | p03712 | u013408661 | 1553571406 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 219 | h,w=map(int,input().split())
ans=[]
ans.append('#'*(w+2))
for i in range(h):
a=list(map(int,input().split()))
a.insert(0,'#')
a.append('#')
ans.append("#")
ans.append('#'*(w+2))
for i in ans:
print(''.join(i)) |
s742812375 | p03712 | u363610900 | 1553208612 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 148 | H, W = map(input().split())
a = [input() for i in range(H)]
block = '#' * (W+2)
print(block)
for s in a:
print('#' + s + '#')
print('#' * (W+2)) |
s148705808 | p03712 | u393512980 | 1553013985 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 113 | h,w=map(int,input().split())
a=['#'(w+2)]+['#'+input()+'#' for _ in range(h)]+['#'*(w+2)]
for x in a:
print(x)
|
s149923431 | p03712 | u729133443 | 1552975101 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 82 | _,w,*s=open(0).read().split();t=['#'*(int(w)+2)];print(t,*['#'+t+'#'for t in s],t) |
s261722589 | p03712 | u375616706 | 1552349124 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 297 | # python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
H, W = map(int, input().split())
grid = [["#"]*(W+2) for _ in range(H+2)]
for i in range(1, H+1):
l = list(input().split())
for j in range(1, W+1):
grid[i][j] = l[j-1]
for i in grid:
print(" ".join(i))
|
s835777712 | p03712 | u543954314 | 1550636644 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 173 | h, w = map(int, input().split())
a = [list(input()) for i in range(h)]
a = ['#' for i in range(w)] + a + ['#' for i in range(w)]
for i in a:
i = '#'+ i +'#'
print(i) |
s397049302 | p03712 | u740284863 | 1547083187 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 116 | N,M = map(int,input().split())
print("#"*(N+2))
for i in range(M):
print("#"+str(input())+"#")
print("#"*(N+2))
|
s456296423 | p03712 | u916806287 | 1545805892 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 122 | h, w = map(int, input().split())
a = ["#"*(w+2)] + ["#" + input() + "#" for i in h] + ["#"*(w+2)]
for s in a:
print(s)
|
s628809722 | p03712 | u785578220 | 1545591293 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 128 | a , b = map(int,input().split())
print("#"*(3+2))
for i in range(1,b):
tmp = input()
print("#"+tmp+"#")
print("#"*(3+2)) |
s396233645 | p03712 | u844789719 | 1543310471 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 140 | H, W = [int(_) for _ in input().split()]
A = [input() for _ in range(N)]
print('#'*(W+2))
for a in A:
print('#'+a+'#')
print('#'*(W+2))
|
s987131123 | p03712 | u853900545 | 1538334008 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 107 | h,w = map(int,input().split())
w += 2
print('#'*w)
for i in (h):
print('#' + input() +'#')
print('#'*w) |
s429273891 | p03712 | u451017206 | 1530837651 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 5 | 1 1
z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.