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
s118264044
p04043
u319038975
1600906144
Python
Python (3.8.2)
py
Runtime Error
25
8972
192
a = list(map(int,input().split())) num_5 = 0 num_7 = 0 for i in a: if i=="5": num_5 = num_5+1 if i=="7": num_7 = num_7+1 if num_5=2 and num_7=1: print "YES" else: print "NO"
s649845362
p04043
u097700948
1600638563
Python
Python (3.8.2)
py
Runtime Error
19
9088
206
A, B, C = map(int, input()) num5 = 0 num7 = 0 ans = 'NO' for num in [A, B, C]: if num == 5: num5+=1 elif num == 7: num7+=1 else: break if num5 ==2 and num7 == 1: ans = 'YES' print(ans)
s557456891
p04043
u843060713
1600400454
Python
Python (3.8.2)
py
Runtime Error
22
8952
212
x = input().split() fn = 0 sn = 0 for i in range(len(x)): if int(x[i]) == 5: fn += 1 elif int(x[i]) == 7: sn += 1 if fn = 2: if sn = 5: print("YES") else: print("NO") else: print("NO")
s061002885
p04043
u843060713
1600400414
Python
Python (3.8.2)
py
Runtime Error
22
8932
212
x = input().stlip() fn = 0 sn = 0 for i in range(len(x)): if int(x[i]) == 5: fn += 1 elif int(x[i]) == 7: sn += 1 if fn = 2: if sn = 5: print("YES") else: print("NO") else: print("NO")
s008791833
p04043
u737397387
1600220060
Python
Python (3.8.2)
py
Runtime Error
23
8816
160
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")
s075314970
p04043
u530332855
1600209769
Python
Python (3.8.2)
py
Runtime Error
23
8820
172
# -*- coding: utf-8 -*- if __name__ == "__main__": str_sum = sum([map(int, input().split())]) if str_sum == 17: print('YES') else: print('NO')
s969204923
p04043
u794521826
1600061780
Python
Python (3.8.2)
py
Runtime Error
25
8976
233
n, _ = map(int, input().split()) d = list(input().split()) def validate(strNum): for i in strNum: if i in d: return print(strNum) exit() for i in range(0, 1000000): validate(str(n)) n += 1
s005349830
p04043
u794521826
1600061696
Python
Python (3.8.2)
py
Runtime Error
25
8972
243
n, k = map(int, input().split()) d = list(input().split()) def validate(strNum): for i in strNum: if i in d: return False print(strNum) exit() for i in range(0, 10001): _ = validate(str(n)) n += 1
s675922082
p04043
u630211216
1599792392
Python
Python (3.8.2)
py
Runtime Error
22
8996
99
A=list(map(int,input().split())) A.sorted() if A==[5,5,7]: print("YES") else: print("NO")
s716746251
p04043
u630211216
1599792327
Python
Python (3.8.2)
py
Runtime Error
23
8992
96
A=list(map(int,input().split())) sort(A) if A==[5,5,7]: print("YES") else: print("NO")
s738381469
p04043
u417309772
1599645420
Python
Python (3.8.2)
py
Runtime Error
24
8944
417
P = 10**9+7 fac = [1] ifac = [1] ff = 1 for i in range(1,200001): ff *= i ff %= p fac.append(ff) ifac.append(pow(ff, p-2, p)) def ncr(n, r, p): return (fac[n] * ifac[r] % p * ifac[n-r] % p) h,w,a,b = map(int,input().split()) s = 0 nC = b-1 kC = 0 nD = w-b-1+h-1 kD = h-1 for i in range(h-a): C = ncr(nC, kC, P) D = ncr(nD, kD, P) s = (s + C * D) % P nC += 1 kC += 1 kD -= 1 nD -= 1 print(s)
s534170854
p04043
u053535689
1599618726
Python
Python (3.8.2)
py
Runtime Error
24
9016
225
# 042a def atc_042a(input_value: str) -> str: ABC = input_value.split(" ") if ABC.count("5") == 2 and ABC.count("7") == 1: return "YES" return "NO" Input_value_1 = input() print(atc_042a(input_value_1))
s430142587
p04043
u708211626
1599330534
Python
Python (3.8.2)
py
Runtime Error
20
9120
106
a,b=map(int,input().split()) c=[] for i in range(a): c.append(input()) d=sorted(c) print(''.join(d))
s018739781
p04043
u174040991
1599243288
Python
Python (3.8.2)
py
Runtime Error
23
8976
153
def test(): arr = input() arr = [int(i) for i in arr] arr = sorted(arr) if arr==[5, 5, 7]: print("YES") else: print("NO") test()
s257254709
p04043
u973069173
1599232448
Python
Python (3.8.2)
py
Runtime Error
20
8948
201
n, k = map(int, input().split()) D = set(map(int, input().split())) for ans in range(n,9999): for c in str(ans): if int(c) in D: break else: print(ans) break
s810720476
p04043
u918422508
1598938616
Python
Python (3.8.2)
py
Runtime Error
20
9028
103
abc=map(int,input().split()) if abc.count(5)==5 and abc.count(7)==1: print("YES") else: print("NO")
s158149266
p04043
u918422508
1598938374
Python
Python (3.8.2)
py
Runtime Error
20
8852
99
a,b,c=map(int,input().split()) if((a*b*c)%7=0)and((a*b*c)/7=25): print("YES") else: print("NO")
s278039713
p04043
u904945034
1598926154
Python
Python (3.8.2)
py
Runtime Error
23
8964
357
def iroha(a,b,c): haiku = [] haiku.append(len(a)) haiku.append(len(b)) haiku.append(len(c)) if sum(haiku) == 17: if max(haiku) == 7: if min(haiku) == 5: return "Yes" else: return "No" else: return "No" else: return "No" print(iroha(a,b,c))
s467351329
p04043
u816631826
1598861435
Python
PyPy3 (7.3.0)
py
Runtime Error
90
74596
240
#include <stdio.h> int main() { int A,B,C,d; scanf("%d %d %d",&A,&B,&C); if (A&&B==5&&C==7) printf("YES\n"); else if (A&&C==5&&B==7) printf("YES\n"); else if(A==7&&B&&C==5) printf("YES\n"); else printf("NO\n"); return 0; }
s876465434
p04043
u306412379
1598831436
Python
Python (3.8.2)
py
Runtime Error
25
9156
90
N, L = map(int, input().split()) S = sorted([input() for i in range(N)]) print(''.join(S))
s754528169
p04043
u210545407
1598829335
Python
Python (3.8.2)
py
Runtime Error
31
8960
129
A, B, C=list(map(int, input().split(" ")) if [A, B, C].count(5)==2 and [A, B, C].count(7)==1: print('Yes') else: print('No'))
s328796732
p04043
u705418271
1598733706
Python
Python (3.8.2)
py
Runtime Error
23
9012
162
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 amd c==7: print("YES") else: print('NO')
s046529073
p04043
u353919145
1598670782
Python
Python (3.8.2)
py
Runtime Error
29
9068
201
A=int(input("Enter A:")) B=int(input("Enter B:")) C=int(input("Enter C:")) if((A==5 and B==5 and C==7) or (A==5 and C==5 and B==7) or (B==5 and C ==5 and A==7)): print("YES") else: print("NO")
s147632012
p04043
u485349322
1598665704
Python
Python (3.8.2)
py
Runtime Error
20
8852
94
A,B,C=map(int,input().sprit()) if sorted[A,B,C]=[5,5,7]: print("YES") else: print("NO")
s592834700
p04043
u863370423
1598652586
Python
Python (3.8.2)
py
Runtime Error
22
9176
193
A=int(input("Enter A:")) B=int(input("Enter B:")) C=int(input("Enter C:")) if((A==5 or B==5 or C==7) and(A==5 or C==5 or B==7) and(B==5 or C==5 or A==7)): print("YES") else: print("NO")
s257067017
p04043
u863370423
1598650008
Python
Python (3.8.2)
py
Runtime Error
20
9060
192
A=int(input("Enter A:")) B=int(input("Enter B:")) C=int(input("Enter C:")) if ((A==5 or B==5 or C==7) and(A==5 or C==5 or B==7) and(B==5 or C==5 or A==7)): print("Yes") else: print("No")
s742235046
p04043
u802209216
1598635595
Python
Python (3.8.2)
py
Runtime Error
19
8956
115
A=int(input()) B=int(input()) C=int(input()) if (A+B+C==17&&A,B,C==5 and 7): print("yes") else: print("no")
s573269758
p04043
u668271522
1598393198
Python
Python (3.8.2)
py
Runtime Error
23
9160
187
N, K = map(int, input().split()) S = set(input().split()) while True: L = list(str(N)) for i in L: if i in S: break else: break N += 1 print(N)
s154423310
p04043
u997134361
1598212132
Python
Python (3.8.2)
py
Runtime Error
28
8816
202
a = map(int, input().split()) success_cases = [(a[0], a[1], a[2]), (a[1], a[2], a[0]), a[2], a[0], a[1])] for c in success_cases: if c == (5,7,5): print("YES") return print("NO")
s188763657
p04043
u864767064
1598211359
Python
PyPy3 (7.3.0)
py
Runtime Error
97
74600
93
a, b, c = input(int()) if a, b, c == 5 & a, b, c = 7: print("Yes") else: print("No")
s190088853
p04043
u814886720
1597934960
Python
Python (3.8.2)
py
Runtime Error
22
9108
99
A=int(input()) B=int(input()) C=int(input()) D=A+B+C if D==17: print('YES') else: print('NO')
s731095246
p04043
u814886720
1597933319
Python
Python (3.8.2)
py
Runtime Error
27
8820
80
1. s = input() print("YES" if s.count("5") == 2 and s.count("7") == 1 else "NO")
s928461909
p04043
u814886720
1597932434
Python
Python (3.8.2)
py
Runtime Error
24
8944
98
A=int(input(A)) B=int(input(B)) C=int(input(C)) D=A+B+C if D==17: print(YES) else: print(NO)
s701440487
p04043
u051237313
1597810316
Python
Python (3.8.2)
py
Runtime Error
20
8960
193
# list に入力を格納 list = list(int, input().split()) # 小さい順に並び替え list.sort() if list[0] == 5 and list[1] == 5 and list[2] == 7: print('Yes') else: print('No')
s020969186
p04043
u051237313
1597810250
Python
Python (3.8.2)
py
Runtime Error
25
9052
198
# list に入力を格納 list = list(map(int, input().split())) # 小さい順に並び替え list.sort() if list[0] == 5 and list[1] == 5 and list[7] == 7: print('Yes') else: print('No')
s877200465
p04043
u051237313
1597810201
Python
Python (3.8.2)
py
Runtime Error
25
9032
139
list = list(int, input().split()) list.sort() if list[0] == 5 and list[1] == 5 and list[7] == 7: print('Yes') else: print('No')
s156010118
p04043
u051237313
1597810158
Python
Python (3.8.2)
py
Runtime Error
29
9092
193
# list に入力を格納 list = list(int, input().split()) # 小さい順に並び替え list.sort() if list[0] == 5 and list[1] == 5 and list[7] == 7: print('Yes') else: print('No')
s501462542
p04043
u776660877
1597343973
Python
Python (3.8.2)
py
Runtime Error
24
8972
148
if(a==5 & b==7 & c==5): print('yes') elif(a==7 & b==5 & c==5): print('yes') elif(a==5 & b==5 & c==7): print('yes') else: print('no')
s032576559
p04043
u468972478
1597258616
Python
Python (3.8.2)
py
Runtime Error
20
9060
117
nums = map(int, input().split()) if nums.count(5) == 2 and nums.count(7) == 1: print("YES") else: print("NO")
s769899490
p04043
u066869486
1597200358
Python
Python (3.8.2)
py
Runtime Error
25
9100
131
n,l = map(int,input().split()) string_list=[input() for i in range(n)] string_list.sort() for X in string_list: print(X, end="")
s740911219
p04043
u468972478
1597193576
Python
Python (3.8.2)
py
Runtime Error
25
8912
116
nums = map(int, input().split(" ")) if nums.count(5) == 2 and nums.count(7) == 1: print("YES") else: print("NO")
s323434168
p04043
u208120643
1597162644
Python
Python (3.8.2)
py
Runtime Error
19
9172
240
A = int(input()) B = int(input()) C = int(input()) if (A+B+C == 17): if (A*B*C == 175): if(A*B+B*C+C*A == 95): print("Yes") else: print("No") else: print("No") else: print("No")
s049761686
p04043
u208120643
1597162338
Python
Python (3.8.2)
py
Runtime Error
26
9108
165
A = int(input()) B = int(input()) C = int(input()) if (A+B+C == 15): if (A*B*C==175): print("Yes") else: print("No") else: print("No")
s816612499
p04043
u208120643
1597161709
Python
Python (3.8.2)
py
Runtime Error
24
9180
164
A = int(input()) B = int(input()) C = int(input()) if (A+B+C == 15): if (A*B*C==175): print("Yes") else: print("No") else: print("No")
s457896567
p04043
u592743763
1597124600
Python
Python (3.8.2)
py
Runtime Error
24
9124
188
L=input().split() A,B,C=int(L[0]),int(L[1]),int(L[2]) X=set([5,7]) ans = [] for i in range(len(X)): ans.append([A,B,C].count(X[i])) if ans == [2,1]: print("YES") else: print("NO")
s174637486
p04043
u629607744
1597032982
Python
Python (3.8.2)
py
Runtime Error
28
8812
163
a,b,c = map(int,input().split()) if a == 5 and b == 7 and c == 7) or (a == 7 and b == 5 and c == 7) or (a == 7 and b == 7 c == 5): print("YES") else: print("NO")
s688466594
p04043
u074220993
1596989174
Python
Python (3.8.2)
py
Runtime Error
21
9036
253
A = input() B = input() C = input() L = [A, B, C] for x in L: if len(x) == 7: L.remove(x) for y in L: if len(y) != 5: break else: print("YES") break else: print("NO")
s123748706
p04043
u074220993
1596988916
Python
Python (3.8.2)
py
Runtime Error
21
9108
253
A = input() B = input() C = input() L = [A, B, C] for x in L: if len(x) == 7: L.remove(x) for y in L: if len(y) != 5: break else: print("YES") break else: print("NO")
s390629549
p04043
u274615057
1596945410
Python
Python (3.8.2)
py
Runtime Error
25
9164
169
def main(): a, b, c = map(int, input().split()) if sum(a, b, c) == 17: print('YES') else: print('NO') if __name__ == "__main__": main()
s980703818
p04043
u552738814
1596756251
Python
Python (3.8.2)
py
Runtime Error
18
8924
213
list = list(map(int,input().split())) five = 0 seven = 0 for i in list: if i == 5: five += 1 elif i == 7: seven += 1 else: pass if seven == 1 and five == 2: print(TRUE) else: print(NO)
s473255218
p04043
u830661255
1596674456
Python
Python (3.8.2)
py
Runtime Error
22
9068
84
n,l=map(int,input().split()) s=sorted([input() for i in range(n)]) print("".join(s))
s531294776
p04043
u522686706
1596585450
Python
PyPy3 (7.3.0)
py
Runtime Error
85
68676
163
lst = list(map(int,input().split())) for i in lst: ct = 0 if i == 5: ct += 1 elif i == 7: ct += 1 if ct == 3: return "YES" else: return "NO"
s432669392
p04043
u226779434
1596546557
Python
Python (3.8.2)
py
Runtime Error
23
9148
104
a =list(map(int,input().split())) if a+b+c ==19 and a.count("7") ==2: print("Yes") else: print("No")
s585127916
p04043
u980503157
1596421107
Python
Python (3.8.2)
py
Runtime Error
28
9036
118
a = int(input()) b = int(input()) c = int(input()) if a>b or b>c or a>c or a>b: print("NO") else: print("YES")
s307484788
p04043
u841919141
1596135413
Python
Python (3.8.2)
py
Runtime Error
22
8836
86
S = int(input()) if S.count(5) == 2 && S.count(7): print("YES") else: print("NO")
s126215273
p04043
u915309968
1596046982
Python
Python (3.8.2)
py
Runtime Error
26
8988
185
def test(): x=input() x=x.split() if x =['5','5','7']: print("YES") elif x =['5','7','5']: print("YES") elif x =['7','5','5']: print("YES") else: print("NO")
s332700858
p04043
u957799665
1595991440
Python
Python (3.8.2)
py
Runtime Error
21
9116
495
i = 0 k_n = [] k_n_all = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] p_price, k_number = map(int, input().split()) k_n = map(int, input().split()) result_number = list(set(k_n_all) - set(k_n)) result_price = p_price while True: x = 0 y = 0 z = list(map(int, str(result_price))) while x < len(z): if z[x] in result_number: y += 0 else: y += 1 x += 1 if y == 0: print(result_price) break else: result_price += 1
s505054122
p04043
u957799665
1595991301
Python
Python (3.8.2)
py
Runtime Error
20
9004
495
i = 0 k_n = [] k_n_all = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] p_price, k_number = map(int, input().split()) k_n = map(int, input().split()) result_number = list(set(k_n_all) - set(k_n)) result_price = p_price while True: x = 0 y = 0 z = list(map(int, str(result_price))) while x < len(z): if z[x] in result_number: y += 0 else: y += 1 x += 1 if y == 0: print(result_price) break else: result_price += 1
s584032102
p04043
u083184913
1595881116
Python
Python (3.8.2)
py
Runtime Error
20
9092
109
val1=list(map(int,input().split())) val2=[input() for i in range(val1[0])] val2.sort() print("".join(val2))
s177801713
p04043
u083184913
1595880891
Python
Python (3.8.2)
py
Runtime Error
23
9060
108
val1=list(map(int,input().split())) val2=[input() for i in range(val1[0])] val2.sort() print("".join(val2))
s611815313
p04043
u980503157
1595870239
Python
Python (3.8.2)
py
Runtime Error
26
8812
93
s = input() s = s.split() s.sort() if s = ["5","5","7"]: print("YES") else: print("NO")
s011417029
p04043
u045793300
1595684147
Python
Python (3.8.2)
py
Runtime Error
24
8964
108
s = map(int(input().split())) if s.count('7') == 1 and s.count('5') == 2: print('YES') else: print('NO')
s376162228
p04043
u045793300
1595683752
Python
Python (3.8.2)
py
Runtime Error
28
8996
106
a, b, c = map(int(input().split())) if count(7) == 1 and count(5) == 2: print('YES') else: print('NO')
s459207311
p04043
u000644874
1595621541
Python
Python (3.8.2)
py
Runtime Error
26
9140
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)
s019555455
p04043
u000644874
1595620690
Python
Python (3.8.2)
py
Runtime Error
25
8872
108
a,b,c = sorted(map(int, input().split())) if (a+b+c==17)&(a==b)&(c==7): return("YES") else: return("NO")
s211401493
p04043
u637117687
1595462038
Python
Python (3.8.2)
py
Runtime Error
25
8984
145
def main(): 1st = input() 1st = 1st.split() 1st.sort() if x == ["5", "5", "7"]: print("YES") else: print("NO") main()
s526486725
p04043
u414920281
1595341925
Python
Python (3.8.2)
py
Runtime Error
19
9036
121
abc=list(map(int,input().split())) abc.sort() if a[0]==5 and a[1]==5 and a[2]==7: print("YES") exit() print("NO")
s489737343
p04043
u991604406
1594767952
Python
Python (3.8.2)
py
Runtime Error
22
9048
113
n, l = map(int, input().split()) s = [] for _ in range(n): s.append(input()) s = sorted(s) print(''.join(s))
s839397582
p04043
u113255362
1594611667
Python
Python (3.8.2)
py
Runtime Error
23
9064
153
A,B,C = int(input()) res = "NO" if A == 5 or A == 7: if B == 5 or B == 7: if C == 5 or C == 7: if A+B+C == 17: res = "YES" print(res)
s405860257
p04043
u328751895
1594607257
Python
Python (3.8.2)
py
Runtime Error
31
8900
395
clause_list = list(map(int, input().split())) for index, clause in enumerate(clause_list): if clause = 5: clause_list.pop(index) break for index, clause in enumerate(clause_list): if clause = 7: clause_list.pop(index) break for index, clause in enumerate(clause_list): if clause = 5: clause_list.pop(index) break print('YES' if len(clause_list) == 0 else 'NO')
s146945542
p04043
u328751895
1594607192
Python
Python (3.8.2)
py
Runtime Error
24
8956
398
clause_list = list(map(int, input())) for index, clause in enumerate(clause_list): if clause = 5: clause_list.pop(index) break for index, clause in enumerate(clause_list): if clause = 7: clause_list.pop(index) break for index, clause in enumerate(clause_list): if clause = 5: clause_list.pop(index) break print('YES' if len(clause_list) == 0 else 'NO')
s222397154
p04043
u112065131
1594592877
Python
Python (3.8.2)
py
Runtime Error
20
8924
289
l = list(map(int, input().split())) counter5 = 0 counter7 = 0 for num in l: if num == 5: counter5+=1 if num == 7: counter7+=1 if counter5 == 2 and counter7 == 1: print("Yes") else: print("No")
s291946795
p04043
u112065131
1594592352
Python
Python (3.8.2)
py
Runtime Error
21
8672
310
input = list(map(int, input().split())) print(input) counter5 = 0 counter7 = 0 for num in input: if num == 5: counter5+=1 if num == 7: counter7+=1 if counter5 == 2 and counter7 == 1: print("Yes") else: print("No")
s818200635
p04043
u112065131
1594592229
Python
Python (3.8.2)
py
Runtime Error
30
9016
413
# -*- coding: utf-8 -*- def main(): # input = "5 7 7" input = list(map(int, input().split())) print(input) counter5 = 0 counter7 = 0 for num in input: if num == 5: counter5+=1 if num == 7: counter7+=1 if counter5 == 2 and counter7 == 1: print("Yes") else: print("No") if __name__ == "__main__": main()
s553232050
p04043
u934940582
1594395297
Python
Python (3.8.2)
py
Runtime Error
21
8876
131
input_line = input() haiku = input_line(" ") for i in haiku: if i != 5 and i != 7: print("NO") else: print("YES")
s711657154
p04043
u551857719
1594050895
Python
Python (3.8.2)
py
Runtime Error
19
8944
234
#!/usr/bin/python # -*- coding: UTF-8 -*- import sys def input(): return sys.stdin.readline().strip() def _main(): input() s = sorted(list(input().split())) print("".join(s)) if __name__ == "__main__": _main()
s829532827
p04043
u799428010
1593890387
Python
Python (3.8.2)
py
Runtime Error
21
8884
63
N=input() if N in '575' print('YES') else : print('NO')
s654944161
p04043
u845982808
1593825079
Python
Python (3.8.2)
py
Runtime Error
19
8924
89
a = input().split() b = input().split() if a == b: print("yes") else: print("no")
s581145342
p04043
u845982808
1593823714
Python
Python (3.8.2)
py
Runtime Error
25
9000
109
a = map(int, input().split()) b = map(int, input().split()) if a == b: print("yes") else: print("no")
s279103648
p04043
u845982808
1593823317
Python
Python (3.8.2)
py
Runtime Error
31
9092
82
a, b = map(int, input().split()) if a == b: print("yes") else: print("no")
s823412162
p04043
u487332991
1593720914
Python
PyPy3 (7.3.0)
py
Runtime Error
97
74768
258
A = int(input()) B = int(input()) B = int(input()) b_5 = 0 b_7 = 0 if A == 5: b_5 += 1 elif A == 7: b_7 += 1 if B == 5: b_5 +=1 elif B==7: b_7 += 1 if C==5: b_5 +=1 elif C==7: b_7 += 1 if b_5 == 2 and b_7 == 1: print("YES") else: print("NO")
s369748779
p04043
u487332991
1593720812
Python
PyPy3 (7.3.0)
py
Runtime Error
97
74752
241
A = input() B = input() B = input() b_5 =0 b_7=0 if A == 5: b_5 += 1 elif A == 7: b_7 += 1 if B == 5: b_5 +=1 elif B==7: b_7 += 1 if C==5: b_5 +=1 elif C==7: b_7 += 1 if b_5 == 2 and b_7 == 1: print("YES") else: print("NO")
s042464143
p04043
u770558697
1593656166
Python
Python (3.8.2)
py
Runtime Error
20
8768
123
a,b,c = map(int, input().split()) if a,b,c == 5,5,7 or a,b,c == 5,7,5 or a,b,c == 7,5,5: print("YES") else: print("NO")
s775127694
p04043
u333591669
1593651440
Python
Python (3.8.2)
py
Runtime Error
23
9032
214
def haiku(): a=int(input()) b=int(input()) c=int(input()) x=[a,b,c] if x==[5,7,5] or x==[5,5,7] or x==[7,5,5] : print('yes') else: print('no') haiku()
s021841369
p04043
u809819902
1593564614
Python
Python (3.8.2)
py
Runtime Error
22
9080
34
n = int(input()) print(n*(n+1)//2)
s422096951
p04043
u078276601
1593456004
Python
Python (3.8.2)
py
Runtime Error
20
8976
354
a,b,c = map(int, input().split()) if len(a) == 7: if len(b) == 5 and len(c) == 5: print("Yes") else: print("No") if len(b) == 7: if len(a) == 5 and len(c) == 5: print("Yes") else: print("No") if len(c) == 7: if len(a) == 5 and len(b) == 5: print("Yes") else: print("No")
s214468460
p04043
u279005807
1593388381
Python
Python (3.8.2)
py
Runtime Error
25
9116
623
n, k = (input().split()) n = list(map(int, n)); dSet = set(map(int, input().split())) okList = [i for i in range(10) if i not in dSet] i = len(n) while i >= 0: i -= 1 if n[i] in okList: continue for y in okList: if n[i] < y: n[i] = y j = i+1 while j < len(n): n[j] = okList[0] j += 1 break else: if i - 1 < 0: n = [0] + n i += 1 n[i - 1] += 1 j = i while j < len(n): n[j] = okList[0] j += 1 print(int("".join(list(map(str, n)))))
s105504565
p04043
u785354231
1593240378
Python
Python (3.8.2)
py
Runtime Error
22
9048
188
data = input().split() seven = 0 five = 0 for i in range(data): if int(i) == 7: seven += 1 elif int(i) == 5: five +=1 if seven == 1 and five == 2: print('YES') else: print('NO')
s888844946
p04043
u552738814
1593193832
Python
Python (3.8.2)
py
Runtime Error
18
9112
161
n,l = map(int,input().split()) list = [] for i in range(n): word = input() list.append(word) list_connect = "".join(sorted(list)) print(list_connect)
s138193440
p04043
u552738814
1593193772
Python
Python (3.8.2)
py
Runtime Error
24
9024
162
n,l = map(int,input().split()) list = [] for i in range(n): word = input() list.append(word) list_connect = "".join(sorted(list)) print(list_connect)
s003735009
p04043
u552738814
1593193648
Python
Python (3.8.2)
py
Runtime Error
28
9024
161
n,l = map(int,input().split()) list = [] for i in range(n): word = input() list.append(word) list_connect = "".join(sorted(list)) print(list_connect)
s513099592
p04043
u867195562
1593187013
Python
Python (3.8.2)
py
Runtime Error
20
8972
37
l = [A, B, C] for i in l: print(i)
s994508311
p04043
u697615293
1593016661
Python
Python (3.8.2)
py
Runtime Error
20
9036
163
from sys import stdin A,B,C = [int(x) for x in stdin.realine().rstrip().split()] if A+B+C == 17 and A>=5 and B>=5 and C>=5: print("YES") else: print("NO")
s490837017
p04043
u697615293
1593016239
Python
Python (3.8.2)
py
Runtime Error
21
9068
135
A = int(input()) B = int(input()) C = int(input()) if A+B+C == 17 and A >= 5 and B >= 5 and C >= 5: print("YES") else: print("NO")
s781513145
p04043
u820195841
1592936153
Python
Python (3.8.2)
py
Runtime Error
21
9016
123
stdin << A, B, C lst = [A, B, C] sl = sort(lst) if sl[0] == 5 && sl[1] == 5 && sl[2] == 7 print('YES') else print('NO')
s176433978
p04043
u710398282
1592926096
Python
Python (3.8.2)
py
Runtime Error
25
9072
173
a, b, c = [int(3) for 3 in input().split() ] mylist = [5, 7] if ( a in mylist and b in mylist and c in mylist and a + b + c == 17 ): print("YES") else: print("NO")
s076227002
p04043
u124063060
1592879806
Python
Python (3.8.2)
py
Runtime Error
22
9164
139
num = list(map(int, input().split())) num = num.sorted if(num[0]==5 and num[1]==5 and num[2] == 7): print("YES") else: print("NO")
s098515670
p04043
u793430793
1592800926
Python
Python (3.8.2)
py
Runtime Error
24
8816
116
#ABC042B N,L=map(int,input().split()) a=[] for i in range(N) a.append(input()) a.sort() print(''.join(a))
s134447825
p04043
u793430793
1592800903
Python
Python (3.8.2)
py
Runtime Error
29
8872
116
#ABC042B N,L=map(int,input().split()) a=[] for i in range(n) a.append(input()) a.sort() print(''.join(a))
s762234134
p04043
u706414019
1592732406
Python
Python (3.8.2)
py
Runtime Error
22
8896
83
n,l=map(int,input().split()) s=sorted([input() for i in range(n)]) print(*s,sep="")