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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s400105625 | p04043 | u417958545 | 1566861518 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 248 | 1 = input()
2 = input()
3 = input()
A = len(1)
B = len(2)
C = len(3)
if A == 5 and B == 7 and C == 5:
print("YES")
elif A == 7 and B == 5 and C == 5:
print("YES")
elif A == 5 and B == 5 and C == 7:
print("YES")
else:
print("NO") |
s642908457 | p04043 | u756696693 | 1566769884 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | A=list(map(int,input().split()))
A.sort()
if A =[5,5,7]:
print("YES")
else:
print("NO") |
s035269050 | p04043 | u756696693 | 1566769853 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | A=list(map(int,input().split())
A.sort()
if A =[5,5,7]:
print("YES")
else:
print("NO") |
s396997034 | p04043 | u802963389 | 1566707707 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | n = list(int, input().split())
n.sort()
if n[0] == n[1] == 5 and n[2] == 7:
print("YES")
else:
print("NO") |
s406343367 | p04043 | u688375653 | 1566612709 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 138 | A,B,C=map(int,input().split())
hoge=set([A,B,C])
if hoge==set([5,7]):
if A+B+C=17:
print("YES")
else:
print("NO") |
s389836261 | p04043 | u770035520 | 1566476313 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 178 | def Haiku(check,syllables):
check.sort()
syllables.sort()
if check==syllables:
return "YES"
else:
return "NO"
print(Haiku(check,syllables)) |
s217541692 | p04043 | u343711599 | 1566443339 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 144 | A,B,C = map(int,input().split())
if A+B+C == 17 and (A==5 or A==7) and (B==5 or B==7) and (C==5 or C==7):
print('YES')
else:
print('NO') |
s798644419 | p04043 | u920438243 | 1566362678 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 162 | go = 0
nana = 0
num = input().split()
for i in num:
if i == "5":
go+=1
elif i == "7":
nana+=1
if (go==2) and (nana==1):
print(YES)
else:
print(NO) |
s857082762 | p04043 | u453500284 | 1566314960 | Python | PyPy3 (2.4.0) | py | Runtime Error | 172 | 38256 | 111 | li = list(map(int, input().split()))
if li = [5,5,7] or [5,7,5] or [7,5,5]:
print('Yes')
else:
print('No') |
s885908827 | p04043 | u453500284 | 1566314456 | Python | PyPy3 (2.4.0) | py | Runtime Error | 176 | 38256 | 161 | a, b, c = map(int,input().split())
if ((a == b == 5 and c == 7) or (a == c == 5 and b == 7) or (b == c == 5 and a == 7)):
print("Yes")
else: print("No")
|
s054348891 | p04043 | u453500284 | 1566314026 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38256 | 174 | a, b, c = map(input().split())
if a + b + c == 17:
if (a == b == 5 and c == 7) or (a == c == 5 and b == 7) or (b == c == 5 and a == 7):
print("Yes")
else: print("No") |
s802427606 | p04043 | u131625544 | 1566272594 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | N, L = map(int, input().split())
Slist = [input() for i in range(N)]
S = sorted(Slist)
s = ''.join(S)
print(s) |
s170747293 | p04043 | u131625544 | 1566272530 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 38 | n,l=map(int,input().split())
print('') |
s834191196 | p04043 | u131625544 | 1566272305 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | n,l=map(int,input().split())
s=sorted([input() for i in range(n)])
print("".join(s)) |
s957891784 | p04043 | u131625544 | 1566272283 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | n, l = map(int, input().split())
s = sorted([input() for i in range(N)])
print("".join(s)) |
s228525428 | p04043 | u131625544 | 1566272228 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 92 | N, L = map(int, input().split())
S = sorted([input() for i in range(N)])
print("".join(S)) |
s638595827 | p04043 | u131625544 | 1566272194 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | N, L = map(int, input().split())
S = sorted([input() for i in range(N)])
print(''.join(S)) |
s853815484 | p04043 | u131625544 | 1566272134 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 91 | N, L = map(int, input().split())
S = sorted([input() for i in range(N)])
print(*S, sep='') |
s430040957 | p04043 | u131625544 | 1566271946 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | N, L = map(int, input().split())
S = [input() for i in range(N)]
print(*sorted(S), sep='') |
s306934730 | p04043 | u026678302 | 1566268455 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 208 | test=list(map(int, input().split()))
def iroha():
if test==[5,5,7]:
print("yes")
elif test==[5,7,5]:
print("yes")
elif test==[7,5,5]:
print("yes")
else:
print("no")
iroha() |
s161418154 | p04043 | u026678302 | 1566268151 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 210 | test=list(map(int, input().split()))
def iroha():
if test==[5,5,7]:
print("yes")
elif test==[5,7,5]:
print("yes")
elif test==[7,5,5]:
print("yes")
else:
print("no")
iroha() |
s869591147 | p04043 | u785470389 | 1566266716 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 361 | #入力
n, k = map(int, input().split())
d = input().split()
stop = min(10000, n * 10)
for l in range(n, stop):
a = str(n)
flag = 0
for i in range(len(a)):
for j in range(k):
if a[i] != d[j]:
flag += 1
else:
n += 1
break
if (flag % k) != 0 and flag == 0:
break
if flag == len(a) * k:
break
print(n) |
s986822911 | p04043 | u488934106 | 1566240161 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | A = int(input())
B = int(input())
C = int(input())
print("YES" if A+B+C == 17 else "NO") |
s190816422 | p04043 | u291625518 | 1566166158 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 98 | s = input().split()
if s.count("5") == 2 and s.count("7") = 1:
print("YES")
else:
print("NO") |
s521550048 | p04043 | u291625518 | 1566165640 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 97 | s = input().split()
if s.find("5") == 2 and s.find("7") == 1:
print("YES")
else:
print("NO") |
s011573967 | p04043 | u628018347 | 1566103889 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 492 | num_list = list(map(int, input().split()))
N = num_list[0]
L = num_list[1]
S = [input(i) for i in range(N)]
for i in range(N):
for j in range(N):
if i < j:
for k in range(L):
if S[i][k] > S[j][k]:
S[i], S[j] = S[j], S[i]
break
else:
continue
print(''.join(S))
|
s142877093 | p04043 | u643714578 | 1566043360 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 83 | n,l=map(int,input().split())
s=sorted([input() for i in range(n)])
print(*s,sep="") |
s580290464 | p04043 | u643714578 | 1566043249 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | n,l=map(int,input().split())
list=sorted([input() for i in range(n)])
print(*list,sep="") |
s079221232 | p04043 | u643714578 | 1566043102 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | n,l=map(int,input().split())
list=sorted([input() for i in range(n)])
print(*list,sep="") |
s617507093 | p04043 | u271044469 | 1566020003 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 233 | n = list(map(int, input().split()))
count_5 = 2
count_5 = 1
for i in range(len(n)):
if n[i] == 5:
count_5 -= 1
elif n[i] == 7:
count_7 -= 1
if count_5==0 and count_7==0:
print('YES')
else:
print('NO')
|
s634136546 | p04043 | u271044469 | 1566019919 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 227 | n = list(map(int, input().split()))
5count = 2
7count = 1
for i in range(len(n)):
if n[i] == 5:
5count -= 1
elif n[i] == 7:
7count -= 1
if 5count==0 and 7count==0:
print('YES')
else:
print('NO')
|
s768945968 | p04043 | u275861030 | 1566013366 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 162 | a, b, c = map(int, input().split())
if (a ==5 and b==5 and c ==7) or (a==5 and b==7 and c==5) or (a==7 and b==5 and C==5):
print('YES')
else:
print('NO')
|
s358996144 | p04043 | u618373524 | 1566003321 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | n,l = map(int,input().split())
s = sorted([input() for i in range(n)] )
print(*s,sep="") |
s302254040 | p04043 | u200887663 | 1565922377 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 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="") |
s970914734 | p04043 | u999799597 | 1565920671 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 191 | strings = raw_input().split()
cand = [5, 7, 5]
for i in range(len(cand)):
for j in range(len(strings)):
if cand[i] == int(strings[j]):
cand.pop(i)
print(len(cand)==0) |
s227560385 | p04043 | u318165580 | 1565888969 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | a,b,c=list(map(int,input().split()))
print("YES" if (a=b=5 and c=7) or (a=c=5 and b=7) or (b=c=5 and a=7) else "NO") |
s068627127 | p04043 | u649558044 | 1565819355 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 164 | inp = input().split(" ")
N = int(inp[0])
L = int(inp[1])
s = []
for i in range(N):
s.append(input())
s.sort()
res = ""
for i in range(N):
res += s[i]
print(res) |
s951587787 | p04043 | u812023932 | 1565812093 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 126 | A, B, C = map(int, input().split())
if [A, B, C].count(5) = 2 and [A, B, C].count(7) = 1:
print("YES")
else:
print("NO")
|
s723916683 | p04043 | u390170391 | 1565806096 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | lis = map(int,list(input().split()))
lis.sort()
if lis == [5,5,7]:
print('YES')
else:
print('NO')
|
s420210699 | p04043 | u390170391 | 1565805964 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | lis = list(input().split())
lis.sort()
if lis = [5,5,7]:
print('YES')
else:
print('NO') |
s970516835 | p04043 | u959759457 | 1565785624 | Python | Python (3.4.3) | py | Runtime Error | 17 | 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)
|
s814976522 | p04043 | u111365362 | 1565759521 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 588 | n,K = map(int,input().split())
use = [0,1,2,3,4,5,6,7,8,9]
useless = list(map(int,input().split()))
for i in range(K):
use.remove(useless[i])
k = 10 - K
time = [0]
def suc(time):
now = 0
while True:
if now >= len(time):
time.append(0)
break
elif time[now] != k-1:
time[now] += 1
break
else:
time[now] = 0
now += 1
return time
#print(suc([0]))
#print(suc([1,1,1,1]))
#print(suc([1,0,1,1]))
while True:
pay = 0
for j in range(len(time)):
pay += use[time[j]] * 10 ** j
if pay >= n:
print(pay)
break
time = suc(time) |
s563496922 | p04043 | u729535891 | 1565731589 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 181 | N = map(int, input().split())
for n in N:
if n == 5 :
cnt_5 += 1
elif n == 7 :
cnt_7 += 1
if cnt_5 == 2 & cnt_7 == 1:
print('Yes')
else:
print('N0') |
s406331828 | p04043 | u880985077 | 1565666844 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | array = input().split()
if (array.count(5) == 2 and array.count(7) == 1):
print "YES"
else
print "NO" |
s953933119 | p04043 | u497326082 | 1565569832 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | n,l=map(int,input().split())
s=sorted([input() for i in range(n)])
print("".join(s)) |
s731817002 | p04043 | u033907515 | 1565462614 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 3 | |
s833352997 | p04043 | u933179804 | 1565459368 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 95 | A, B, C = map(int, input().split())
if sum(A,B,C) == 17:
print("YEAS")
else:
print("NO")
|
s654387628 | p04043 | u933179804 | 1565458991 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 86 | nums = list(input().split())
if sum(nums) == 17:
print("YES")
else:
print("NO")
|
s063544759 | p04043 | u933179804 | 1565458819 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | numlist = list(input())
if sum(numlist) == 17:
print("YES")
else:
print("NO")
|
s206901648 | p04043 | u025159619 | 1565424558 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 58 | print(sorted([int(input()) for i in range(3)]) == [5,5,7]) |
s594819492 | p04043 | u493491792 | 1565383063 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | lista=list(map(int,input().split()))
lista.sort()
if lista==[5,5,7]:
print("YES")
else:
ptinr("NO") |
s041921416 | p04043 | u939581910 | 1565379222 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | x=map(int,input().split())
if x.count(7)==1 and x.count(5)==2:
print('YES')
else:
print('NO') |
s251201236 | p04043 | u740047492 | 1565310016 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 126 | a = int(input())
b = int(input())
c = int(input())
if a + b + c == 17:
print("YES")
else:
print("NO")
|
s797858688 | p04043 | u280853184 | 1565270613 | Python | Python (2.7.6) | py | Runtime Error | 12 | 2692 | 163 | # -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum == 17:
print "YES"
else:
print "NO" |
s975631257 | p04043 | u280853184 | 1565270564 | Python | Python (2.7.6) | py | Runtime Error | 17 | 2696 | 166 | # -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum == 17:
print "YES"
else:
print "NO"
|
s761875948 | p04043 | u280853184 | 1565270538 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 205 | # -*- coding: utf-8 -*-
# 整数の入力
#a = int(raw_input())
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum = 17:
print "YES"
else:
print "NO"
|
s880070112 | p04043 | u280853184 | 1565270472 | Python | Python (2.7.6) | py | Runtime Error | 13 | 2824 | 123 | # -*- coding: utf-8 -*-
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum == 17:
print "YES"
else
print "NO"
|
s863353186 | p04043 | u280853184 | 1565270191 | Python | Python (2.7.6) | py | Runtime Error | 12 | 2696 | 203 | # -*- coding: utf-8 -*-
# 整数の入力
#a = int(raw_input())
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum = 17:
print "YES"
else
print "NO" |
s603717349 | p04043 | u800729321 | 1565188755 | 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(s):
string = input()
str_list.append(string)
str_list.sort()
ans = ''.join(str_list)
print(ans) |
s612004953 | p04043 | u800729321 | 1565187053 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 239 | a,b,c = input().split()
a = int(a)
b = int(b)
c = int(c)
if(a + b + c) != 17:
print("NO")
elif(a + b + c) = 17:
if(a + b == 10) | (b + c == 10) | (c + a == 10):
print("YES")
else:
print("NO")
else:
print("NO") |
s071767513 | p04043 | u800729321 | 1565187003 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 242 | a,b,c = input().split()
a = int(a)
b = int(b)
c = int(c)
if(a + b + c) != 17:
print("NO")
elif(a + b + c) == 17:
if(a + b == 10) || (b + c == 10) || (c + a == 10):
print("YES")
else:
print("NO")
else:
print("NO") |
s036288573 | p04043 | u800729321 | 1565186919 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 238 | a,b,c = input().split()
a = int(a)
b = int(b)
c = int(c)
if(a + b + c) != 17:
print("NO")
elif(a + b + c) = 17:
if(a + b == 10) || (b + c == 10) || (c + a == 10):
print("YES")
else:
print("NO")
else:
print("NO") |
s300681998 | p04043 | u800729321 | 1565186819 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 203 | a,b,c = input().split()
if(a + b + c) != 17:
print("NO")
elif(a + b + c) = 17:
if(a + b == 10) || (b + c == 10) || (c + a == 10):
print("YES")
else:
print("NO")
else:
print("NO") |
s804997348 | p04043 | u971328381 | 1565127122 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 196 | def k(l,i1,i2):
if(a==7):
i1 = i1+1
if(a==5):
i2 = i2+1
return i1,i2
l=list(int,input().split())
i1=0
i2=0
for i in l:
i1,i2 = k(i,i1,i2)
print('YES' if i1==1 and i2==2 else 'NO') |
s407532984 | p04043 | u680885792 | 1565116956 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | import sys
args = sys.args[1::]
numbers = [int(s) for s in args]
if sorted(numbers) == [5, 5, 7]:
return 'YES'
else:
return 'No'
|
s319573453 | p04043 | u680885792 | 1565116775 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | import sys
args = sys.args[1::]
ints = [int(s) for s in args]
return sorted(ints) == [5, 5, 7]
|
s544968188 | p04043 | u462703607 | 1565116202 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | a=list(map(int,input().split()))
a.sort()
if a[0]=5 and a[1]=5 and a[2]=7:
print(Yes)
else:
print(No) |
s913073872 | p04043 | u229959388 | 1565107876 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 219 | n, k = map(int, input().split())
a = input().split()
for i in range(10*n - n):
c = str(n+i)
for j in a:
if j in c:
break
else:
ans = c
break
print(ans) |
s570115699 | p04043 | u999669171 | 1565065335 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 790 | h, w, a, b = map( int, input().split() )
SIZE = h+w+2
MOD = 10**9 + 7
MOD_Farmer = 10**9+5
fact = [0] * SIZE
inv = [0] * SIZE
fact_inv = [0] * SIZE
# prepare --------------------------------
inv[0] = 0
inv[1] = 1
fact[0] = fact[1] = 1
fact_inv[0] = fact_inv[1] = 1
for i in range( 2, SIZE ):
fact[i] = fact[i-1] * i % MOD
fact_inv[i] = ( (fact[i] **( 10**4 ) \
* fact[i] **( 10**5 ) \
* fact[i] ** 5 ) % MOD )\
% MOD
# ----------------------------------------
def comb( n, r ):
if r >= 0 and n >= 0:
return fact[n] * fact_inv[n-r] * fact_inv[r]
else :
return 0.0
# ----------------------------------------
ans = 0
for i in range( h-a ):
ans += comb(i+b-1, b-1) * comb(h-i-1+w-b-1,w-b-1)
ans %= MOD
print( ans ) |
s546117742 | p04043 | u999669171 | 1565065229 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 758 | h, w, a, b = map( int, input().split() )
SIZE = h+w+2
MOD = 10**9 + 7
MOD_Farmer = 10**9+5
fact = [0] * SIZE
inv = [0] * SIZE
fact_inv = [0] * SIZE
# prepare --------------------------------
inv[0] = 0
inv[1] = 1
fact[0] = fact[1] = 1
fact_inv[0] = fact_inv[1] = 1
for i in range( 2, SIZE ):
fact[i] = fact[i-1] * i % MOD
fact_inv[i] = fact[i] **( 10**4 ) \
* fact[i] **( 10**5 ) \
* fact[i] ** 5 % MOD % MOD
# ----------------------------------------
def comb( n, r ):
if r >= 0 and n >= 0:
return fact[n] * fact_inv[n-r] * fact_inv[r]
else :
return 0.0
# ----------------------------------------
ans = 0
for i in range( h-a ):
ans += comb(i+b-1, b-1) * comb(h-i-1+w-b-1,w-b-1)
ans %= MOD
print( ans ) |
s611522726 | p04043 | u999669171 | 1565054328 | 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 ) |
s402777809 | p04043 | u999669171 | 1565054077 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 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 ) |
s362623359 | p04043 | u999669171 | 1565053077 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | array = intpu().split()
N = array[0]
L = array[1]
strs = array[2:]
print( sorted(strs) )
|
s817969335 | p04043 | u999669171 | 1565051941 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 362 |
a, b, c = map( int, input().split() )
if a+b+c != 17:
print( "NO" )
iCountFive = 0
if a = 5:
iCountFive += 1
if b = 5:
iCountFive += 1
if c = 5:
iCountFive += 1
iCountSeven = 0
if a = 7:
iCountSeven += 1
if b = 7:
iCountSeven += 1
if c = 7:
iCountSeven += 1
if iCountFive == 2 and iCountSeven == 1:
print( "YES" )
else :
print( "NO" ) |
s169933438 | p04043 | u999669171 | 1565051878 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 353 | a, b, c = map( int, input() )
if a+b+c != 17:
print( "NO" )
iCountFive = 0
if a = 5:
iCountFive += 1
if b = 5:
iCountFive += 1
if c = 5:
iCountFive += 1
iCountSeven = 0
if a = 7:
iCountSeven += 1
if b = 7:
iCountSeven += 1
if c = 7:
iCountSeven += 1
if iCountFive == 2 and iCountSeven == 1:
print( "YES" )
else :
print( "NO" ) |
s234075528 | p04043 | u539005641 | 1564959880 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | a=list(map(int,input().split())).sort()
if a==[5,5,7]:
print(YES)
else:
print(NO)
|
s045329917 | p04043 | u539005641 | 1564959761 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | a,b=map(int,input().split())
s = [input().strip("\"") for i in range(a)]
print("".join(s)) |
s241011475 | p04043 | u057308539 | 1564955084 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | N,L=map(int,input().split())
S=[]
S_list=[]
for i in range(N):
S.append(input())
S.sort()
print(''.join(S)) |
s108505845 | p04043 | u057308539 | 1564953589 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | N,L=map(int,input().split())
S=[]
S_list=[]
for i in range(N):
S.append(input())
S.sort()
print("".join(S)) |
s331194728 | p04043 | u457554982 | 1564946321 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 1020 | n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
if i not in hate:
like.append(i)
pointer=0
for ichi in like: #1桁の場合
if ichi>=n:
kane=ichi
pointer=1
break
if pointer==0: #2桁の場合
for ju in like:
for ichi in like:
if ju*10+ichi>=n:
kane=ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==0: #3桁の場合
for hyaku in like:
for ju in like:
for ichi in like:
if hyaku*100+ju*10+ichi>=n:
kane=hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==0: #4桁の場合
for sen in like:
for hyaku in like:
for ju in like:
for ichi in like:
if sen*1000+hyaku*100+ju*10+ichi>=n:
kane=sen*1000+hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
print(kane)
else:
print("Error!!") |
s511039995 | p04043 | u457554982 | 1564946232 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 1020 | n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
if i not in hate:
like.append(i)
pointer=0
for ichi in like: #1桁の場合
if ichi>=n:
kane=ichi
pointer=1
break
if pointer==0: #2桁の場合
for ju in like:
for ichi in like:
if ju*10+ichi>=n:
kane=ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==0: #3桁の場合
for hyaku in like:
for ju in like:
for ichi in like:
if hyaku*100+ju*10+ichi>=n:
kane=hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==0: #4桁の場合
for sen in like:
for hyaku in like:
for ju in like:
for ichi in like:
if sen*1000+hyaku*100+ju*10+ichi>=n:
kane=sen*1000+hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
print(kane)
else:
print("Error!!") |
s993686598 | p04043 | u457554982 | 1564946208 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 1044 | n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
if i not in hate:
like.append(i)
pointer=0
hate.sort()
like.sort()
for ichi in like: #1桁の場合
if ichi>=n:
kane=ichi
pointer=1
break
if pointer==0: #2桁の場合
for ju in like:
for ichi in like:
if ju*10+ichi>=n:
kane=ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==0: #3桁の場合
for hyaku in like:
for ju in like:
for ichi in like:
if hyaku*100+ju*10+ichi>=n:
kane=hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==0: #4桁の場合
for sen in like:
for hyaku in like:
for ju in like:
for ichi in like:
if sen*1000+hyaku*100+ju*10+ichi>=n:
kane=sen*1000+hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
print(kane)
else:
print("Error!!") |
s763861258 | p04043 | u457554982 | 1564946064 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 1044 | n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
if i not in hate:
like.append(i)
pointer=0
hate.sort()
like.sort()
for ichi in like: #1桁の場合
if ichi>=n:
kane=ichi
pointer=1
break
if pointer==0: #2桁の場合
for ju in like:
for ichi in like:
if ju*10+ichi>=n:
kane=ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==0: #3桁の場合
for hyaku in like:
for ju in like:
for ichi in like:
if hyaku*100+ju*10+ichi>=n:
kane=hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==0: #4桁の場合
for sen in like:
for hyaku in like:
for ju in like:
for ichi in like:
if sen*1000+hyaku*100+ju*10+ichi>=n:
kane=sen*1000+hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
break
if pointer==1:
print(kane)
else:
print("Error!!") |
s214236713 | p04043 | u457554982 | 1564942708 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 831 | n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
if i not in hate:
like.append(i)
pointer=0
for ichi in like: #1桁の場合
if ichi>=n:
kane=ichi
pointer=1
break
if pointer==0: #2桁の場合
for ju in like:
for ichi in like:
if ju*10+ichi>=n:
kane=ju*10+ichi
pointer=1
break
if pointer==0: #3桁の場合
for hyaku in like:
for ju in like:
for ichi in like:
if hyaku*100+ju*10+ichi>=n:
kane=hyaku*100+ju*10+ichi
pointer=1
break
if pointer==0: #4桁の場合
for sen in like:
for hyaku in like:
for ju in like:
for ichi in like:
if sen*1000+hyaku*100+ju*10+ichi>=n:
kane=sen*1000+hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
print(kane) |
s417114285 | p04043 | u457554982 | 1564942655 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 857 | n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
if i not in hate:
like.append(i)
pointer=0
for ichi in like: #1桁の場合
if ichi>=n:
kane=ichi
pointer=1
break
if pointer==0: #2桁の場合
for ju in like:
for ichi in like:
if ju*10+ichi>=n:
kane=ju*10+ichi
pointer=1
break
if pointer==0: #3桁の場合
for hyaku in like:
for ju in like:
for ichi in like:
if hyaku*100+ju*10+ichi>=n:
kane=hyaku*100+ju*10+ichi
pointer=1
break
if pointer==0: #4桁の場合
for sen in like:
for hyaku in like:
for ju in like:
for ichi in like:
if sen*1000+hyaku*100+ju*10+ichi>=n:
kane=sen*1000+hyaku*100+ju*10+ichi
pointer=1
break
if pointer==1:
print(kane)
#else:
#print("Error!!") |
s907599332 | p04043 | u457554982 | 1564932865 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 146 | (n,l)=map(int, input().split())
list1=[]
for i in range(n):
list1.extend(input().split())
list1.sort()
for i in range(n):
print(list1[i],end="") |
s722904446 | p04043 | u457554982 | 1564930952 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | (n,l)=map(int, input().split())
list1=list(input().split())
for i in range(n):
print(list1[i],end="") |
s708196409 | p04043 | u457554982 | 1564930890 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | (n,l)=map(int, input().split())
list1=list(input().split())
for i in range(n)
print(list1[i],end="") |
s458980741 | p04043 | u457554982 | 1564923280 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 128 | [a,b,c]=input().split()
[A,B,C]=map(len, [a,b,c])
haiku=[A,B,C]
haiku.sort()
if haiku==[5,5,7];
print("YES")
else;print("NO")
|
s470102242 | p04043 | u498397607 | 1564894220 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | a, b, c = map(int, input().stlip())
if sorted((a, b, c)) == [5, 5, 7]:
print('YES')
else:
print('NO') |
s774669529 | p04043 | u498397607 | 1564892606 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 103 | a, b, c = map(int, input().split())
if sorted(a, b, c) == [5, 5, 7]:
print('Yes')
else:
print('NO') |
s427080242 | p04043 | u498397607 | 1564892399 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | a, b, c = map(int, input().split())
if set(a, b, c) == (5, 7) & a*b*c % 25 == 0:
print(YES)
else:
print(NO) |
s113145247 | p04043 | u171435446 | 1564884490 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 121 | a = list(map(int, input().split()))
a.sort()
if (a[0] == 5 && a[1] == 5 && a[2] == 7):
print("Yes")
else:
print("No") |
s087942165 | p04043 | u171435446 | 1564884179 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | a = map(int, input().split())
a.sort()
if (a[0] == 5 && a[1] == 5 && a[2] == 7):
print("Yes")
else:
print("No")
|
s474213510 | p04043 | u904804404 | 1564872395 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | if [5,5,7] == list(map(int,input().split().sorted())):
print("YES")
else:
print("NO") |
s498131960 | p04043 | u027165539 | 1564842836 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 82 | n, l = map(int, input())
s = sorted([input() for _ in range(N)])
print(''.join(s)) |
s206757872 | p04043 | u257541375 | 1564811271 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | array = [int(i) for i in input().split()]
if sort(array) == [5,5,7]:
print("YES")
else:
print("NO") |
s194926936 | p04043 | u361841553 | 1564784118 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | x = map(int, input().split())
x.sort()
if x[0] == 5 and x[1] == 5 and x[2]== 5:
print("YES")
else:
print("NO") |
s428713417 | p04043 | u361841553 | 1564784077 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | x = map(int(), input().split())
x.sort()
if x[0] == 5 and x[1] == 5 and x[2]== 5:
print("YES")
else:
print("NO") |
s778440204 | p04043 | u227610947 | 1564758874 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | a, b, c = map(int,input.split())
if a == 5 and b == 7 and c == 5:
print('YES')
else:
print('NO')
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.