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
s292148552
p04043
u856232850
1522984983
Python
Python (3.4.3)
py
Runtime Error
17
2940
121
a, b, c = int(input()) d = [a,b,c] if d.count(5) == 2: if d.count(7) == 1: print('Yes') else: print('No')
s994871667
p04043
u942871960
1522372091
Python
Python (3.4.3)
py
Runtime Error
17
2940
159
num_list = input().split(" ") num_list = map(num_list, int) sorted_list = num_list.sorted() if sorted_list == [5, 5, 7]: print("YES") else: print("NO")
s473040181
p04043
u942871960
1522371981
Python
Python (3.4.3)
py
Runtime Error
17
2940
132
num_list = int(input().split(" ")) sorted_list = num_list.sorted() if sorted_list == [5, 5, 7]: print("YES") else: print("NO")
s345347843
p04043
u976256337
1521346639
Python
Python (3.4.3)
py
Runtime Error
17
3060
171
N, L = map(int, input().split()) S = ["" for i in range(N)] for i in range(N): S[i] = input() S.sort() result = "" for i in range(N): result += S[i] print(result)
s742700487
p04043
u898651494
1520762510
Python
Python (3.4.3)
py
Runtime Error
17
2940
182
a,b,c =map(int,input().split()) if a == 5 && b==5 && c==7: print("YES") elif a == 5 && b==7 && c==5: print("YES") elif a == 7 && b==5 && c==5: print("YES") else : print("NO")
s624225557
p04043
u672710370
1520491666
Python
Python (3.4.3)
py
Runtime Error
17
3064
686
import sys debug_mode = True if len(sys.argv) > 1 and sys.argv[1] == "-d" else False if debug_mode: import os inf = open(os.path.basename(__file__).replace(".py", ".in")) def input(): return inf.readline() else: inf = sys.stdin # ============================================================== def main(): n, k = [int(x) for x in input().strip().split()] d = [x for x in input().strip().split()] while True: str_n = str(n) if any(i in str_n for i in d): n += 1 else: break print(n) main() # ============================================================== if debug_mode: inf.close()
s777808999
p04043
u808427016
1520446769
Python
Python (3.4.3)
py
Runtime Error
90
32616
519
M = 10**9 + 7 L = 200000 Fm = {} inverseFm = {} x = 1 for i in range(L): Fm[i] = x x = x * (i + 1) % M def inverseFm(x): result = pow(Fm[x], M - 2, M) return result def C(n, r): result = Fm[n] * inverseFm(r) * inverseFm(n - r) % M return result def solve(H, W, A, B): result = 0 for i in range(B + 1, W + 1): result += C(i + H - A - 1 - 1, i - 1) * C(W - i + A - 1, W - i) return result % M H, W, A, B = [int(_) for _ in input().split()] print(solve(H, W, A, B))
s998643270
p04043
u858136677
1519589504
Python
Python (3.4.3)
py
Runtime Error
17
2940
198
a = list(map(int,inpt().split())) 5count = 0 7count = 0 for i in range(3): if a[i] == 5: 5count +=1 elif a[i] == 7: 7count += 1 if 5count == 2 and 7count == 1: print('YES') else: print('NO')
s211167130
p04043
u319612498
1518932481
Python
Python (3.4.3)
py
Runtime Error
17
2940
144
a,b,c=map(int,input().split()) list1=[a,b,c] list2=sorted(list1) if list2[0]==list2[1]==5 and list2[2]==7: print("YES") else: print(NO")
s275136843
p04043
u019584841
1518814274
Python
Python (3.4.3)
py
Runtime Error
18
2940
118
a=[int(input()) for _ in range(3)] b=sorted(a) if b[0]==5 and b[1]==5 and b[2]==7: print("YES") else: print("NO")
s572267647
p04043
u019584841
1518814146
Python
Python (3.4.3)
py
Runtime Error
18
2940
115
a=[int(input()) for _ in range(3)] a.sort() if a[0]==5 and a[1]==5 and a[2]==7: print("YES") else: print("NO")
s482881448
p04043
u019584841
1518813977
Python
Python (3.4.3)
py
Runtime Error
18
2940
93
a=[int(input()) for _ in range(3)] if sorted(a)==[5,5,7]: print("YES") else: print("NO")
s365864240
p04043
u019584841
1518813967
Python
Python (3.4.3)
py
Runtime Error
18
2940
92
a=[int(input()) for _ in range()] if sorted(a)==[5,5,7]: print("YES") else: print("NO")
s300482052
p04043
u952708174
1517083960
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
A, B, C = [int(i) for i in input().split()] if sorted([A,B,C]==[5,5,7]): print('YES') else: print('NO')
s844853399
p04043
u459737327
1516481208
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
print("YES" if 5, 7, 5 == map(int, input().split()) else "NO")
s059211573
p04043
u459737327
1516481176
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
print("YES" if 5, 7, 5 == map(int, input().split()) else "NO")
s019573240
p04043
u459737327
1516481148
Python
Python (3.4.3)
py
Runtime Error
18
2940
68
print("YES" is 5, 7, 5 == list(map(int, input().split())) else "NO")
s165999849
p04043
u459737327
1516481114
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
print("YES" is 5, 7, 5 == map(int, input().split()) else "NO")
s525793343
p04043
u124843595
1515411611
Python
Python (2.7.6)
py
Runtime Error
11
2568
99
a,b,c=[int(x) for x in input().split()] print("YES") if sorted([a,b,c]) == [5,5,7] else print("NO")
s035005370
p04043
u716949516
1514253376
Python
PyPy3 (2.4.0)
py
Runtime Error
169
38640
217
# main関数 if __name__ == '__main__': n, l = map(int,input().split()) a = [] for i in range(n) : a.append(input()) a.sort() for i in range(n) : print(a[i], end="") print()
s312793810
p04043
u355798276
1513142753
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
x = list(map(int, input().split())) if x.count[5] == 2 and x.count[7] == 1: print("YES") else: print("NO")
s877462689
p04043
u355798276
1513142680
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
x = lsit(map(int, input().split())) if x.count[5] == 2 and x.count[7] == 1: print("YES") else: print("NO")
s541805245
p04043
u667024514
1511041649
Python
Python (3.4.3)
py
Runtime Error
17
2940
233
a, b, c = map(int,input().split()) if a == 7: if b == c and c ==5: print("YES") else: print("NO") elif a == 5: if b ==7 and c == 5: print("YES") ellif b == 5 and c ==7: print("YES") else: print("NO") else: print("NO")
s542239038
p04043
u667024514
1511041581
Python
Python (3.4.3)
py
Runtime Error
17
2940
227
a, b, c = map(int,input().split()) if a == 7: if b == c ==5: print("Yes") else: print("No") elif a == 5: if b ==7 and c == 5: print("Yes") ellif b == 5 and c ==7: print("Yes") else: print("No") else: print("No")
s595850735
p04043
u269390702
1508388500
Python
Python (3.4.3)
py
Runtime Error
18
2940
166
n = list(map(int,input().split())) if 5 in n : n.remove(5) if 5 in n and if 7 in n : print("YES") else: print("NO") else : print("NO")
s419776576
p04043
u269390702
1508387700
Python
Python (3.4.3)
py
Runtime Error
18
2940
150
n = list(map(int,input().split())) if 5 in n : n.remove(5) elif 5 in n : elif 7 in n : print("YES") else : print("NO")
s639153547
p04043
u269390702
1508387576
Python
Python (3.4.3)
py
Runtime Error
17
2940
154
n = list(map(int,input().split())) if 5 in n : n.remove(5) elif 5 in n : elif 7 in n : print("YES") else : print("NO")
s572198875
p04043
u269390702
1508387408
Python
Python (3.4.3)
py
Runtime Error
17
2940
154
n = list(map(int,input().split())) if 5 in n : n.remove(5) elif 5 in n : elif 7 in n : print("YES") else : print("NO")
s653553109
p04043
u584563392
1506264866
Python
Python (3.4.3)
py
Runtime Error
17
2940
143
nyuuryoku_num , _ = [int(i) for i in input().split()] test_lists = [input() for i in range(nyuuryoku_num)] print("".join(sorted(test_lists)))
s874664695
p04043
u182096840
1504452576
Python
Python (2.7.6)
py
Runtime Error
10
2568
124
a = map(int, raw_input().strip().split()) sort(a) if a[0] == 5 and a[1] == 5 and a[2] == 7: print('YES') else: print("NO")
s655235431
p04043
u255555420
1502820219
Python
Python (3.4.3)
py
Runtime Error
16
2940
97
L, N = map(int,input().split()) S = [input() for i in range(N)] S.sort() A=''.join(S) print(A)
s671858175
p04043
u081634865
1502676280
Python
Python (3.4.3)
py
Runtime Error
18
2940
161
list = [] for i in range(3): n = int(input()) list.append(n) list.sort() if list[0] == 5 & list[1] == 5 & list[2]: print('YES') else: print('NO')
s846330723
p04043
u650245944
1502230820
Python
Python (3.4.3)
py
Runtime Error
17
2940
98
a = list(map(int, input().split())) a.sort() if a == [5, 5, 7]; print("YES") else: print("NO")
s894176466
p04043
u914001098
1499804188
Python
Python (3.4.3)
py
Runtime Error
17
2940
192
haiku = int(input()) x = haiku.split(' ') num_5 = 0 num_7 = 0 for v in x: if x[v] == 5: num_5 ++ elif x[v] == 7: num_7 ++ if num_5 == 2 and num_7 == 1: print('YES') else: print('NO')
s581560679
p04043
u914001098
1499804048
Python
Python (3.4.3)
py
Runtime Error
17
2940
190
haiku = int(input()) x = haiku.split(' ') num_5 = 0 num_7 = 0 for v in x: if x[v] == 5: num_5 ++ elif x[v] == 7: num_7 ++ if num_5 == 2 and num_7 == 1 print('YES') else print('NO')
s789042016
p04043
u502149531
1497855377
Python
Python (3.4.3)
py
Runtime Error
17
2940
127
a = [int(i) for i in input().split()] a.sort() if a[0] == 5 and a[1] == 5 and a[2] == 7 : print('YES') else print('NO')
s505893943
p04043
u319818166
1490220296
Python
Python (2.7.6)
py
Runtime Error
12
2568
389
L, N = map(int, raw_input().split()) if L > 100 or L < 1: print 'error' exit() if N > 100 or N < 1: print 'error' exit() input = [] for i in range(0, N): sentence = raw_input() if len(sentence) != L: print 'error' exit() for j in range(0, L): if sentence[j] < 'a' or sentence[j] > 'z': print 'error' exit() input.append(sentence) for x in sorted(input): print x
s568351626
p04043
u976966750
1490045392
Python
PyPy2 (5.6.0)
py
Runtime Error
33
27628
108
n,l=map(int,raw_input().split()) l=[] for i in range(n): l.append(raw_input()) l.sort() print ''.join(l)
s630031938
p04043
u788681441
1484254303
Python
Python (3.4.3)
py
Runtime Error
23
3064
61
f = map(int, input().split()) f = sorted(f) if f==[5, 5, 7]:
s249291950
p04043
u122916923
1483911701
Python
Python (3.4.3)
py
Runtime Error
22
3064
85
if '557' == ''.join(sorted(input().split())): return 'YES' else: return 'NO'
s091037129
p04043
u582243208
1480114175
Python
Python (3.4.3)
py
Runtime Error
23
3064
206
n,k=map(int,input().split()) d=[i for i in input().split()] while True: f=False for i in d: if i not in str(n): f=True break if f: break n+=1 print(n)
s980440259
p04043
u778700306
1478186290
Python
Python (2.7.6)
py
Runtime Error
17
2692
458
N, K = raw_input().split() D = raw_input().split() candi = [str(i) for i in xrange(10)] for d in D: candi.remove(d) def decide(i): if i >= len(N): return '' for c in candi: if N[i] == c: return c + decide(i + 1) elif N[i] < c: return c + candi[0] * (len(N) - i - 1) if candi[-1] * len(N) >= N: print decide(0) else: print (candi[0] if candi[0] != '0' else candi[1]) + candi[0] * len(N)
s184857529
p04043
u760139520
1470499475
Python
Python (3.4.3)
py
Runtime Error
38
3064
249
a = map(int, input().split() flag5=0 flag7=0 for i in range(len(a)): if a[i] = 5: flag5 += 1 elif a[i] = 7: flag7 += 1 else: flag5 = 0 break if flag5=2 and flag7=1: print('YES') else: print('NO')
s543956258
p04043
u886545507
1469893171
Python
Python (2.7.6)
py
Runtime Error
26
2568
164
#coding: utf-8 #ABC042C n,k=map(int,raw_input().split()) d=raw_input().split() while True: if all(x not in str(n) for x in d): res=n break n+=1 print res
s781073740
p04043
u886545507
1469709914
Python
Python (2.7.6)
py
Runtime Error
25
2568
128
#coding: utf-8 #ABC042B n,l=map(int,raw_input().split()) s=[raw_input() for i in xrange(n)] s.sort() res="".join(s) print res
s131573094
p04043
u426432817
1469668460
Python
Python (3.4.3)
py
Runtime Error
39
3064
132
N,L=map(int, input().split()) a=[] for i in range(N): a.append(input()) a.sort() for i in range(N): print(a[i],end='')
s782152101
p04043
u426432817
1469667252
Python
Python (3.4.3)
py
Runtime Error
39
3064
139
N,L=input().split() N=int(N) a=[] for i in range(N): s=input() a.append(s) a.sort() for i in range(N): print(a[i],end='')
s536261971
p04043
u150117535
1469541225
Python
Python (3.4.3)
py
Runtime Error
38
3064
289
ini = int(input().split(" ")[0]) negaset = [int(x) for x in input().split(" ")] okset = sorted([str(i) for i in range (10) if i not in negaset]) #print(ini,okset) for p in itertools.product(okset,repeat = 5): stp = int("".join(p)) if stp >= ini: print(stp) break
s631244407
p04043
u150117535
1469541199
Python
Python (3.4.3)
py
Runtime Error
38
3064
305
import itertools ini = int(input().split(" ")[0]) negaset = [int(x) for x in input().split(" ")] okset = sorted([str(i) for i in range (10) if i not in negaset]) #print(ini,okset) for p in itertools.product(okset,repeat = 5): stp = int("".join(p)) if stp >= ini: print(stp) break
s345807959
p04043
u150117535
1469541009
Python
Python (3.4.3)
py
Runtime Error
39
3064
340
# coding: utf-8 # Here your code ! import itertools ini = int(input().split(" ")[0]) negaset = [int(x) for x in input().split(" ")] okset = sorted([str(i) for i in range (10) if i not in negaset]) #print(ini,okset) for p in itertools.product(okset,repeat = 5): stp = int("".join(p)) if stp >= ini: print(stp) break
s376134665
p04043
u150117535
1469509011
Python
PyPy3 (2.4.0)
py
Runtime Error
399
45168
201
# coding: utf-8 # Here your code ! ipt = input().split(" ") j,k =0,0 for i in ipt: if i == 5: k +=1 elif i==7: j += 1 if J == 1 & K == 2: print("YES") else: print("NO")
s629150975
p04043
u022488946
1469481271
Python
PyPy2 (5.6.0)
py
Runtime Error
59
8944
75
xs = map(int, raw_input()) print 'YES' if sorted(xs) == [5, 5, 7] else 'NO'
s136773580
p04043
u591287669
1469461349
Python
Python (3.4.3)
py
Runtime Error
38
3064
61
if sorted(arr) == [5,5,7]: print('YES') else: print('NO')
s922048921
p04043
u557523358
1469402438
Python
Python (3.4.3)
py
Runtime Error
1425
11096
214
M=10**9+7;F=[pow(X,M-2,M)for X in range(2*10**5)];H,W,A,B=map(int,input().split());Z=C=1 for I in range(H-1):Z=C=C*(W+H-B-2-I)*F[I+1]%M for I in range(1,H-A):C=C*(B-1+I)*F[I]*(H-I)*F[W+H-B-1-I]%M;Z=(Z+C)%M print(Z)
s478399324
p04043
u352021237
1469345385
Python
PyPy2 (5.6.0)
py
Runtime Error
58
8816
113
n,l=map(int,raw_input().split()) a=[] for i in range(n): a.append(raw_input()) a.sort() print ''.join(a)
s072221015
p04043
u888742521
1469326979
Python
Python (2.7.6)
py
Runtime Error
26
2692
761
# coding: utf-8 # Here your code ! N, K = map(int, raw_input().split(" ")) D = map(int, raw_input().split(" ")) nums = range(0,10) #好きな数字を昇順のリストに整理 like = list(set(nums).difference(set(D))) like.sort() print like #数字を上から1文字づつ処理 grade = len(str(N))-1 ans = 0 flag = False #上の桁で嫌いな数字があるか for i in str(N): if int(i) == 9 and 9 not in like and not flag: ans += 10**(grade+1) flag = True elif int(i) not in like and not flag: for j in like: if j > int(i): ans += j*10**(grade) flag = True break elif flag: ans += like[0]*10**(grade) grade -= 1 if ans < N: ans = N print ans
s156092194
p04043
u834061612
1469324043
Python
Python (2.7.6)
py
Runtime Error
26
2568
448
#!/usr/bin/env python2 #encoding: UTF-8 # To change this license header, choose License Headers in Project Properties. # To change this template file, choose Tools | Templates # and open the template in the editor. import math line=raw_input().rstrip().split(' ') N=int(line[0]) L=int(line[1]) listo=[] for i in range(L): listo.append(raw_input().rstrip()) listi=sorted(listo) listni='' for i in range(L): listni+=listi[i] print listni
s941377590
p04043
u187945597
1469323897
Python
Python (2.7.6)
py
Runtime Error
26
2568
152
n,l = map(int,raw_input().split()) s = [] for i in xrange(n) : s.append(raw_input()) s.sort() t = '' for j in xrange(n) : t += s[j] print t
s955418530
p04043
u442984321
1469323822
Python
Python (3.4.3)
py
Runtime Error
37
3064
409
n, _ = input().split(' ') o = set([d for d in range(10)]) d = set([int(t) for t in input().split(' ')]) o = list(o.difference(d)) o.sort() ans = [] for t in n: t = int(t) for tt in o: if tt >= t: ans.append(tt) break else: ans.append(o[0]) if int(''.join(map(str,ans))) < int(n): ans.insert(0, o[0] if o[0] != 0 else o[1]) print(''.join(map(str,ans)))
s816960231
p04043
u601018334
1469323605
Python
Python (3.4.3)
py
Runtime Error
38
3064
233
N,L = list(map(int, input().split())) a = [input() for i in range(N)] b = [] for i in range(N): n = 0 for j in range(L): n = (n*100) + ord( a[i][j])-96 b.append(n) ind = b.index(max(b)) print('%s' % str(a[ind]))
s835245471
p04043
u798181098
1469322187
Python
Python (3.4.3)
py
Runtime Error
36
3064
101
a, b, c = sorted(map(int, input().split())) if a, b, c == 5, 5, 7: print("YES") else: print("NO")
s354079959
p04043
u798181098
1469322105
Python
Python (3.4.3)
py
Runtime Error
1839
8400
100
a, b, c = sorted(map(int, input().split())) if a, b, c = 5, 5, 7: print("YES") else: print("NO")
s223815451
p04044
u443151804
1600861701
Python
Python (3.8.2)
py
Runtime Error
25
8948
40
println(join(sort!(readlines()[2:end])))
s841280822
p04044
u536034761
1600860828
Python
Python (3.8.2)
py
Runtime Error
23
9096
91
n, l = map(int, input().split()) A = sorted([input() for _ in range(l)]) print("".join(A))
s732640963
p04044
u579746769
1600095155
Python
Python (3.8.2)
py
Runtime Error
27
9188
132
n,l=map(int,input().split()) li=[input() for i in range(n)] sortli=sorted(li) print("{}{}{}".format(sortli[0],sortli[1],sortli[2]))
s693480527
p04044
u049364987
1599727116
Python
Python (3.8.2)
py
Runtime Error
21
9060
314
from sys import stdin, stdout from time import perf_counter import sys sys.setrecursionlimit(10**9) mod = 10**9+7 import sys sys.stdout = open("e:/cp/output.txt","w") sys.stdin = open("e:/cp/input.txt","r") n,l = map(int, input().split()) s = [input() for _ in range(n)] s.sort() result = ''.join(s) print(s)
s677325914
p04044
u304612256
1599316827
Python
Python (3.8.2)
py
Runtime Error
22
8952
155
from sys import stdin input = stdin.readline L, N = map(int, input().split()) D = [] for i in range(N): D.append(input() D.sort() print(''.join(D))
s252202671
p04044
u546853743
1599228117
Python
Python (3.8.2)
py
Runtime Error
22
9040
119
n,l=map(int,input().split()) for i in range(n): list[i] = str(input()) newlist=list.sorted() print(newlist,sep='')
s756238971
p04044
u600673553
1599091472
Python
Python (3.8.2)
py
Runtime Error
25
9188
156
n,l = map(int,input().split()) ls = [] for i in range(n): a = str(input()) ls.append(a) ls.sort() tx = "" for i in range(n): tx = tx +ls[n] print(tx)
s740381791
p04044
u855057563
1599077920
Python
Python (3.8.2)
py
Runtime Error
26
8972
104
n,l=map(int,input().split()) s=[int(input()) for _ in range(n)] s.sort() for i in s: print(i,end="")
s789746483
p04044
u855057563
1599077764
Python
Python (3.8.2)
py
Runtime Error
22
9012
100
n,l=map(int,input().split()) s=[int(input()) for _ in range(n)] s.sort() print(i for i in s,end="")
s751799390
p04044
u473905774
1598990498
Python
PyPy3 (7.3.0)
py
Runtime Error
82
74692
100
a,b = list(map(int,input().split(" "))) l = [input() for i in range(b)] l.sort() print("".join(l))
s604471397
p04044
u473905774
1598989813
Python
PyPy3 (7.3.0)
py
Runtime Error
96
74664
154
# coding: utf-8 # Your code here! a,b = list(map(int,input().split(" "))) l = [input() for i in range(b)] l = sorted(l) new_l = ''.join(l) print(new_l)
s448663633
p04044
u344383000
1598843219
Python
Python (3.8.2)
py
Runtime Error
24
8920
448
#include <iostream> using namespace std; int main() { int n,l; cin>>n>>l; string str[n], temp; getchar(); for(int i = 0; i < n; ++i) { getline(cin, str[i]); } for(int i = 0; i < n-1; ++i) for( int j = i+1; j < n; ++j) { if(str[i] > str[j]) { swap(str[i],str[j]); } } for(int i = 0; i < n; ++i) { cout << str[i]; } return 0; }
s543461181
p04044
u439881679
1598631953
Python
Python (3.8.2)
py
Runtime Error
27
9344
375
# bsdk idhar kya dekhne ko aaya hai, khud kr!!! # import math # from itertools import * # import random # import calendar import datetime # import webbrowser # f = open("input.txt", 'r') # g = open("output.txt", 'w') # n, m = map(int, f.readline().split()) n, k = map(int, input().split()) arr = [] for i in range(k): arr.append(input()) arr.sort() print("".join(arr))
s454178521
p04044
u940652437
1598052317
Python
Python (3.8.2)
py
Runtime Error
25
8940
212
5 5 7 Yes N,L = map(int,input().split()) str_list=[] final_str = "" for i in range(N): str_list.append(input()) new_list = sorted(str_list) for n in range(N): final_str += new_list[n] print(final_str) 3 3
s902827800
p04044
u468972478
1597975561
Python
Python (3.8.2)
py
Runtime Error
23
9156
124
l, n = map(int, input().split()) a = [] for i in range(n): a.append(input()) a.sort() b = "" for i in a: b += a print(b)
s755169572
p04044
u506996808
1597714451
Python
Python (3.8.2)
py
Runtime Error
26
9048
110
N,L=map(int,input().split()) S=[input() for i in range(N)] S.sorted() for i in range(len(S)): print(S[i])
s068903521
p04044
u190195462
1597291516
Python
Python (3.8.2)
py
Runtime Error
32
9112
131
L, N = map(int, input().split()) C = [input() for i in range(N)] C.sort() i=0 while i < N: print(C[i] , end ="") i += 1
s482844003
p04044
u190195462
1597289093
Python
Python (3.8.2)
py
Runtime Error
24
9092
220
L, N = map(int, input().split()) C = list(range(N)) i=0 while i < N: C[i] = input() if len(C[i]) == L: i += 1 else: pass C.sort() i=0 while i < N: print(C[i] , end ="") i += 1
s649817302
p04044
u190195462
1597288819
Python
Python (3.8.2)
py
Runtime Error
28
9068
173
L, N = map(int, input().split()) C = list(range(N)) i=0 while i < N: C[i] = input() i += 1 C.sort() i=0 while i < N: print(C[i] , end ="") i += 1
s835892815
p04044
u673173160
1597233650
Python
Python (3.8.2)
py
Runtime Error
22
8996
169
n, l = map(int, input().split()) sl = [] for i in range(n): s = input() sl.append(s) sl.sort() "print(sl) ans = "" for i in range(n): ans += sl[i] print(ans)
s834099902
p04044
u226779434
1596994822
Python
Python (3.8.2)
py
Runtime Error
27
9176
101
n,l = map(int,input().split()) s =[input() for _ in range(n)] ss = sorted(s) print(ss[0]+ss[1]+ss[2])
s066603575
p04044
u894623942
1596757767
Python
Python (3.8.2)
py
Runtime Error
26
8952
110
L,N = map(int,input().split()) S = [] for _ in range(N): S.append(str(input())) S.sort() print(''.join(S))
s908370643
p04044
u894623942
1596757568
Python
Python (3.8.2)
py
Runtime Error
26
9036
126
L,N = map(int,input().split()) list1 = [] for l in range(N): list1.append(str(input())) list1.sort() print(''.join(list1))
s905183989
p04044
u894623942
1596757324
Python
Python (3.8.2)
py
Runtime Error
25
8996
126
L,N = map(int,input().split()) list1 = [] for _ in range(N): list1.append(str(input())) list1.sort() print(''.join(list1))
s740526031
p04044
u894623942
1596756930
Python
Python (3.8.2)
py
Runtime Error
24
9024
121
L,N = map(int,input().split()) list1 = [] for _ in range(N): list1.append(input()) list1.sort() print(''.join(list1))
s971266680
p04044
u385823012
1596468250
Python
Python (3.8.2)
py
Runtime Error
25
8968
151
first= input() first = first.split() N = int(first[0]) L =[] for i in range(N) s = input() L.append(s) L.sort() for i in L: print(i,end="")
s459668881
p04044
u385823012
1596468187
Python
Python (3.8.2)
py
Runtime Error
28
8968
152
first= input() first = first.split() N = int(firsst[0]) L =[] for i in range(N) s = input() L.append(s) L.sort() for i in L: print(i,end="")
s161223955
p04044
u604839890
1596401079
Python
Python (3.8.2)
py
Runtime Error
24
9148
108
n, l = map(int, input().split()) s = sorted([map(int, input().split()) for _ in range(n)]) print(*s, sep='')
s963352784
p04044
u500823377
1596391755
Python
Python (3.8.2)
py
Runtime Error
24
8892
220
N, L = map(int, input().split()) input_line1 = [input() for i in range(N)] input_line2 = [] for i in range(N): input_line2.append(min(input_line1)) input_line1.remove(min(input_line1)) print("".join(input_line2))
s584018464
p04044
u467177102
1596375832
Python
Python (3.8.2)
py
Runtime Error
22
8920
120
N,L = map(int, input().split()) string_list = [input() for i in range(N)] string_list.sort() print(''.join(string_list)
s448201023
p04044
u957799665
1595969961
Python
Python (3.8.2)
py
Runtime Error
29
9012
200
str_list = [] n_number,l_length = map(int,input().split()) w_1=input() str_list.append(w_1) w_2=input() str_list.append(w_2) w_3=input() str_list.append(w_3) str_list.sort() print(''.join(str_list))
s608600078
p04044
u840841119
1595937775
Python
Python (3.8.2)
py
Runtime Error
29
9168
88
N,L = map(int, input().split()) S = sorted(input() for _ in range(L)) print(''.join(S))
s549683307
p04044
u980503157
1595828560
Python
Python (3.8.2)
py
Runtime Error
24
9140
165
Firstline = input() Firstline = Firstline.split() List = [] for i in int(Firstline[0]): List.append(input()) List.sort() s = "" for i in List: s += i print(s)
s013250153
p04044
u000644874
1595621562
Python
Python (3.8.2)
py
Runtime Error
24
9064
123
N, L = map(int, input().split()) S = [input() for s in range(N)] S.sort() output = "" for i in S: output+=i prunt(output)
s376965894
p04044
u000644874
1595621484
Python
Python (3.8.2)
py
Runtime Error
27
9080
123
N, L = map(int, input().split()) S = [input() for s in range(L)] S.sort() output = "" for i in S: output+=i prunt(output)
s503451665
p04044
u113255362
1595437978
Python
Python (3.8.2)
py
Runtime Error
24
9116
152
N,L=map(int,input().split()) List = [] for i in range (N): List.append(int(input())) List.sort() res = "" for i in range(N): res+=List[i] print(res)
s383095740
p04044
u548775658
1594345930
Python
Python (3.8.2)
py
Runtime Error
24
9064
106
N,L=map(int, input().split()) ls = [] for i in range(N): ls.append(split()) ls.sort() print("".join(ls))
s871747659
p04044
u629276590
1594343851
Python
Python (3.8.2)
py
Runtime Error
25
8972
128
n,l=map(int,input().split()) s=[] for i in range(n): s.append(str(input())) a="".join(sorted(s)) print(a