s_id
string
p_id
string
u_id
string
date
string
language
string
original_language
string
filename_ext
string
status
string
cpu_time
string
memory
string
code_size
string
code
string
error
string
stdout
string
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)
Traceback (most recent call last): File "/tmp/tmpsnq3vtbo/tmpbw1z0vai.py", line 7, in <module> N, L = int(F.readline().rstrip().split()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'
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)
Traceback (most recent call last): File "/tmp/tmp8rxdnwxz/tmp3zoqjdqz.py", line 2, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpzd5ktm0_/tmpy4aa9qls.py", line 1, in <module> N, L = input().split() ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpqdd4i014/tmp4npal3uj.py", line 1, in <module> N, L = input().split() ^^^^^^^ EOFError: EOF when reading a line
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)])))
Traceback (most recent call last): File "/tmp/tmphsnqa_ak/tmp4rhr6egp.py", line 1, in <module> N,L = map(int, input().strip().splip(' ')) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmp3ygonwq2/tmpch_0cr71.py", line 1, in <module> N,L,*S = map(int,open(0).read().split()) ^^^^^^ ValueError: not enough values to unpack (expected at least 2, got 0)
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))
Traceback (most recent call last): File "/tmp/tmp8qotvenb/tmpotnnb7sq.py", line 1, in <module> N, L = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmprkgx72qs/tmpci2g45gz.py", line 1, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmphb4dm1el/tmp7h0tqpvr.py", line 1, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmp2l6ke9eg/tmpwomj3swi.py", line 1, in <module> n, l = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpkoitakq3/tmp3ttx_x1t.py", line 1, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmp_187ymkw/tmpfxnk2a1e.py", line 1, in <module> N,L=map(int,input()) ^^^^^^^ EOFError: EOF when reading a line
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()))
Traceback (most recent call last): File "/tmp/tmpoud_kh1d/tmp2wp4tj_8.py", line 1, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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]))
Traceback (most recent call last): File "/tmp/tmptycmb37t/tmpbhrtzl2f.py", line 1, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
File "/tmp/tmpu73k06qv/tmp4z1efonp.py", line 7 print(''.join(ss) ^ SyntaxError: '(' was never closed
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)
Traceback (most recent call last): File "/tmp/tmpc9de0mkm/tmp_g8sac6n.py", line 1, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpwcekjjtw/tmpd5ntdle9.py", line 1, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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='')
Traceback (most recent call last): File "/tmp/tmp43gm456k/tmp6twtota3.py", line 1, in <module> N, L = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmp56464tqz/tmpa23u9bi7.py", line 1, in <module> N, L = map(int, input().split(" ")) ^^^^^^^ EOFError: EOF when reading a line
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="")
Traceback (most recent call last): File "/tmp/tmpci_n9x9m/tmpnv1o0qgz.py", line 6, in <module> N,L=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmpn7r_k1_u/tmp9tvfbq_k.py", line 1, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)))
Traceback (most recent call last): File "/tmp/tmpsd42pltg/tmp7jtxc5q0.py", line 1, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp0tz9bgks/tmpm87_4bm1.py", line 1, in <module> m = list(map(int,input().split())) ^^^^^^^ EOFError: EOF when reading a line
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("")
File "/tmp/tmpoiq1m1sx/tmp5v2x89_p.py", line 4 nl = stdin.readline.split.map(parseInt) IndentationError: unexpected indent
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))
Traceback (most recent call last): File "/tmp/tmp9itxu8bq/tmpqdy9_rfm.py", line 1, in <module> n,l = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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 = "")
Traceback (most recent call last): File "/tmp/tmpda0fnd51/tmpv8mqk3nk.py", line 1, in <module> N,L = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpx5zmeqxj/tmpmjoz6q21.py", line 1, in <module> n,l=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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()
Traceback (most recent call last): File "/tmp/tmpp032p7zs/tmposyu1y1r.py", line 8, in <module> resolve() File "/tmp/tmpp032p7zs/tmposyu1y1r.py", line 3, in resolve num, long = list(input().split()) ^^^^^^^ EOFError: EOF when reading a line
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])))
Traceback (most recent call last): File "/tmp/tmpqwu_g9v0/tmpav859stw.py", line 1, in <module> n=int(input().split()[0]) ^^^^^^^ EOFError: EOF when reading a line
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)
File "/tmp/tmp2okjy0ch/tmpznzxau5a.py", line 2 x = [str(input()) for _ range(n)] ^^^^^ SyntaxError: invalid syntax
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)))
Traceback (most recent call last): File "/tmp/tmpi9dbs35z/tmpg8ntt27v.py", line 1, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmp7d491ufc/tmpbtho0dhr.py", line 1, in <module> N, L = map(int, input()) ^^^^^^^ EOFError: EOF when reading a line
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='')
Traceback (most recent call last): File "/tmp/tmpe8shtzp9/tmpr91fjt7u.py", line 1, in <module> N, L = input().split() ^^^^^^^ EOFError: EOF when reading a line
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
Traceback (most recent call last): File "/tmp/tmpc_xa7c8p/tmps58g5c98.py", line 1, in <module> N,L = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp3xq2n2lr/tmpzgducoxp.py", line 1, in <module> N,L = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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])
Traceback (most recent call last): File "/tmp/tmpm9j3leuo/tmp5c70mics.py", line 1, in <module> test=sorted(list(input().split())) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmp35sisywy/tmpw_v9lhwl.py", line 1, in <module> N, L = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpkv317zqq/tmp0u2esdgr.py", line 1, in <module> N, L = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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="")
Traceback (most recent call last): File "/tmp/tmpaur_m5oh/tmpl0rcbgb0.py", line 1, in <module> N, L = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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="")
Traceback (most recent call last): File "/tmp/tmpqf_g6loi/tmplaq05gts.py", line 1, in <module> n,l = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmp64p5oo_d/tmpxgwjh8g4.py", line 1, in <module> N, L = map(int,input().split(' ')) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp3fae305b/tmp7m1j3l7v.py", line 1, in <module> strings,num = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpcjnxqv1w/tmp1kxhstq4.py", line 1, in <module> strings,num = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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 ="")
Traceback (most recent call last): File "/tmp/tmp48h3rum0/tmppd51u1rh.py", line 1, in <module> N,L = map(str,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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 ="")
Traceback (most recent call last): File "/tmp/tmpbvei8z8u/tmpz5o2yjqe.py", line 1, in <module> N,L = map(str,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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 ="")
Traceback (most recent call last): File "/tmp/tmpc8mxokdk/tmpgaea746z.py", line 1, in <module> N,L = map(str,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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 ="")
Traceback (most recent call last): File "/tmp/tmpjpgqsyrb/tmp9wvnrnf2.py", line 1, in <module> N,L = map(str,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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="")
Traceback (most recent call last): File "/tmp/tmpd3h65ocx/tmpl9yprwsp.py", line 1, in <module> l,n=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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="")
Traceback (most recent call last): File "/tmp/tmpgopd3_gi/tmpvwz92czg.py", line 1, in <module> l,n=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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="")
Traceback (most recent call last): File "/tmp/tmpjoygryhx/tmp8vgo0h5r.py", line 1, in <module> l,n=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpz0l86s81/tmp7qdy0pq7.py", line 1, in <module> l,n=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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="")
File "/tmp/tmp58sxhu2z/tmp28q35dlz.py", line 2 s = sorted[input() for _ in range(n)] ^^^ SyntaxError: invalid syntax
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='')
Traceback (most recent call last): File "/tmp/tmp35sx4j5m/tmpk0bhw3q5.py", line 1, in <module> N, L = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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='')
Traceback (most recent call last): File "/tmp/tmp_i8j9wb7/tmp0wa37ebo.py", line 1, in <module> N, L = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpvb6nl62_/tmpsbsp48fo.py", line 1, in <module> N,L=map(int,input(split())) ^^^^^ NameError: name 'split' is not defined
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]))
Traceback (most recent call last): File "/tmp/tmp6pa3ube1/tmp6h0fkimb.py", line 1, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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='')
File "/tmp/tmpikw33pkz/tmp_68nz0fz.py", line 2 s=sorted([input(),for i in range(n)]) ^^^^^^^^ SyntaxError: did you forget parentheses around the comprehension target?
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)))
File "/tmp/tmptf3vu3dl/tmp3575zet9.py", line 3 for i in rangeN): ^ SyntaxError: unmatched ')'
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="")
Traceback (most recent call last): File "/tmp/tmp3x9h3lww/tmpfopn306m.py", line 1, in <module> N,L = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmpowmadxwc/tmpa4mud9i8.py", line 1, in <module> vn,l=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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="")
Traceback (most recent call last): File "/tmp/tmpx_0j9pso/tmp20djjepa.py", line 1, in <module> n,l=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmp_mun8u8h/tmpxx3xfrl9.py", line 3, in <module> N, L = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
File "/tmp/tmp6hg96k1c/tmp2z_nozne.py", line 2 List = sorted([input() for i in range(n]) ^ SyntaxError: closing parenthesis ']' does not match opening parenthesis '('
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)
Traceback (most recent call last): File "/tmp/tmphitrhjrm/tmpjvlnxllf.py", line 2, in <module> N,L,*s = open(0).read().split() ^^^^^^ ValueError: not enough values to unpack (expected at least 2, got 0)
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
File "/tmp/tmpv1pzs8h7/tmpaiqf4lrv.py", line 10 print s ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
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)
Traceback (most recent call last): File "/tmp/tmpy1d1uguq/tmpt39774ku.py", line 1, in <module> n,l = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpesmx0ar9/tmpst5ul0cv.py", line 1, in <module> i = input().split() ^^^^^^^ EOFError: EOF when reading a line
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)))
Traceback (most recent call last): File "/tmp/tmp1ff0zmkr/tmpvy8g4r44.py", line 1, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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 )
Traceback (most recent call last): File "/tmp/tmpvz_q2733/tmpvo90fogx.py", line 1, in <module> input_N_L = input() ^^^^^^^ EOFError: EOF when reading a line
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 )
Traceback (most recent call last): File "/tmp/tmp2w7212n2/tmplarfy2wb.py", line 1, in <module> input_N_L = input() ^^^^^^^ EOFError: EOF when reading a line
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 )
Traceback (most recent call last): File "/tmp/tmpuqxu_hky/tmpda5bd0tg.py", line 1, in <module> input_N_L = input() ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpvl59f9px/tmpba5klecr.py", line 1, in <module> array_temp = input.split() ^^^^^^^^^^^ AttributeError: 'builtin_function_or_method' object has no attribute 'split'
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))
Traceback (most recent call last): File "/tmp/tmpyo0yu8js/tmpxrm_rb2t.py", line 1, in <module> N, L = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp8_88i73j/tmpr4i81mlc.py", line 5, in <module> N, L = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpgfedd4fl/tmpunf22d5_.py", line 4, in <module> N, L = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s719650095
p04044
u539005641
1564947977
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
_=input() s=input().split().sort() print(reduce(+,s))
File "/tmp/tmpgmgynn5e/tmpxf0x4kjs.py", line 3 print(reduce(+,s)) ^ SyntaxError: invalid syntax
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="")
Traceback (most recent call last): File "/tmp/tmpwsjga7vm/tmpzu0a029m.py", line 1, in <module> (n,l)=map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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="")
Traceback (most recent call last): File "/tmp/tmpy508k2yn/tmppr6yk6od.py", line 1, in <module> (n,l)=map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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="")
Traceback (most recent call last): File "/tmp/tmprvs5oy9n/tmpju3pbsei.py", line 1, in <module> (n,l)=map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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]+"")
File "/tmp/tmpuealq3zd/tmprob5jqch.py", line 4 for i in range(n) ^ SyntaxError: expected ':'
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)
Traceback (most recent call last): File "/tmp/tmpxvace319/tmpsrw7h_2w.py", line 1, in <module> N,L = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmp3vvymo1b/tmpdprjzzuq.py", line 1, in <module> N,L = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmp0do4ameg/tmpyp70cizy.py", line 1, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmps6vsrc2z/tmpfw73dg8u.py", line 1, in <module> str = input().split() ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmps1u2yzvu/tmpv4ljvx5y.py", line 1, in <module> str = input().split() ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp57t97tl1/tmpldahbimy.py", line 1, in <module> str = input().split() ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpyt9ofipo/tmpw87etahs.py", line 1, in <module> l, n = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmpwycf2p_u/tmpujw1lasq.py", line 1, in <module> n,l = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpimhcga19/tmplkssr1pm.py", line 1, in <module> n,l=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
File "/tmp/tmpuxn680k7/tmp4h31mqa0.py", line 1 N,L=[int(x) for x i input().split()] ^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
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)
Traceback (most recent call last): File "/tmp/tmpsy07caic/tmpqffrfyfu.py", line 1, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmpbqb_j_q7/tmpi04ngi8_.py", line 1, in <module> n, l = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmpwc6g5qe2/tmpb37d2w21.py", line 1, in <module> N, L = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpkmtbryga/tmpuaq2jrsr.py", line 3, in <module> number, length = map(int, input()) ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmpmydol5xa/tmpul66dq0j.py", line 1, in <module> n, l = map(int, input(),split()) ^^^^^^^ EOFError: EOF when reading a line
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)))
Traceback (most recent call last): File "/tmp/tmpi_e_s0ii/tmpkscsg6kz.py", line 2, in <module> N,L = [int(x) for x in stdin.readline().rstrip().split()] ^^^ ValueError: not enough values to unpack (expected 2, got 0)
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])
Traceback (most recent call last): File "/tmp/tmphcpiamua/tmpdxtrb37g.py", line 1, in <module> N,L=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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])
Traceback (most recent call last): File "/tmp/tmpekbcx5q6/tmpm3uakez8.py", line 1, in <module> N,L=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpt7vzs9d2/tmpgokft_jv.py", line 1, in <module> n, l = (int(x) for x in input().split()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpzyjbumr6/tmp0f2hdjqy.py", line 1, in <module> a = list(map(int,input().split())) ^^^^^^^ EOFError: EOF when reading a line