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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s296443712 | p04044 | u637413735 | 1570824815 | Python | Python (3.4.3) | py | Runtime Error | 51 | 5504 | 207 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import pdb
import sys
F = sys.stdin
N, L = int(F.readline().rstrip().split())
a = [F.readline() for x in range(N)]
a.sort()
answer = ''.join(a)
print(answer)
|
s112375439 | p04044 | u655612181 | 1570787252 | Python | PyPy3 (2.4.0) | py | Runtime Error | 187 | 40048 | 657 | # At Beginner Contest 042 B (200)
n, l = map(int, input().split())
S = []
for _ in range(n):
S.append(input())
out = []
min_ = float("inf")
min_idxs = list(range(len(S)))
pos = 0
while S:
new_min = []
for i in min_idxs:
s = S[i]
ch = ord(s[pos])
if ch < min_:
min_ = ord(s[pos])
new_min = [ i ]
elif ch == min_:
new_min.append(i)
if len(new_min) == 1:
out.append(S[new_min[0]])
del S[new_min[0]]
min_idxs = list(range(len(S)))
pos = 0
else:
pos += 1
min_idxs = new_min
min_ = float("inf")
r = "".join(out)
print(r)
|
s363950527 | p04044 | u966508131 | 1569619615 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 146 | N, L = input().split()
string_list = [input() for i in range(int(N))]
string_list.soted()
ans = ''
for i in string_list:
ans += i
print(ans)
|
s161725160 | p04044 | u966508131 | 1569618903 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 148 | N, L = input().split()
string_list = [input() for i in range(int(L))]
string_list.soted()
ans=''
for i in string_list:
ans += i
print(ans)
|
s623760398 | p04044 | u518987899 | 1569558522 | Python | PyPy3 (2.4.0) | py | Runtime Error | 173 | 38512 | 102 | N,L = map(int, input().strip().splip(' '))
print(''.join(sorted([input().strip() for _ in range(N)]))) |
s801727532 | p04044 | u385244248 | 1569482707 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 67 | N,L,*S = map(int,open(0).read().split())
S.sort()
print("".join(S)) |
s073892615 | p04044 | u764105813 | 1569467188 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 95 | N, L = map(int, input().split())
words = [ input() for _ in range(N) ]
''.joint(sorted(words)) |
s506898716 | p04044 | u740047492 | 1569358274 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 103 | n, l = map(int, input().split())
s = list([input() for i in ramge(n)])
s1 = s.sort()
print("".join(s1)) |
s876411829 | p04044 | u740047492 | 1569358246 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 97 | n, l = map(int, input().split())
s = [input() for i in ramge(n)]
s1 = s.sort()
print("".join(s1)) |
s190121072 | p04044 | u740047492 | 1569357762 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 74 | n, l = int(input())
s = [int(input()) for i in range(n) ]
print(sorted(s)) |
s017228020 | p04044 | u953753178 | 1569173612 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 116 | N = input()
L = input()
A = list(map(str, input().split()))
A.sort()
res = ''
for a in A:
res += a
print(res)
|
s629853021 | p04044 | u296518383 | 1569026991 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3188 | 77 | N,L=map(int,input())
S=[input() for _ in range(N)]
S.sort()
print("".join(S)) |
s594956847 | p04044 | u141786930 | 1568944629 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 110 | n, l = map(int, input().split())
s = list()
for _ in range(n):
s.append(input())
print(''.join(s.sort()))
|
s520122993 | p04044 | u141786930 | 1568944136 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 133 | n, l = map(int, input().split())
s = list()
for _ in range(n):
s.append(input())
s.sort()
print('{}{}{}'.format(s[0],s[1],s[2]))
|
s508978103 | p04044 | u396495667 | 1568907239 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 113 | n,l = map(int,input().split())
ss =[]
for i in range(n):
s = input()
ss.append(s)
ss.sort()
print(''.join(ss) |
s230038497 | p04044 | u156207148 | 1568828299 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 148 | n, l = map(int, input().split())
lists = []
for i in range(n):
list.apend(input())
lists.sort()
s = ''
for list in lists:
s += list
print(s) |
s195550497 | p04044 | u156207148 | 1568828212 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 141 | n, l = map(int, input().split())
lists = []
for i in n:
list.apend(input())
lists.sort()
s = ''
for list in lists:
s += list
print(s) |
s783254060 | p04044 | u597017430 | 1567942963 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 130 | N, L = map(int, input().split())
a = [0] * L
for i in range(N):
a[i] = input()
a.sort()
for i in range(N):
print(a[i], end='') |
s908860401 | p04044 | u041641933 | 1567883520 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 140 | N, L = map(int, input().split(" "))
words = []
for i in range(L):
word = input()
words.append(word)
words.sort()
print("".join(words)) |
s299421529 | p04044 | u474925961 | 1567796089 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 169 | import sys
if sys.platform =='ios':
sys.stdin=open('input_file.txt')
N,L=map(int,input().split())
list=soeted([input() for i in range(N)])
print(*list,sep="") |
s967639940 | p04044 | u332657092 | 1567770164 | Python | PyPy3 (2.4.0) | py | Runtime Error | 180 | 38384 | 110 | n, l = map(int, input().split())
string_list = sorted([input() for i in range(l)])
print("".join(string_list)) |
s003207875 | p04044 | u332657092 | 1567769984 | Python | PyPy3 (2.4.0) | py | Runtime Error | 183 | 38256 | 110 | n, l = map(int, input().split())
string_list = [input() for i in range(l)]
print("".join(sorted(string_list))) |
s555626725 | p04044 | u820052258 | 1567731616 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 159 | m = list(map(int,input().split()))
s = [list(map(str,input().split())) for i in range(m[0])]
a=''
s.sort()
for i in range(m[1]):
a=a+''.join(s[i])
print(a) |
s099266506 | p04044 | u728279667 | 1567100871 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 155 | import sequtils, strutils, algorithm
let
nl = stdin.readline.split.map(parseInt)
ss = newSeqWith(nl[0], stdin.readline).sorted(cmp)
echo ss.join("")
|
s121408050 | p04044 | u455533363 | 1567026220 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 110 | n,l = map(int,input().split())
a=[]
for i in range(n):
a.append(input())
a=sorted(a)
print("".joined(a)) |
s306351583 | p04044 | u164261323 | 1566842255 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | N,L = map(int,input().split())
S = sorted([input() for i in range(n)])
print(*s,sep = "")
|
s850295850 | p04044 | u259334183 | 1566748468 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 127 | n,l=map(int,input().split())
a=[]
b=''
for k in range(n):
a.append(input())
a.sort()
for i in range(l):
b+=a[i]
print(b) |
s314940355 | p04044 | u538568153 | 1566605536 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 171 |
def resolve():
num, long = list(input().split())
string = sorted([input for i in range(num)])
print(*string, sep="")
if __name__ == '__main__':
resolve() |
s500638351 | p04044 | u784341473 | 1566528774 | Python | Python (3.4.3) | py | Runtime Error | 24 | 2940 | 69 | n=int(input().split()[0])
print(join(sorted([input()for _ in[0]*n]))) |
s646814749 | p04044 | u201082459 | 1566524007 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 111 | n,l = map(int,input().split())
x = [str(input()) for _ range(n)]
x.sort()
a = ' '
for i in x:
a += i
print(a) |
s742742644 | p04044 | u243572357 | 1566394553 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 102 | n, l = map(int, input().split())
lst = [sorted(input()) for _ in range(n)]
print(''.join(sorted(lst))) |
s657332826 | p04044 | u626337957 | 1566353501 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 101 | N, L = map(int, input())
strings = [input() for _ in range(N)]
strings.sort()
print(''.join(strings)) |
s981155682 | p04044 | u131625544 | 1566271802 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 81 | N, L = input().split()
S = [input() for i in range(N)]
print(*sorted(S), sep='') |
s813082107 | p04044 | u026678302 | 1566270185 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 117 | N,L = map(int,input().split())
for n in range(int(N)):
data.append(input())
result=sorted(data)
result |
s601276772 | p04044 | u026678302 | 1566270076 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 107 | N,L = map(int,input().split())
for n in range(int(N)):
data.append(input())
result=sorted(data) |
s796542491 | p04044 | u026678302 | 1566269067 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 68 | test=sorted(list(input().split()))
print(test[0]+test[1]+test[2]) |
s600668142 | p04044 | u934529721 | 1566248207 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 133 | N, L = map(int, input().split())
a = [input() for i in range(L)]
a.sort()
c = ''
for x in a:
c = c+x
print(str(c)) |
s030517180 | p04044 | u934529721 | 1566248079 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 123 | N, L = map(int, input().split())
a = [input() for i in range(L)]
a.sort()
c = ''
for x in a:
c = c+x
print(c) |
s771208963 | p04044 | u957872856 | 1566082238 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 89 | N, L = map(int,input().split())
S = sorted([input() for i in range(n)])
print(*S, sep="") |
s317019727 | p04044 | u740767776 | 1566053390 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 104 | n,l = map(int,input().split())
s = []
for i in range(l):
s.append(input())
s.sort()
print(*s,sep="") |
s909950909 | p04044 | u037221289 | 1565987181 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 106 | N, L = map(int,input().split(' '))
S = []
for i in range(N):
S.append(i)
X = sorted(S)
print(''.join(X)) |
s318970133 | p04044 | u033606236 | 1565977064 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 201 | strings,num = map(int,input().split())
result = ""
str_array = []
for i in range (num):
str_array.append(input())
str_array.sort()
for i in range (num):
result += str_array[i]
print(result) |
s892709812 | p04044 | u033606236 | 1565976428 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 205 | strings,num = map(int,input().split())
result = ""
str_array = []
for i in range (strings):
str_array.append(input())
str_array.sort()
for i in range (num):
result += str_array[i]
print(result) |
s428290006 | p04044 | u181195295 | 1565975250 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 129 | N,L = map(str,input().split())
words = list()
for i in range(N):
words.append(input())
words.sort()
print(*words,sep ="")
|
s940335354 | p04044 | u181195295 | 1565975219 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | N,L = map(str,input().split())
words = list()
for i in range(N):
words.append(input())
words = words.sort()
print(*words,sep ="")
|
s197556437 | p04044 | u181195295 | 1565975161 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 129 | N,L = map(str,input().split())
words = list()
for i in range(N):
words.append(input())
words.sort()
print(*words,seq ="")
|
s942921695 | p04044 | u181195295 | 1565975099 | Python | Python (3.4.3) | py | Runtime Error | 20 | 2940 | 136 | N,L = map(str,input().split())
words = list()
for i in range(N):
words.append(input())
words = words.sort()
print(*words,seq ="") |
s949171788 | p04044 | u200887663 | 1565922525 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 135 | l,n=map(int,input().split())
li=[input() for i in range(n)]
ans=sorted(li)
"""
for st in li :
s += st
print(s)
"""
print(*ans,sep="") |
s979510961 | p04044 | u200887663 | 1565922296 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 133 | l,n=map(int,input().split())
li=[input() for i in range(n)]
ans=sorted(li)
"""
for st in li :
s += st
print(s)
"""
print(*s,sep="") |
s979401486 | p04044 | u200887663 | 1565921840 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 130 | l,n=map(int,input().split())
li=[input() for i in range(n)]
li.sort()
"""
for st in li :
s += st
print(s)
"""
print(*li,sep="") |
s995493578 | p04044 | u200887663 | 1565921592 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 111 | l,n=map(int,input().split())
li=[input() for i in range(n)]
s=""
li.sort()
for st in li :
s += st
print(s)
|
s538573020 | p04044 | u256464928 | 1565883530 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | n,l = map(int,input().split())
s = sorted[input() for _ in range(n)]
for i in range(n):
print(*s,sep="") |
s010624033 | p04044 | u906337264 | 1565786160 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 93 | N, L = map(int, input().split())
S = [input() for i in range(L)]
print(*(sorted(S)), sep='')
|
s682844645 | p04044 | u906337264 | 1565785989 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 82 | N, L = map(int, input().split())
S = [input() for i in range(L)]
print(*S, sep='') |
s521483909 | p04044 | u959759457 | 1565785696 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 167 | N,L=map(int,input(split()))
raw=[]
for i in range(N):
raw.append(input())
sortedraw=raw.sort()
ans=''
for j in range(N):
ans+=sortedraw[j]
print(ans)
|
s024133579 | p04044 | u465246274 | 1565733053 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 151 | n, l = map(int, input().split())
s_list = [input() for _ in range(n)]
s_list = sorted(s_list)
print('{}{}{}'.format(s_list[0], s_list[1], s_list[2])) |
s496153567 | p04044 | u921027074 | 1565633598 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 85 | n,l =map(int,input().split())
s=sorted([input(),for i in range(n)])
print(*s,sep='')
|
s496399990 | p04044 | u908763441 | 1565620407 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | N, L = map(int, input().split())
S = []
for i in rangeN):
S.append(input())
print(('').join(sorted(S)))
|
s989547206 | p04044 | u491762407 | 1565580818 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 91 | N,L = map(int,input().split())
S = sorted(list(input() for i in range(N)))
print(*s,sep="") |
s921717273 | p04044 | u497326082 | 1565569760 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 85 | vn,l=map(int,input().split())
s=sorted([input() for i in range(n)])
print("".join(s)) |
s493262085 | p04044 | u921027074 | 1565565227 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 83 | n,l=map(int,input().split())
s=sorted([input() for i in range(n)])
print(*n,sep="") |
s021665079 | p04044 | u820461302 | 1565560206 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 288 | # -*- coding: utf-8 -*-
# スペース区切りの整数の入力
N, L = map(int, input().split())
# 文字列用のリスト
s = []
# L回分のインプットを受け入れる
for i in range(L):
s.append(input())
# リストの昇順の並び替え
s.sort()
# 出力
print(''.join(s)) |
s124928884 | p04044 | u158778550 | 1565543251 | Python | Python (3.4.3) | py | Runtime Error | 22 | 2940 | 95 | n, l = map(int, input().split())
List = sorted([input() for i in range(n])
print("".join(List)) |
s100567749 | p04044 | u901447859 | 1565403920 | Python | Python (3.4.3) | py | Runtime Error | 2407 | 757272 | 198 | import itertools
N,L,*s = open(0).read().split()
x = list(map(lambda x:"".join(x), itertools.permutations(s, int(N))))
min_str = x[0]
for s in x[1:]:
if s < min_str:
min_str = s
print(min_str) |
s234270620 | p04044 | u280853184 | 1565275298 | Python | Python (2.7.6) | py | Runtime Error | 17 | 2948 | 132 | N = input()
a = []
s = ""
for i in range(N):
b = raw_input()
a.append(b)
a.sort()
for i in range(N):
s += a[i]
print s |
s645860068 | p04044 | u224488911 | 1565204809 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 86 | n,l = map(int,input().split())
s = sorted([input() for i in range(n)])
print(*s,sep) |
s215301696 | p04044 | u800729321 | 1565188704 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 174 | i = input().split()
s, t = map(int, i)
str_list = []
for i in range(3):
string = input()
str_list.append(string)
str_list.sort()
ans = ''.join(str_list)
print(ans) |
s888865308 | p04044 | u278463847 | 1565159148 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 92 | n, l = map(int, input().split())
ss = [input() for _ in range(l)]
print(''.join(sorted(ss))) |
s702230774 | p04044 | u999669171 | 1565054351 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 263 | input_N_L = input()
#print( input_N_L )
N, L = map( int, input_N_L.split() )
#print( N )
#print( L )
str_set = []
for i in range( L ):
str_set.append( input() )
#print( array )
sorted_str = ""
for s in sorted( str_set ):
sorted_str += s
print( sorted_str ) |
s286864699 | p04044 | u999669171 | 1565054170 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 202 | input_N_L = input()
N, L = map( int, input_N_L.split() )
str_set = set()
for i in range( L ):
str_set.add( input() )
sorted_str = ""
for s in sorted( str_set ):
sorted_str += s
print( sorted_str ) |
s672596255 | p04044 | u999669171 | 1565054119 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 263 | input_N_L = input()
#print( input_N_L )
N, L = map( int, input_N_L.split() )
#print( N )
#print( L )
str_set = set()
for i in range( L ):
str_set.add( input() )
#print( array )
sorted_str = ""
for s in sorted( str_set ):
sorted_str += s
print( sorted_str ) |
s567305205 | p04044 | u999669171 | 1565052841 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | array_temp = input.split()
N = array[0]
L = array[1]
strs = array[2:]
strs.sort()
print(strs) |
s306527497 | p04044 | u268291479 | 1564977308 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 91 | N, L = map(int, input().split())
P = [input() for i in range(L)]
P.sort()
print("".join(P)) |
s520697237 | p04044 | u268291479 | 1564977054 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3064 | 427 |
alpha = [chr(ord('a') + i) for i in range(26)]
# print(alpha)
N, L = map(int, input().split())
P = [input().split() for i in range(L)]
scores = []
for word in P:
score = 0
for t in word[0]:
score += alpha.index(t)
scores.append({"word": word[0], "score": score})
sorted_dict_list = sorted(scores, key=lambda x:x['score'])
out_str = ""
for d in sorted_dict_list:
out_str += d["word"]
print(out_str) |
s589962320 | p04044 | u268291479 | 1564976578 | Python | Python (3.4.3) | py | Runtime Error | 22 | 3064 | 426 |
alpha = [chr(ord('a') + i) for i in range(26)]
# print(alpha)
N, L = map(int, input().split())
P = [input().split() for i in range(L)]
scores = []
for word in P:
score = 0
for t in word[0]:
score += alpha.index(t)
scores.append({"word": word[0], "score": score})
sorted_dict_list = sorted(scores, key=lambda x:x['score'])
out_str = ""
for d in sorted_dict_list:
out_str += d["word"]
print(out_str) |
s719650095 | p04044 | u539005641 | 1564947977 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 57 | _=input()
s=input().split().sort()
print(reduce(+,s))
|
s139234246 | p04044 | u457554982 | 1564931743 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 109 | (n,l)=map(int, input().split())
list1=input().split()
list1.sort()
for i in range(n):
print(list1[i],end="") |
s126246916 | p04044 | u457554982 | 1564929862 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 115 | (n,l)=map(int, input().split())
list1=list(input().split())
list1.sort()
for i in range(n):
print(list1[i],end="") |
s757007038 | p04044 | u457554982 | 1564929821 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 115 | (n,l)=map(int, input().split())
list1=list(input().split())
list1.sort()
for i in range(n):
print(list1[i],end="") |
s116771119 | p04044 | u457554982 | 1564929626 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | (n,l)=input().split()
list1=list(input().split())
list1.sort()
for i in range(n)
print(list1[i]+"") |
s781181793 | p04044 | u538956308 | 1564177767 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | N,L = map(int,input().split())
for i in range(N):
S.append(input())
S.sort()
ans="".join(S)
print(ans)
|
s307179419 | p04044 | u538956308 | 1564177070 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 106 | N,L = map(int,input().split())
S = []
for i in range(N):
S.append(list(input()))
S.sort()
print(sum(S)) |
s554854850 | p04044 | u031146664 | 1564155378 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | n, l = map(int, input().split())
S = [input() for _ in range(3)]
S.sort()
print("".join(S)) |
s846329197 | p04044 | u271279914 | 1564106341 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 146 | str = input().split()
v=""
sa=list()
for i in range(int(str[1])):
sa.append(input()[:int(str[0])])
sa.sort()
for i in sa:
v=v+i
print(v)
|
s144702724 | p04044 | u271279914 | 1564106264 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 146 | str = input().split()
v=""
sa=list()
for i in range(int(str[1])):
sa.append(input()[:int(str[0])])
sa.sort()
for i in sa:
v=v+i
print(v)
|
s319464579 | p04044 | u271279914 | 1564106087 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 138 | str = input().split()
v=""
sa=list()
for i in range(int(str[1])):
sa.append(input().strip())
sa.sort()
for i in sa:
v=v+i
print(v) |
s330927957 | p04044 | u324549724 | 1564105311 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 122 | l, n = map(int, input().split())
a = [input() for _ in range(n)]
a = sorted(a)
ans = ""
for s in a:
ans += s
print(ans)
|
s087670385 | p04044 | u302292660 | 1564096400 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 97 | n,l = map(int,input().split())
mylist=sotrted([input() for i in range(n)])
print("".join(mylist)) |
s281268052 | p04044 | u369338402 | 1563947730 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 133 | n,l=map(int,input().split())
s=[0]*n
res=''
for i in range(n):
s.append(input())
s.sort()
for k in range(n):
res+=s[k]
print(res) |
s639171423 | p04044 | u408620326 | 1563937913 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | N,L=[int(x) for x i input().split()]
s=[]
for _ in range(N):
s.append(input())
s.sort()
print("".join(s)) |
s326675061 | p04044 | u391328897 | 1563840658 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 154 | n, l = map(int, input().split())
S = list()
result = ''
while l > 0:
S.append(input())
l -= 1
for i in sorted(S):
result += i
print(result) |
s356263444 | p04044 | u148781101 | 1563757834 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3316 | 114 | n, l = map(int, input().split())
list = []
for i in range(n):
list[i] = input()
list.sort()
print("".join(list)) |
s950066370 | p04044 | u129750996 | 1563506248 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 111 | N, L = map(int, input().split())
A = map(int, list(input() for _ in range(N)))
B = sorted(A)
print(''.join(B)) |
s381573395 | p04044 | u087129172 | 1563431078 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 197 | # -*- coding: utf-8 -*-
number, length = map(int, input())
lst = []
for n in range(number):
input = input()
lst.append(input)
lst.sort()
moji = ""
for n in lst:
moji += n
print(moji) |
s982343278 | p04044 | u245414044 | 1563153142 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 88 | n, l = map(int, input(),split())
s = sorted([input for i in range(n)])
print("".join(s)) |
s991043608 | p04044 | u405256066 | 1563151015 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 167 | from sys import stdin
N,L = [int(x) for x in stdin.readline().rstrip().split()]
data = []
for _ in range(N):
data.append(int(input()))
print("".join(sorted(data))) |
s308201329 | p04044 | u239342230 | 1562910469 | Python | Python (3.4.3) | py | Runtime Error | 1001 | 374584 | 208 | N,L=map(int,input().split())
S=[input() for _ in range(N)]
arr=[]
for i in range(N):
for j in range(N):
for k in range(N):
if i!=j and j!=k and i!=k:
arr.append(S[i]+S[j]+S[k])
print(sorted(arr)[0]) |
s985974553 | p04044 | u239342230 | 1562910322 | Python | Python (3.4.3) | py | Runtime Error | 978 | 378432 | 199 | N,L=map(int,input().split())
S=[input() for _ in range(N)]
arr=[]
for i in range(N):
for j in range(N):
for k in range(N):
if i!=j and j!=k:
arr.append(S[i]+S[j]+S[k])
print(sorted(arr)[0]) |
s130260645 | p04044 | u888512581 | 1562384319 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 189 | n, l = (int(x) for x in input().split())
s_list = []
s = ''
for i in range(n):
s_list.append(input())
for i in range(l):
s += s_list.pop(s_list.index(min(x for x in s_list)))
print(s) |
s671335684 | p04044 | u759412327 | 1562124182 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 92 | a = list(map(int,input().split()))
b = [input() for i in range(a[1])]
c = sorted(b)
print(c) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.