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
s076932594
p04043
u161483742
1564716381
Python
Python (3.4.3)
py
Runtime Error
17
2940
201
a = "5 5 7" aa = a.split(" ") aa.sort if aa[0] == 5: if aa[1] == 5: if aa[2] == 7: aaa = "a" if aaa == "a": print("OK") else: print("ng")
s595819325
p04043
u982594421
1564478618
Python
Python (3.4.3)
py
Runtime Error
21
3316
141
from collections import Counter abc = input().rstrip() c = COunter(abc) if c['5'] == 2 and c['7'] == 1: print('YES') else: print('NO')
s420748197
p04043
u514894322
1564325347
Python
Python (3.4.3)
py
Runtime Error
17
2940
142
numlist = list(map(int,input().split())) if max(numlist) == 7 and min(numlist) == 5 and sum(sumlist) == 17: print('YES') else: print('NO')
s948520741
p04043
u369338402
1563947888
Python
Python (3.4.3)
py
Runtime Error
17
3060
130
n,l=map(int,input().split()) s=[] res='' for i in range(n): s.append(input()) s.sort() for k in range(n): res+=s[k] print(res)
s985894849
p04043
u408620326
1563844927
Python
Python (3.4.3)
py
Runtime Error
18
2940
90
ABC=iuput() if ABC.count('5')==2 and ABC.count('7')==1: print('YES') else: print('NO')
s307687267
p04043
u921773161
1563664504
Python
Python (3.4.3)
py
Runtime Error
17
2940
109
l = list(map(int,input().split())) if l.count(5) == 2, and l.count(7)==1 : print('YES') else: print('NO')
s780506545
p04043
u502028059
1563650526
Python
Python (3.4.3)
py
Runtime Error
18
2940
141
a, b, c = input().split() abc = sorted([a, b, c]) ans = 'NO' if abc[0] == '5' and abc[1] == '5' and = abc[2] == '7': ans = 'YES' print(ans)
s387073277
p04043
u148781101
1563605437
Python
Python (3.4.3)
py
Runtime Error
18
3188
90
a, b, c = map(int, input().split()) if a * b * c = 175: print("YES") else: print("NO")
s909683256
p04043
u591016708
1563479813
Python
Python (3.4.3)
py
Runtime Error
17
2940
134
input = input().split() count = 0 for num in input: if num == "7": count += 1 if count = 1: print("YES") else: print("NO")
s097172873
p04043
u087129172
1563445445
Python
Python (3.4.3)
py
Runtime Error
17
3060
324
# -*- coding: utf-8 -*- price, K = map(int, input().split()) kirai_data =input().split() #print(set(data)) lst = list(range(price,10001)) for min in lst: shugo = set(kirai_data) & set(list(str(min))) if len(shugo) == 0 : print(min) break else: continue
s073644291
p04043
u087129172
1563445310
Python
Python (3.4.3)
py
Runtime Error
17
3060
324
# -*- coding: utf-8 -*- price, K = map(int, input().split()) kirai_data =input().split() #print(set(data)) lst = list(range(price,10001)) for min in lst: shugo = set(kirai_data) & set(list(str(min))) if len(shugo) == 0 : print(min) break else: continue
s826281505
p04043
u087129172
1563444321
Python
Python (3.4.3)
py
Runtime Error
17
2940
340
# -*- coding: utf-8 -*- price, K = map(int, input().split()) kirai_data =input().split() #print(set(data)) lst = list(range(price,10001)) for min in lst: shugo = set(kirai_data) & set(list(str(min))) if len(shugo) != 0 : continue else: #print(price) print(min) break
s483170031
p04043
u087129172
1563438006
Python
Python (3.4.3)
py
Runtime Error
17
2940
229
# -*- coding: utf-8 -*- number, length = map(int, input().split()) lst = [] for n in range(number): s = input() #print(s) lst.append(s) #print(lst) lst.sort() moji = "" for n in lst: moji += n print(moji)
s491378350
p04043
u087129172
1563431411
Python
Python (3.4.3)
py
Runtime Error
17
2940
206
# -*- coding: utf-8 -*- number, length = map(int, input().split()) lst = [] for n in range(number): input = input() lst.append(input) lst.sort() moji = "" for n in lst: moji += n print(moji)
s665447884
p04043
u797016134
1563426112
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
li = input().split().remove('5') if '7' in li: print('YES') else: print('NO')
s959157191
p04043
u087129172
1563425083
Python
Python (3.4.3)
py
Runtime Error
17
2940
434
#入力した整数が5、7、5であるならばTrueを返す # int,int,int -> True x,y,z = (int(i) for i in input().split()) if x == 7: if y == z and y == 5 : print("YES") else: print("NO") elif y == 7: if x == z and x == 5: print("YES") else: print("NO") elif z == 7: if x == y and x == 5: print("YES") else: print("NO") else: print("NO")
s458129963
p04043
u087129172
1563424444
Python
Python (3.4.3)
py
Runtime Error
17
2940
413
#入力した整数が5、7、5であるならばTrueを返す # int,int,int -> True x,y,z = int(input()) if x == 7: if y == z and y == 5 : print("YES") else: print("NO") elif y == 7: if x == z and x == 5: print("YES") else: print("NO") elif z == 7: if x == y and x == 5: print("YES") else: print("NO") else: print("NO")
s916251174
p04043
u087129172
1563424178
Python
Python (3.4.3)
py
Runtime Error
17
3060
484
#入力した整数が5、7、5であるならばTrueを返す # int,int,int -> True x,y,z = int(input()) def check7(x,y,z): if x == 7: if y == z and y == 5 : print("YES") else: print("NO") elif y == 7: if x == z and x == 5: print("YES") else: print("NO") elif z == 7: if x == y and x == 5: print("YES") else: print("NO") else: print("NO")
s639553013
p04043
u129750996
1563421993
Python
Python (3.4.3)
py
Runtime Error
17
2940
170
A = list(map(int, input().split())) cnt = 0 for i in A: if i != 7 or i !=5: print('NO') else i == 7: cnt += 1 if cnt == 1: print('YES') else: print('NO')
s648548418
p04043
u087129172
1563421575
Python
Python (3.4.3)
py
Runtime Error
17
2940
512
#入力した整数が5、7、5であるならばTrueを返す # int,int,int -> True def check7(x,y,z): if x == 7: if y == z and y == 5 : print("YES") else: print("NO") elif y == 7: if x == z and x == 5: print("YES") else: print("NO") elif z == 7: if x == y and x == 5: print("YES") else: print("NO") else: print("NO") if __name__ == "__main__": check7()
s235859254
p04043
u087129172
1563421489
Python
Python (3.4.3)
py
Runtime Error
17
2940
504
#入力した整数が5、7、5であるならばTrueを返す # int,int,int -> True def check7(x,y,z): if x == 7: if y == z and y == 5 : print("YES") else: print("NO") elif y == 7: if x == z and x == 5: print("YES") else: print("NO") elif z == 7: if x == y and x == 5: print("YES") else: print("NO") else: print("NO") if __name__ == "__main__": check7()
s017096224
p04043
u087129172
1563421360
Python
Python (3.4.3)
py
Runtime Error
17
2940
472
#入力した整数が5、7、5であるならばTrueを返す # int,int,int -> True def check7(x,y,z): if x == 7: if y == z : print("YES") else: print("NO") elif y == 7: if x == z : print("YES") else: print("NO") elif z == 7: if x == y: print("YES") else: print("NO") else: print("NO") if __name__ == "__main__": check7()
s762914015
p04043
u087129172
1563421207
Python
Python (3.4.3)
py
Runtime Error
17
3060
469
#入力した整数が5、7、5であるならばTrueを返す # int,int,int -> True def check7(x,y,z): if x == 7: if y == z : print("YES") else: print("NO") elif y == 7: if x == z : print("YES") else: print("NO") elif z == 7: if x == y: print("YES") else: print("NO") else: print("NO") if __name__ == __main__: check7()
s705679347
p04043
u856947606
1563402369
Python
Python (3.4.3)
py
Runtime Error
17
2940
225
# coding: utf-8 num,num2,num3 = map(int,inpput().split()) if (num == 5 and num2 == 5 and num3 == 7) or (num == 5 and num2 == 7 and num3 == 5) or (num == 7 and num2 == 5 and num3 == 5): print("YES") else: print("NO")
s645956140
p04043
u948524308
1563394821
Python
Python (3.4.3)
py
Runtime Error
17
3060
362
A =int(input()) B = int(input()) C = int(input()) count5 = 0 count7 = 0 if A == 5: count5 = count5 + 1 if A == 7: count7 = count7 + 1 if B == 5: count5 = count5 + 1 if B == 7: count7 = count7 + 1 if C == 5: count5 = count5 + 1 if C == 7: count7 = count7 + 1 if count5 == 2 and count7 == 1: print("YES") else: print("NO")
s327411286
p04043
u948524308
1563394716
Python
Python (3.4.3)
py
Runtime Error
17
3064
347
A = input() B = input() C = input() count5 = 0 count7 = 0 if A == 5: count5 = count5 + 1 if A == 7: count7 = count7 + 1 if B == 5: count5 = count5 + 1 if B == 7: count7 = count7 + 1 if C == 5: count5 = count5 + 1 if C == 7: count7 = count7 + 1 if count5 == 2 and count7 == 1: print("YES") else: print("NO")
s887092573
p04043
u948524308
1563394555
Python
Python (3.4.3)
py
Runtime Error
17
3064
368
A =int( input()) B = int(input()) C = int(input()) count5 = 0 count7 = 0 if A == 5: count5 = count5 + 1 elif A == 7: count7 = count7 + 1 if B == 5: count5 = count5 + 1 elif B == 7: count7 = count7 + 1 if C == 5: count5 = count5 + 1 elif C == 7: count7 = count7 + 1 if count5 == 2 and count7 == 1: print("YES") else: print("NO")
s662979982
p04043
u948524308
1563394264
Python
Python (3.4.3)
py
Runtime Error
17
3064
352
A = input() B = input() C = input() count5 = 0 count7 = 0 if A == 5: count5 = count5 + 1 elif A == 7: count7 = count7 + 1 if B == 5: count5 = count5 + 1 elif B == 7: count7 = count7 + 1 if C == 5: count5 = count5 + 1 elif C == 7: count7 = count7 + 1 if count5 == 2 and count7 == 1: print("YES") else: print("NO")
s655045395
p04043
u948524308
1563393927
Python
Python (3.4.3)
py
Runtime Error
17
3064
364
A = input() B = input() C = input() count5 = 0 count7 = 0 if A == "5": count5 = count5 + 1 elif A == "7": count7 = count7 + 1 if B == "5": count5 = count5 + 1 elif B == "7": count7 = count7 + 1 if C == "5": count5 = count5 + 1 elif C == "7": count7 = count7 + 1 if count5 == 2 and count7 == 1: print("YES") else: print("NO")
s288636552
p04043
u948524308
1563393772
Python
Python (3.4.3)
py
Runtime Error
17
3064
364
A = input() B = input() C = input() count5 = 0 count7 = 0 if A == "5": count5 = count5 + 1 elif A == "7": count7 = count7 + 1 if B == "5": count5 = count5 + 1 elif B == "7": count7 = count7 + 1 if C == "5": count5 = count5 + 1 elif C == "7": count7 = count7 + 1 if count5 == 2 and count7 == 1: print("YES") else: print("NO")
s240964250
p04043
u257332942
1563214972
Python
Python (3.4.3)
py
Runtime Error
17
2940
272
if int(input()) == 5 and int(input()) == 5 and int(input()) == 7: print('YES') elif int(input()) == 5 and int(input()) == 7 and int(input()) == 5: print('YES') elif int(input()) == 7 and int(input()) == 5 and int(input()) == 5: print('YES') else: print('NO')
s102653975
p04043
u423585790
1563046019
Python
PyPy3 (2.4.0)
py
Runtime Error
173
38256
1364
#!/usr/bin/env python3 from collections import defaultdict from collections import deque from heapq import heappush, heappop import sys import math import bisect import random import itertools sys.setrecursionlimit(10**5) stdin = sys.stdin bisect_left = bisect.bisect_left bisect_right = bisect.bisect_right def LI(): return list(map(int, stdin.readline().split())) def LF(): return list(map(float, stdin.readline().split())) def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split())) def II(): return int(stdin.readline()) def IF(): return float(stdin.readline()) def LS(): return list(map(list, stdin.readline().split())) def S(): return list(stdin.readline().rstrip()) def IR(n): return [II() for _ in range(n)] def LIR(n): return [LI() for _ in range(n)] def FR(n): return [IF() for _ in range(n)] def LFR(n): return [LI() for _ in range(n)] def LIR_(n): return [LI_() for _ in range(n)] def SR(n): return [S() for _ in range(n)] def LSR(n): return [LS() for _ in range(n)] mod = 1000000007 inf = float('INF') #A def A(): a = LI() a.sort() if a = [5, 5, 7]: print("YES") else: print("NO") return #B def B(): return #C def C(): return #D def D(): return #E def E(): return #F def F(): return #G def G(): return #H def H(): return #Solve if __name__ == '__main__': A()
s936701391
p04043
u576712004
1562960707
Python
Python (3.4.3)
py
Runtime Error
17
3064
560
from math import * H, W, A, B = list(map(int, input().split())) p = 1000000007 ft = [1] ift = [-1] * (H + W + 1) for i in range(1, H + W + 1): ft.append(ft[i-1] * i % p) def ifac(a): if ift[a] != -1: return ift[a] res = 1 x = ft[a] for i in range(ceil(log2(p-2))): if ((p - 2) >> i) & 1: res *= x % p x *= x % p ift[a] = res return res def com(a, b): return (ft[a] * ifac(b) * ifac(a-b)) % p ans = 0 for i in range(H-A): ans += com(B+i-1, i) * com(W-B+H-i-2, H-i-1) ans %= p print(ans)
s317824786
p04043
u082357333
1562794781
Python
Python (3.4.3)
py
Runtime Error
17
2940
249
# -*- coding: utf-8 -*- a = [int(i) i for input().split()] count_5 = 0 count_7 = 0 for i in a: if i == 5: count_5 += 1 elif i == 7: count_7 += 1 else: continue if count_5 == 2 and count_7 == 1: print("YES") else: print("NO")
s140871250
p04043
u675073679
1562793965
Python
Python (3.4.3)
py
Runtime Error
18
2940
154
nums = list(map(int,input().split()) nums.sort() if nums[0] == 5 and nums[1] == 5 and nums[2] == 7: print("YES") else: print("NO")
s198363940
p04043
u675073679
1562793902
Python
Python (3.4.3)
py
Runtime Error
18
2940
132
nums = list(map(int,input(),split()) nums.sort() if nums[0] == 5 and nums[1] == 5 and nums[2] == 7: print("YES") else: print("NO")
s339181394
p04043
u675073679
1562793810
Python
Python (3.4.3)
py
Runtime Error
17
3064
154
nums = list(map(int,input(),split()) nums.sort() if nums[0] == 5 and nums[1] == 5 and nums[2] == 7: print("YES") else: print("NO")
s285485483
p04043
u456033454
1562375806
Python
PyPy3 (2.4.0)
py
Runtime Error
169
38256
91
print('YES' if (input().split().count('5')==2 and input().split().count('7')==1) else 'NO')
s869243936
p04043
u456033454
1562375770
Python
PyPy3 (2.4.0)
py
Runtime Error
172
38256
89
print('YES' if input().split().count('5')==2 and input().split().count('7')==1 else 'NO')
s782903212
p04043
u093500767
1562123228
Python
Python (3.4.3)
py
Runtime Error
17
2940
147
a = list(map(int, input().split())) for i in a: if i==5: i5+=1 if i==7: i7+=1 if i5==2 and i7==1: print("YES") else: print("NO")
s224090780
p04043
u093500767
1562123050
Python
Python (3.4.3)
py
Runtime Error
18
2940
146
a = list(map(int, input().split())) for i in a: if i==5: i5+=1 elif i==7: i7+=1 if i5==2 & i7==1: print("YES") else: print("NO")
s166480889
p04043
u314050667
1562122955
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
s = list(map(int, input().split()) if s.count(5)==2 and s.count(7)==1: print("YES") else: print("NO")
s020498048
p04043
u265116141
1562077204
Python
Python (3.4.3)
py
Runtime Error
17
2940
83
n,l=map(int,input().split()) t=sorted([input() for i in range(n)]) print(*t,sep="")
s544315077
p04043
u375500286
1561947965
Python
Python (3.4.3)
py
Runtime Error
17
2940
142
s=list(map(int,input().split())) s.sort() if s[0]==5 and s[1]==5 and s[2]==7 : print("YES") else : print("NO")
s466072122
p04043
u375500286
1561947894
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
s=list(map(int,input().split()) s.sort() if s[0]==5 and s[1]==5 and s[2]==7 : print("YES") else : print("NO")
s082666952
p04043
u556589653
1561746002
Python
Python (3.4.3)
py
Runtime Error
18
2940
114
A = llist(map(int,input().split())) if (A.count(5)) == 2 and (A.count(7)) == 1: print("YES") else: print("NO")
s039261363
p04043
u556589653
1561745937
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
A = list(int,input().split()) if (A.count(5)) == 2 and (A.count(7)) == 1: print("YES") else: print("NO")
s147087596
p04043
u239756332
1561598659
Python
Python (3.4.3)
py
Runtime Error
17
2940
88
L = list(map(int(),input().split())) if sum(L)==17: print('YES') else: pritn('NO')
s031008904
p04043
u239756332
1561597652
Python
Python (3.4.3)
py
Runtime Error
18
2940
209
lst = input('3 nums with 2 space(1<=nums<=10):') i = 0 for n in lst: if n>10 or n<1: print('NO') break if n==5: i += 1 elif n==7: i -= 1 if i == 1: print('YES') else: print('NO')
s257834323
p04043
u349091349
1561572272
Python
Python (3.4.3)
py
Runtime Error
18
3060
158
A,B,C=map(int,input().split()) a=len(A) b=len(B) c=len(C) if (a or b or c == 5) and (a or b or c ==7) and (a*b*c ==5*7*5): print('YES') else: print('NO')
s579380432
p04043
u013594089
1561512060
Python
Python (3.4.3)
py
Runtime Error
17
2940
82
a,b,c=map(int,input().split()) if a,b,c == 5,5,7 print("YES") else: print("NO")
s875481695
p04043
u013594089
1561510911
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
a,b,c=map(int,input().split()) if a,b,c == 5,5,7 or a,b,c == 7,5,5 or a,b,c == 5,7,5: print("YES") else: print("NO")
s334537739
p04043
u394153138
1561411908
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
int a = 5 int b = 7 int c = 5 if a = b: print("YES") elif b = c: print("YES") elif c = b: ("YES") else: print("NO")
s269070403
p04043
u471212175
1561334930
Python
Python (3.4.3)
py
Runtime Error
17
2940
202
def X(A,B,C): if A == 5 or A == 7: if B == 5 or B == 7: if C == 5 or C == 7: if A + B + C == 19: return "YES" return "NO" A,B,C = int(input()) print(X(A,B,C))
s566583665
p04043
u775742948
1560992942
Python
Python (3.4.3)
py
Runtime Error
17
2940
141
N = int(input()) L = int(input()) a = [] for i in range(N): a.append(input()) for ele in sorted(a): print(ele, end = '')
s969521286
p04043
u098677768
1560700506
Python
Python (3.4.3)
py
Runtime Error
17
2940
151
i = list(map(int, input().split())) countFive = i.count(5) countSeven = i.count(7) if countFive == 2 & countSeven == 1 print("YES") else print("NO")
s924530914
p04043
u874549552
1560183646
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("".join(s))
s370389900
p04043
u203597140
1560059263
Python
Python (3.4.3)
py
Runtime Error
18
3064
1330
def equal(n, available): return n in available def less(n, available): return n < sorted(available)[0] def greater(n, available): return n > sorted(available, reverse=True)[0] #less(n, available) == True であること def upper_next(n, available): for v in sorted(available): if n < v: return v return 1/0 n_str, _ = [v for v in input().split()] n_s = [0] n_s.extend([int(n_str[i:i+1]) for i in range(len(n_str))]) d_s = [int(v) for v in input().split()] available = set(list(range(10))) - set(d_s) #print("n", n_s, "d", d_s, "u", available) min_available = sorted(available)[0] max_available = sorted(available, reverse=True)[0] ans = [0] ans.extend([min_available] * (len(n_s) - 1)) eq = True for i in range(1, len(n_s)): if eq: if equal(n_s[i], available): ans[i] = n_s[i] continue else: eq = False if less(n_s[i], available): ans[i] = upper_next(n_s[i], available) #残りは最小値詰め break else: for j in range(i - 1, -1, -1): if ans[j] == max_available: ans[j] = min_available else: ans[j] = upper_next(ans[j], available) break break begin = 0 if ans[0] == 0: begin = 1 ans_val = "".join(map(lambda x:str(x), ans[begin:])) print(ans_val)
s902732111
p04043
u569272329
1559935970
Python
Python (3.4.3)
py
Runtime Error
17
2940
272
#include <iostream> using namespace std; int main(){ int A[3]; cin >> A[0] >> A[1] >> A[2]; sort(A, A + 3); if((A[0] == 5) && (A[1] == 5) && (A[2] == 7)) { cout << "YES" << endl; } else { cout << "NO" <<endl; } return 0; }
s586660758
p04043
u881100099
1559927729
Python
Python (3.4.3)
py
Runtime Error
17
2940
90
x=input() y=input() z=input() if (x*y*z=5*5*7): print('true') else: print('False')
s816129084
p04043
u271692916
1559770263
Python
Python (3.4.3)
py
Runtime Error
17
2940
80
X = int(input()) if X ==:[5,5,7],[5,7,5],[7,5,5]: print("yes") eles("no")
s447966731
p04043
u476562059
1559755963
Python
Python (3.4.3)
py
Runtime Error
17
2940
109
n, l = map(int, input().split()) a = [] for x in range(n): a.append(input()) a.sort() print("".join(a))
s866307870
p04043
u476562059
1559755613
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
n, l = map(int,input().split()) a = [] for x in range(n): a.append(input()) a.sort() print("".join(a))
s812416557
p04043
u476562059
1559755540
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
n, l = map(int,input().split()) a = [] for x in range(n): a.append(input()) a.sort() print(""join(a))
s901046023
p04043
u476562059
1559755486
Python
Python (3.4.3)
py
Runtime Error
21
3188
108
n, l = map(int,input().split()) a = [] for x in range(n): a.append(input()) a.sorted() print(''.join(a))
s382671462
p04043
u442068463
1559615308
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
A = list(map(int, input().split())) A =sorted(A) if A[0]=5 and A[1]=5 and A[2]=7: print("YES") else: print("NO")
s764165727
p04043
u442068463
1559615025
Python
Python (3.4.3)
py
Runtime Error
17
2940
110
A = list(map(int, input().split())) if max(A)=7 and mean(A)=5 and min(A)=5: print("YES") else: print("NO")
s363958408
p04043
u442068463
1559614866
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
a,b,c = map(int, input().split()) if max(a,b,c)=7 and mean(a,b,c)=5 and min(a,b,c)=5: print("YES") else: print("NO")
s416435884
p04043
u442068463
1559614789
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
a,b,c=int(input().split()) if max(a,b,c)=7 and mean(a,b,c)=5 and min(a,b,c)=5: print("YES") else: print("NO")
s569411381
p04043
u442068463
1559614668
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
a,b,c=input().split() if max(a,b,c)=7 and mean(a,b,c)=5 and min(a,b,c)=5: print("YES") else: print("NO")
s788729586
p04043
u661655756
1559591771
Python
Python (3.4.3)
py
Runtime Error
17
3060
216
[A,B,C]=[int(input()),int(input()),int(input())] list=[A,B,C] if 5 in list: list.remove(5) if 5 in list: list.remove(5) if 7 in list: list.remove(7) if len(list)==0: print("YES") else: print("NO")
s664389824
p04043
u564060397
1559590890
Python
Python (3.4.3)
py
Runtime Error
17
2940
111
a,b=map(int,input().split()) List=[] for i in range(a): List.append(input()) print("".join(sorted(List)))
s639720233
p04043
u564060397
1559590864
Python
Python (3.4.3)
py
Runtime Error
17
2940
110
,b=map(int,input().split()) List=[] for i in range(a): List.append(input()) print("".join(sorted(List)))
s852665219
p04043
u564060397
1559590595
Python
Python (3.4.3)
py
Runtime Error
17
2940
109
a,b=map(int,input().split()) List=[] for i in range(a): List.append(input) print("".join(sorted(List)))
s501082594
p04043
u564060397
1559590464
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
a,b=map(int,input().split()) List=[] for i in range(a): List.append(input) print("".join(sorted(List)))
s151064906
p04043
u221841077
1559404247
Python
Python (2.7.6)
py
Runtime Error
10
2568
283
seven = 0 five = 0 A,B,C = map(int,input().split()) if A == 7: seven += 1 elif A == 5: five += 1 if B == 7: seven += 1 elif B == 5: five += 1 if C == 7: seven += 1 elif C == 5: five += 1 if seven == 1 or five == 2: print("YES") else: print("NO")
s880220692
p04043
u267970779
1559172871
Python
Python (3.4.3)
py
Runtime Error
16
2940
170
A,B,C=map(int,input().split()) if A==B==5 and C==7; print("YES") elif A==C==5 and B==7; print("YES") elif B==C==5 and A==7; print("YES") else; print("NO")
s627230292
p04043
u267970779
1559172656
Python
Python (3.4.3)
py
Runtime Error
17
2940
170
A,B,C=map(int,input().split()) if A==B==5 and C==7; print("YES") elif A==C==5 and B==7; print("YES") elif B==C==5 and A==7; print("YES") else; print("NO")
s762402940
p04043
u502634014
1559160877
Python
Python (3.4.3)
py
Runtime Error
17
2940
5
if
s237102979
p04043
u284231738
1559087584
Python
Python (3.4.3)
py
Runtime Error
17
3060
355
N,K = list(map(int,input().split())) D = list(map(int,input().split())) over = 0 for x in range(N,10000): for y in str(x): mediation = False for z in D: if int(y) == z: mediation = True break if mediation: break over = x if over!=0: break print(over)
s283356825
p04043
u284231738
1559087403
Python
Python (3.4.3)
py
Runtime Error
17
3060
355
N,K = list(map(int,input().split())) D = list(map(int,input().split())) over = 0 for x in range(N,10000): for y in str(x): mediation = False for z in D: if int(y) == z: mediation = True break if mediation: break over = x if over!=0: break print(over)
s038868242
p04043
u564060397
1558810817
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
a,b=map(int,input().split()) List=[input() for i in range(a)] print("".join(sorted(List)))
s905716405
p04043
u366959492
1558759633
Python
Python (3.4.3)
py
Runtime Error
17
2940
158
a,b,c=input().split() l=[] l.append(len(a)) l.append(len(b)) l.append(len(c)) if l==[5,5,7] or l=[5,7,5] or l=[7,5,5]: print("YES") else: print("NO")
s894445260
p04043
u260509802
1558621764
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
def hantei(A,B,C): if A+B+C = 17: print('YES") else: print('NO')
s075614519
p04043
u706167597
1558327097
Python
Python (3.4.3)
py
Runtime Error
21
3316
127
s, n = map(int,input().split()) a = input() b = input() c = input() ar = [a,b,c] ar.sort() result = ''.join(ar) print(result)
s857873285
p04043
u910295650
1558296882
Python
Python (3.4.3)
py
Runtime Error
17
2940
124
s = input().split() if s.count('5') == 2 and s.count('7') == 1: print('YES') else: print('NO')
s134813397
p04043
u910295650
1558296277
Python
Python (3.4.3)
py
Runtime Error
17
2940
124
s = input().split() if s.count('5') == 2 and s.count('7') == 1: print('YES') else: print('NO')
s650621445
p04043
u961916328
1557868915
Python
Python (3.4.3)
py
Runtime Error
20
3316
135
list1 = list(map(int,input().split())) list1.sort() if list1[0] == 5 and list[1] ==7 and list[2]==7: print("YES") else: print("NO")
s060860097
p04043
u046585946
1557781444
Python
Python (3.4.3)
py
Runtime Error
18
2940
141
a,b,c=map(int,input().split()) if ((a+b==10 and a==5) and c==7) or ((a+b=12 and c==5) and (a==5 or b==5)): print("YES") else: print("NO")
s480953324
p04043
u046585946
1557781390
Python
Python (3.4.3)
py
Runtime Error
17
2940
137
a,b,c=map(int,input().split()) if (a+b==10 and a==5 and c==7) or (a+b=12 and c==5 and (a==5 or b==5)): print("YES") else: print("NO")
s591002768
p04043
u643912307
1557495765
Python
Python (3.4.3)
py
Runtime Error
18
3188
97
a,b,c=map(int,input().split()) if a+b+c==17 and a*b*c==175:  print("YES") else:  print("NO")
s394565225
p04043
u172386990
1557461389
Python
Python (3.4.3)
py
Runtime Error
17
3064
792
import itertools white_num_list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] N, K = map(int, input().split()) black_num_list = list(map(int, input().split())) white_num_list = list(set(white_num_list).difference(set(black_num_list))) num_combination = list(itertools.combinations_with_replacement(white_num_list, len(str(N)))) num_list = [] for num in num_combination: if num[0] == 0: continue num_list.append(int(''.join(map(str, num)))) num_list = sorted(num_list) def price(N, num_list, white_num_list): for num in num_list: if num >= N: return num if 0 in white_num_list: white_num_list.remove(0) placeholder = str(min(white_num_list)) return int(placeholder * (len(str(N)) + 1)) print(price(N, num_list, white_num_list))
s875025301
p04043
u827392300
1557106772
Python
Python (3.4.3)
py
Runtime Error
17
2940
126
if A+B+C==17 : if A==5 and B==5 : print("YES") elif A==5 and B==7 : print("YES") else: print("NO")
s496426913
p04043
u827392300
1557106719
Python
Python (3.4.3)
py
Runtime Error
17
2940
130
if A+B+C==17 : if (A==5 and B==5) : print("YES") elif (A==5 and B==7) : print("YES") else: print("NO")
s156442829
p04043
u827392300
1557106441
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
if A+B+C==17 : if (A==5 and B==5)or(A==5 and B==7) : print("YES") elif: print("NO")
s197662466
p04043
u827392300
1557106289
Python
Python (3.4.3)
py
Runtime Error
17
2940
93
if A+B+C==17 : if (A==5&&B==5)||(A==5&&B==7) : print("YES") else: print("NO")
s872173269
p04043
u827392300
1557106188
Python
Python (3.4.3)
py
Runtime Error
17
2940
102
if A+B+C==17 : if (A==5&&B==5)||(A==5&&B==7) : print("YES") elif: print("NO")
s587601013
p04043
u827392300
1557106021
Python
Python (3.4.3)
py
Runtime Error
17
2940
93
if A+B+C==17 : if (A==5&&B==5)||(A==5&&B==7) : print("YES") elif: print("NO")
s038900835
p04043
u827392300
1557105827
Python
Python (3.4.3)
py
Runtime Error
18
2940
129
A = input() B = input() C = input() if A+B+C==17 : if (A==5&&B==5)||(A==5&&B==7) : print("YES") elif: print("NO")
s193416772
p04043
u534284406
1557088723
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
items = input().split() items= map(int, items) items.sort() if items == [5,5,7]: print('YES') else: print('NO')