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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s204262540 | p04044 | u586206420 | 1587782668 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 211 | s = list(map(int, input().split()))
t = [input() for i in range(s[0])]
for i in range(0, s[0] - 1):
if t[i] > t[i + 1]:
u = t[i]
t[i] = t[i + 1]
t[i + 1] = u
print(t[0] + t[1] + t[2]) |
s592224582 | p04044 | u869265610 | 1587445206 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 116 | a,b = map(int,input().split())
L=[]
for i in range(b):
L.append(input())
K=sorted(L)
print(''.join(K))
|
s432197469 | p04044 | u869265610 | 1587443944 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | a,b = map(int,input().split())
L=[list(map(input().split())) for i in range(b)]
print(L.sort())
|
s007134144 | p04044 | u108597410 | 1587175013 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 95 | n,m = map(int,input().split())
List = [input() for i in range(n)]
print("".join(sorted(List))
|
s847703548 | p04044 | u108597410 | 1587174963 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 94 | n,m = map(int,input().split())
List = [input() for i in range(n)]
print(''.join(sorted(List)) |
s438930596 | p04044 | u578854679 | 1587131710 | Python | PyPy3 (2.4.0) | py | Runtime Error | 178 | 38256 | 99 | n, l = map(int, input().split())
s = [input() for _ in range(n)]
s.sort()
print(s[0] + s[1] + s[2]) |
s335345182 | p04044 | u923583900 | 1587046309 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 166 | number,length=input().split()
input_list=[]
out=''
for i in range(number):
input_list.append(input())
input_list.sort()
for i in input_list:
out+=i
print(out) |
s177723981 | p04044 | u136843617 | 1586931004 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 91 | l, n = map(int, input().split())
s = [input() for _ in range(n)]
s.sort()
print("".join(s)) |
s631781987 | p04044 | u136843617 | 1586930642 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | l, n = map(int, input().split())
s = sorted([input() for _ in range(n)])
print("".join(s)) |
s101048384 | p04044 | u515647766 | 1586890868 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 1282 | def sort(str_list):
for i in range(len(str_list) - 1):
string = str_list[i]
for j in range(i + 1, len(str_list)):
next_string = str_list[j]
for k in range(len(string)):
if ord(string[k]) > ord(next_string[k]):
temp = string
str_list[i] = next_string
str_list[j] = temp
break
elif ord(string[k]) == ord(next_string[k]):
continue
else:
break
ans = ""
for i in str_list:
ans += i
return ans
line1 = input().split()
n = line1[0]
l = line1[1]
str_list = []
for i in range(n):
str_list.append(input())
print(sort(str_list))
def sort(str_list):
for i in range(len(str_list) - 1):
string = str_list[i]
for j in range(i + 1, len(str_list)):
next_string = str_list[j]
for k in range(len(string)):
if ord(string[k]) > ord(next_string[k]):
temp = string
str_list[i] = next_string
str_list[j] = temp
break
elif ord(string[k]) == ord(next_string[k]):
continue
else:
break
ans = ""
for i in str_list:
ans += i
return ans
line1 = input().split()
n = int(line1[0])
l = line1[1]
str_list = []
for i in range(n):
str_list.append(input())
print(sort(str_list)) |
s048732527 | p04044 | u515647766 | 1586890815 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 639 | def sort(str_list):
for i in range(len(str_list) - 1):
string = str_list[i]
for j in range(i + 1, len(str_list)):
next_string = str_list[j]
for k in range(len(string)):
if ord(string[k]) > ord(next_string[k]):
temp = string
str_list[i] = next_string
str_list[j] = temp
break
elif ord(string[k]) == ord(next_string[k]):
continue
else:
break
ans = ""
for i in str_list:
ans += i
return ans
line1 = input().split()
n = line1[0]
l = line1[1]
str_list = []
for i in range(n):
str_list.append(input())
print(sort(str_list))
|
s730001159 | p04044 | u289162337 | 1586802810 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 125 | N, L = map(int, input().split())
l = [input() for _ in range(L)]
l = sorted(l)
s = ""
for i in range(L):
s += l[i]
print(s) |
s818110712 | p04044 | u289162337 | 1586802746 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 120 | N, L = map(int, input().split())
l = [input() for _ in range(L)]
l.sort()
s = ""
for i in range(L):
s += l[i]
print(s) |
s062784382 | p04044 | u423665486 | 1586751795 | Python | PyPy3 (2.4.0) | py | Runtime Error | 177 | 38640 | 173 | def resolve():
n, m = map(int, input().split())
w = list()
ans = ""
for _ in range(m):
w.append(input())
w.sort()
for word in w:
ans += word
print(ans)
resolve() |
s414028857 | p04044 | u423665486 | 1586751696 | Python | PyPy3 (2.4.0) | py | Runtime Error | 183 | 38512 | 190 | def resolve():
n, m = map(int, input().split())
w = list()
ans = ""
for _ in range(m):
w.append("".join(sorted(input())))
w.sort()
for word in w:
ans += word
print(ans)
resolve() |
s778578712 | p04044 | u099187672 | 1586749797 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 204 | n,l = map(int,input().split())
str1 = input()
str2 = input()
str3 = input()
blank = []
blank.append(str1)
blank.append(str2)
blank.append(str3)
blank.sort()
new = blank[0]+blank[1]+blank[2]
print(new)
|
s051486675 | p04044 | u423665486 | 1586739159 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 140 | def resolve():
n, m = map(int, input().split())
w = list()
for _ in range(m):
w.append(input())
w.sort()
print("".join(w))
resolve() |
s381744579 | p04044 | u423665486 | 1586739097 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 139 | def resolve():
n, m = map(int, input().split())
w = list()
for _ in range(m):
w.append(input())
w.sort()
print("".join(w))
resolve() |
s571866826 | p04044 | u112747720 | 1586678661 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 156 | N, L = [int(i) for i in input().split(' ')]
words = [input() for i in range(len(N))]
words.sort(key = lambda x: x[0])
for word in words:
print(word)
|
s440208183 | p04044 | u112747720 | 1586678562 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 150 | N, L = [int(i) for i in input().split(' ')]
words = [input() for i in range(len(N))]
words.sort(lambda x: x[0])
for word in words:
print(word)
|
s292672339 | p04044 | u112747720 | 1586678501 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 153 | N, L = [int(i) for i in input().split(' ')]
words = [input() for i in range(len(N))]
words.sort(lambda word: word[0])
for word in words:
print(word) |
s189509867 | p04044 | u583507988 | 1586484104 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 96 | N, L = map(int, input().split())
S = [input() for i in range(L)]
s = sorted(S)
print(*s, sep='') |
s927885543 | p04044 | u583507988 | 1586483999 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 97 | N, L = map(int, input().split())
S = [input() for i in range(L)]
s = sorted(S)
print(*s, sep='')
|
s100598092 | p04044 | u583507988 | 1586483759 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 67 | L = int(input())
print(*sorted(input() for i in range(L)), sep='')
|
s791814278 | p04044 | u583507988 | 1586474904 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 74 | N, L = map(int, input().split())
print(*sorted(input() for i in range(L))) |
s969119975 | p04044 | u583507988 | 1586474774 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 82 | N, L = map(int, input().split())
print(*sorted(input() for i in range(L)), sep='') |
s756478444 | p04044 | u583507988 | 1586474546 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 97 | N, L = map(int, input().split())
S = [input().split() for i in range(L)]
s = sorted(S)
print(*s) |
s805093843 | p04044 | u172780602 | 1586473320 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 141 | n,l=map(int,input().split())
list=[]
for _ in range(n):
list.append(str(input())
list.sort()
ans=""
for i in list:
ans+=i
print(ans) |
s386717686 | p04044 | u172780602 | 1586473234 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 148 | l,n=map(int,input().split())
list=[]
for _ in range(n):
list.append(input())
list.sort()
ans=""
for i in len(list):
ans+=list[i]
print(ans) |
s887007339 | p04044 | u172780602 | 1586473195 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 137 | l,n=map(int,input().split())
list=[]
for _ in range(n):
list.append(input())
list.sort()
ans=""
for i in list:
ans+=i
print(ans) |
s591545924 | p04044 | u172780602 | 1586473065 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 142 | l,n=map(int,input().split())
list=[]
for _ in range(n):
list.append(str(input()))
list.sort()
ans=""
for i in list:
ans+=i
print(ans) |
s306298670 | p04044 | u172780602 | 1586472802 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 125 | l,n=map(int,input().split())
D=[]
for _ in range(n):
D.append(str(input()))
D.sort()
m=""
for i in S:
m+=i
print(m) |
s168410496 | p04044 | u172780602 | 1586472640 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 141 | l,n=map(int,input().split())
D=[]
for _ in range(n):
D.append(str(input()))
S.sort(D,reverse=False)
m=" "
for i in S:
m+=i
print(m) |
s641331972 | p04044 | u172780602 | 1586472438 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 143 | l,n=map(int,input().split())
D=[]
for _ in range(n):
D.append(str(input()))
S=sorted(D,reverse=False)
m=" "
for i in S:
m+=i
print(m) |
s807266290 | p04044 | u806084713 | 1586462044 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 124 | i = list(map(int, input().split()))
s = [input() for i in range(i[1])]
s.sort()
newlist = sorted(s)
print(''.join(newlist)) |
s132926547 | p04044 | u806084713 | 1586461763 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 124 | i = list(map(int, input().split()))
s = [input() for i in range(i[1])]
s.sort()
newlist = sorted(s)
print(''.join(newlist)) |
s392386448 | p04044 | u583507988 | 1586457218 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 91 | N, L = map(int, input().split())
S = [input().rstrip() for i in range(L)]
print(sorted(S)) |
s514309523 | p04044 | u583507988 | 1586406815 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 130 | N, L = map(int, input().split())
S = [input().split() for i in range(L)]
P = []
s = sorted(S)
for q in s:
P.append(q)
print(P) |
s282434848 | p04044 | u583507988 | 1586405652 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 125 | N, L = map(int, input().split())
P = [input().split() for i in range(L)]
p = sorted(P)
ppp = "".join(map(str, p))
print(ppp) |
s188160906 | p04044 | u583507988 | 1586375744 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 113 | N, L = map(int, input().split())
P = [input().split() for i in range(L)]
p = sorted(P)
print(p[0] + p[1] + p[2]) |
s148622053 | p04044 | u920604133 | 1586121085 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 123 | N, M = map(int, input().split())
word = []
for i in range(M):
word.append(input())
word.sort()
print(''.join(word)) |
s804472722 | p04044 | u086172144 | 1585950258 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | n,l=map(n,l=map(int,input().split())
s=[]
for i in range(n):
s.append(input())
print("".join(sorted(s))) |
s273496161 | p04044 | u870297120 | 1585915502 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 126 | n, l = map(int, input().split(' '))
hoges = []
for _ in range(n):
hoges.append(input())
a = hoges.sort()
print(''.join(a)) |
s622171149 | p04044 | u379424722 | 1585718945 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 130 | N,L = map(int,input().split())
M = []
for i in range(N):
M.append(input())
M = sorted(input().split())
print(''.join(L)) |
s878495215 | p04044 | u535659144 | 1585692299 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 114 | lis=input().split()
string_list=[input() for i in range(int(lis[0]))]
stringlist.sort()
print(''.join(stringlist)) |
s424789619 | p04044 | u870518235 | 1585623045 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 138 | N, L = map(int, input().split())
S = [input() for i in range(L)]
SS = sorted(S)
ans = ""
for i in range(L):
ans += SS[i]
print(ans) |
s194717156 | p04044 | u857547702 | 1585545357 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38256 | 96 | N,L=map(int,input().split())
l=[input() for i in range(N)]
a=sorted(l)
b=a[0]+a[1]+a[2]
print(b) |
s578003758 | p04044 | u857547702 | 1585545318 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | N,L=map(int,input().split())
l=[input() for i in range(N)]
a=sorted(l)
b=a[0]+a[1]+a[2]
print(b) |
s065377368 | p04044 | u857547702 | 1585545201 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | N,L=map(int,input().split())
l=[input() for i in range(N)]
a=sorted(l)
print(a[0]+a[1]+a[2]) |
s106165419 | p04044 | u857547702 | 1585545100 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | N,L=map(int,input().split())
l=[input() for i in range(N)]
a=sorted(l)
print(a[0]+a[1]+a[2]) |
s662988861 | p04044 | u440129511 | 1585512988 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 84 | n,l=map(int,input().split())
s=[input() for i in range(n)]
s.sort()
print(*a,sep="") |
s449365534 | p04044 | u136843617 | 1585254484 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 95 | l, n = map(int, input().split())
s = sorted([str(input()) for _ in range(n)])
print("".join(s)) |
s972193852 | p04044 | u756784272 | 1584986568 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 202 | N = input().split()
list = []
for i in range(1,int(N[0]),1):
list.append(input())
list.sort(reverse = False)
ans = ""
for i in range(1,N+1,1):
ans = ans + list[0]
list.pop(0)
print(ans)
|
s955844997 | p04044 | u756784272 | 1584986277 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 214 | N = int(input())
L_num = int(input())
list = []
for i in range(1,N+1,1):
list.append(input())
list.sort(reverse = False)
ans = ""
for i in range(1,N+1,1):
ans = ans + list[0]
list.pop(0)
print(ans)
|
s347858584 | p04044 | u305388378 | 1584935331 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 324 | n, l = map(int, input().split())
strs = [input().split() for i in range(n)]
concat = strs[0]
del strs[0]
for str in strs:
for i in range(len(concat) / l):
if concat[i*l] < str:
concat = concat[:i*l] + str + concat[i*l:]
break
if i == len(concat) / l -1:
concat = concat + str
print(concat) |
s911444275 | p04044 | u910295650 | 1584672598 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 128 | N,L=map(int,input().split())
S=[]
for i in range(N):
s=input()
S.append(s)
print(sorted(S)[0]+sorted(S)[1]+sorted(S)[2]) |
s490789517 | p04044 | u549494450 | 1584648424 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 118 | a = input()
b = []
for i in range(int(a[0])):
b.append(input().sort())
b.sort()
for j in b:
print(j, end = "") |
s010948169 | p04044 | u016323272 | 1584499345 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 131 | #ABC042.B
N,L = map(int,input().split())
s = [input()for_in range(N)]
s.sort()
ans=''
for i in range(N):
ans += s[i]
print(ans) |
s119982213 | p04044 | u016323272 | 1584499122 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | #ABC042.B
N,L = map(int,input().split())
s = [input() for_in range(n)]
s.sort()
ans=''
for i in range(N):
ans =ans+ s[i]
print(ans) |
s619519824 | p04044 | u016323272 | 1584498842 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 131 | #ABC042.B
N,L = map(int,input().split())
s = [input()for_in range(n)]
s.sort()
ans=''
for i in range(N):
ans += s[i]
print(ans) |
s060008518 | p04044 | u016323272 | 1584498611 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 131 | #ABC042.B
N,L = map(int,input().split())
s = [input()for_in range(n)]
s.sort()
ans=''
for i in range(s):
ans += s[i]
print(ans) |
s446846804 | p04044 | u777078967 | 1584320132 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 197 | n = input().rstirp().split()
n = [int(x) for x in n]
arg=[]
for i in range(n[0]):
data = input().rstrip()
arg.append(data)
sorted(arg)
for j in range(n[0]):
print(arg[j],end="")
print("\n")
|
s821140410 | p04044 | u777078967 | 1584320074 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 197 | n = input().rstirp().split()
n = [int(x) for x in n]
arg=[]
for i in range(n[0]):
data = input().rstrip()
arg.append(data)
sorted(data)
for j in range(n[0]):
print(arg[j],end="")
print("\n") |
s558898045 | p04044 | u538537141 | 1584317008 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 85 | n,l = map(int,input().split())
s = sort([input() for i in range(n)])
print(*s,sep="") |
s380530922 | p04044 | u465152652 | 1583976824 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | num = list(map(input().split()))
word = [input() for i in range(num[0])]
print(''.join(sorted(word))) |
s731221118 | p04044 | u465152652 | 1583976708 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | num = list(map(int,input().split()))
word = [input for i in range(n[0])]
print(''.join(sorted(num))) |
s228660804 | p04044 | u771538568 | 1583783859 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 140 | a,b=map(int,(input().split()))
li=[]
for i in range(a):
li.append(input())
li.sort
a=li[0]
for j in range(1,a):
a+=li[j]
print(a)
|
s431378570 | p04044 | u071361440 | 1583566835 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 76 | n=int(input())
text=[input() for i in range(n)]
print("".join(sorted(text))) |
s099842795 | p04044 | u071361440 | 1583566784 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 76 | n=int(input())
text=[input() for i in range(n)]
print("".join(sorted(text))) |
s559717211 | p04044 | u465152652 | 1583559320 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 102 | n = list(map(int,input().split()))
word = [input() for i in range(n[1])]
print(''.join(sorted(word)))
|
s790025618 | p04044 | u465152652 | 1583559285 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 114 | n = list(map(int,input().split()))
word = [input() for i in range(n[1])]
print(word)
print(''.join(sorted(word)))
|
s728371021 | p04044 | u620238824 | 1583474844 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | N,L = map(int, input().split())
S = list((input() for i in range(N))
S = sorted(S)
print(''.join(S)) |
s188496195 | p04044 | u606523772 | 1583451487 | Python | Python (3.4.3) | py | Runtime Error | 16 | 3060 | 128 | N = int(input())
L = int(input())
ans = {}
for i in range(N):
A = input()
ans[A]=1
ans = sorted(ans)
print("".join(ans)) |
s461705212 | p04044 | u000123984 | 1583279934 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 160 | n,l = map(int, input().split())
Li = []
for i in range(n):
li = list(input()).sort()
wrd = "".join(li)
Li.append(wrd)
else:
print("".join(Li.sort()))
|
s439416882 | p04044 | u968649733 | 1583253130 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 152 | L, N = list(map(int, input().split()))
S = [str(input()) for _ in range(N)]
#print(S)
S = sorted(S)
#print("sorted", S)
total = "".join(S)
print(total) |
s523397768 | p04044 | u968649733 | 1583252716 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 191 | L, N = list(map(int, input().split()))
S = [str(input()) for _ in range(N)]
#print(S)
S = sorted(S)
#print("sorted", S)
total = ''
for i in range(len(S)):
total += str(S[i])
print(total) |
s365355160 | p04044 | u968649733 | 1583252578 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 181 | L, N = list(map(int, input().split()))
S = [input() for _ in range(N)]
#print(S)
S = sorted(S)
#print("sorted", S)
total = ''
for i in range(len(S)):
total += S[i]
print(total) |
s052309127 | p04044 | u850087201 | 1583200820 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 137 | n = input().split()
N = int(n[0])
L = int(n[1])
a = []
for i in range(L):
b = input()
a.append(b)
A = sorted(a)
print(''.join(A)) |
s611336111 | p04044 | u850087201 | 1583199982 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 137 | n = input().split()
N = int(n[0])
L = int(n[1])
a = []
for i in range(L):
b = input()
a.append(b)
A = sorted(a)
print(''.join(A)) |
s529984789 | p04044 | u850087201 | 1583199835 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 137 | n = input().split()
N = int(n[0])
L = int(n[1])
a = []
for i in range(L):
b = input()
a.append(b)
A = sorted(a)
print(''.join(A)) |
s667194493 | p04044 | u923270446 | 1583189104 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3056 | 121 | n, l = map(int, input().split())
S = [int(input()) for i in range(n)]
sorted_list = sorted(S)
print(*sorted_list, sep="") |
s408245256 | p04044 | u363995337 | 1583114010 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3316 | 170 | N, L = map(int, input().split())
words = []
for i in range(N):
words.append(input())
words.sort()
for i in range(N-1):
print(words[i], end="")
print(words[i+1])
|
s220622906 | p04044 | u068584789 | 1582488531 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | n, l = map(int, input().split())
words = []
for i in range(n):
words.append(input())
print(''.join(words.sort())) |
s028031639 | p04044 | u066855390 | 1582433919 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 90 | n, l = map(int, input().split())
a = sorted([input() for i in range(n)])
print(*s, sep="") |
s832104278 | p04044 | u066855390 | 1582433851 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 88 | n, l = map(int, input().split())
a = sort([input() for i in range(n)])
print(*s, sep="") |
s452334986 | p04044 | u166419774 | 1582125873 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 128 | X, L = [int(input()) for i in range(2)]
li = sorted([input() for i in range(X)])
ans = ''
for i in li:
ans += i
print(ans) |
s788849267 | p04044 | u166419774 | 1582125839 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38384 | 128 | X, L = [int(input()) for i in range(2)]
li = sorted([input() for i in range(X)])
ans = ''
for i in li:
ans += i
print(ans) |
s788400064 | p04044 | u827202523 | 1581821125 | Python | PyPy3 (2.4.0) | py | Runtime Error | 174 | 38640 | 168 | def getlist():
return list(map(int, input().split()))
a,b = getList()
lis = []
for i in range(a):
lis.append(input().strip())
lis.sort()
print("".join(lis)) |
s633863231 | p04044 | u904995051 | 1581800615 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | n,l = map(int,input().split())
s = [input() for i in range(n)]
print(*stored(s),sep="")
|
s190252417 | p04044 | u904995051 | 1581800549 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 86 | n,l = map(int,input().split())
s = input() for i in range(n)
print(*stored(s),sep="")
|
s931194274 | p04044 | u904995051 | 1581800364 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 79 | n = input()
l = input()
s = input() for i in range(n)
print(*stored(s),sep="")
|
s425284455 | p04044 | u772649753 | 1581393260 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 109 | n,l = map(int,input().split())
words = [input() for i in range(n)]
words = words.sort()
print("".join(words)) |
s351233921 | p04044 | u670133596 | 1581310609 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 101 | N, L = map(int, input().split())
S = [input() for _ in range(L)]
ans = sorted(S)
print(''.join(ans)) |
s554412037 | p04044 | u670133596 | 1581310424 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 91 | N, L = map(int, input().split())
S = [input() for _ in range(L)]
print(''.join(sorted(S))) |
s076854112 | p04044 | u609814378 | 1581271914 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 124 | N, L = map(int, input().split())
S = []
for _ in range(H):
S.append(input())
S1 = sorted(S)
S2 ="".join(S1)
print(S2) |
s325969090 | p04044 | u445380615 | 1581037013 | Python | Python (3.4.3) | py | Runtime Error | 29 | 3316 | 496 | def hikaku(n1, n2):
for x, y in zip(n1, n2):
if ord(x) == ord(y):
continue
else:
if ord(x) < ord(y):
return False
return True
num, length = map(int, input().split())
wlist = []
for i in range(num):
wlist.append(input())
kumi = [(x, y) for x in range(num) for y in range(x, num) if x != y]
for x, y in kumi:
if hikaku(wlist[x], wlist[y]):
wlist[x], wlist[y] = wlist[y], wlist[x]
print(wlist[0] + wlist[1] + wlist[2])
|
s381146322 | p04044 | u901341592 | 1580852847 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 116 | num, size = map(int,input().split())
data =[]
for x in range(num):
data.apend(input())
print(data.sort().join()) |
s870241462 | p04044 | u871176343 | 1580851077 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | n, l = map(int, input().split())
strs=[]
for i in range(n):
strs.push(input())
"".join(sorted(strs))
|
s373388244 | p04044 | u422267382 | 1580840712 | Python | Python (3.4.3) | py | Runtime Error | 25 | 3064 | 389 | N,L=map(int,input().split())
S=[input() for n in range(N)]
for num in range(L):
ans1=S[num]
for num2 in range(L):
ans2=S[num2]
for i in range(L):
if ans1[i]>ans2[i]:
break
elif ans1[i]==ans2[i]:
continue
else :
S[num],S[num2]=S[num2],S[num]
break
print("".join(S)) |
s383922115 | p04044 | u422267382 | 1580840087 | Python | Python (3.4.3) | py | Runtime Error | 27 | 3064 | 367 | N,L=map(int,input().split())
S=[input() for n in range(N)]
for num in range(L):
ans1=S[num]
for num2 in range(L):
ans2=S[num2]
for i in range(L):
if ans1[i]>ans2[i]:
break
elif ans1[i]==ans2[i]:
continue
else :
S[num],S[num2]=S[num2],S[num]
print("".join(S)) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.