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
s221137895
p04043
u306664745
1556875011
Python
Python (3.4.3)
py
Runtime Error
17
2940
99
a, b, c= map(int, input().split()) if a+b+c==17 && a*b*c==175: print("YES") else: print("NO")
s767171516
p04043
u871374729
1556835910
Python
Python (3.4.3)
py
Runtime Error
17
2940
365
#include <bits/stdc++.h> using namespace std; int main() { vector<int> V(3); scanf("%d %d %d", &V[0], &V[1], &V[2]); int five = 0; int seven = 0; for (int v : V) { if (v == 5) { five++; } else if (v == 7) { seven++; } } if (five == 2 && seven == 1) { printf("YES"); } else { printf("NO"); } }
s125043104
p04043
u592248346
1556819648
Python
Python (3.4.3)
py
Runtime Error
17
2940
271
#include <stdio.h> int main(void){ // Your code here! int a,b,c; int i,cnt=0; scanf("%d%d%d",&a,&b,&c); if(a==5) cnt+=1; if(b==5) cnt+=1; if(c==5) cnt+=1; if(a+b+c==17 && cnt==2) printf("YES\n"); else printf("NO\n"); }
s996070907
p04043
u432805419
1556672003
Python
Python (3.4.3)
py
Runtime Error
18
2940
120
a = list(map(int,input().split())) a.sort() if a[0] == 5 and a[1] == 5 amd a[2] == 7: print("YES") else: print("NO")
s145469525
p04043
u507116804
1556638211
Python
Python (3.4.3)
py
Runtime Error
16
2940
94
n=input().split() if a.count("5")==2 and a.count("7")==1: print("YES") else: print("NO")
s517491981
p04043
u507116804
1556637827
Python
Python (3.4.3)
py
Runtime Error
17
2940
129
a=list(map(int,input().split())) if a.count("5")==2 and a.count("7")==1: print("YES") else: print("NO")
s180932806
p04043
u507116804
1556596206
Python
Python (3.4.3)
py
Runtime Error
17
2940
117
a =map(int, [input() for i in range(3)]) if a.count("5")==2 and a.count("7")==1: print("YES") else: print("NO")
s143882394
p04043
u507116804
1556595791
Python
Python (3.4.3)
py
Runtime Error
17
2940
126
if input().count("5")==2 and input().count("7")==1: print("YES") else: print("NO")
s488686273
p04043
u507116804
1556595689
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
if input().count("5")==2,input().count("7")==1: print("YES") else: print("NO")
s606786917
p04043
u507116804
1556595633
Python
Python (3.4.3)
py
Runtime Error
17
2940
161
a,b,c=map(int, [input() for i in range(3)] if input().count("5")==2,input().count("7")==1: print("YES") else: print("NO")
s351235589
p04043
u507116804
1556595560
Python
Python (3.4.3)
py
Runtime Error
17
2940
141
a,b,c=map(int, [input() for i in range(3)] if input().count("5")==2,input().count("7")==1: print("YES") else print("NO")
s131147468
p04043
u264625952
1556588311
Python
Python (3.4.3)
py
Runtime Error
17
2940
125
L = [int(i) for i in input().split()]< < if (L.count(5) == 2 and L.count(7) == 1):< print("YES")< else:< print("NO")<
s081756829
p04043
u589381719
1556499994
Python
Python (3.4.3)
py
Runtime Error
17
3064
468
N,_ = map(str,input().split()) lists = [0,1,2,3,4,5,6,7,8,9] s=list(map(int,input().split())) price="" flg=False for i in s: lists.remove(i) for i in N: for j,n in enumerate(lists): if int(i) <= int(j): price+=str(j) break if len(lists)==n: price+=str(lists[0]) flg=True #先頭0の場合 if lists[0]==0: lists.remove(0) #繰り上がりの場合 if flg: price=str(lists[0])+price print(price)
s315260892
p04043
u821432765
1556466298
Python
Python (3.4.3)
py
Runtime Error
17
2940
90
l=list(map(int,input().split())) if l.sort() =[5,5,7]: print("YES") else: print("NO")
s970540050
p04043
u733337827
1556394191
Python
Python (3.4.3)
py
Runtime Error
17
2940
171
N, _ = map(int, input().strip().split()) D = input().strip().split() for ans in range(N, 100000): if len(set(str(ans)) & set(D)) == 0: print(ans) break
s779694305
p04043
u732870425
1556392638
Python
Python (3.4.3)
py
Runtime Error
17
2940
76
li=list(map(int,input().split())) print("YES" li.sort()==[5,5,7] else "NO")
s163623919
p04043
u732870425
1556392597
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
li=map(int,input().split()) print("YES" li.sort()==[5,5,7] else "NO")
s987560218
p04043
u733337827
1556388716
Python
Python (3.4.3)
py
Runtime Error
21
3316
218
N, K = map(int, input().split()) D = input().split() ans = N for i in range(N, 10000): for x in str(ans): if x in D: ans += 1 break; if ans == i: print(ans) break
s778147921
p04043
u733337827
1556388384
Python
Python (3.4.3)
py
Runtime Error
17
2940
212
N, K = map(int, input().split()) D = input().split() ans = N for i in range(N, 10000): for x in str(ans): if x in D: ans += 1 break; else: print(ans) exit()
s086113209
p04043
u589381719
1556306473
Python
Python (3.4.3)
py
Runtime Error
18
2940
115
num = list(map(input().split(""))) sums=0 for i in num: sums+=i if sums ==17: print("YES") else: print("NO")
s035299726
p04043
u589381719
1556306428
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
num = list(map(input())) sums=0 for i in num: sums+=i if sums ==17: print("YES") else: print("NO")
s350595145
p04043
u798129018
1556161950
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38384
107
n,k = map(int,input().split()) d = input().split() while len(set(str(n)) & set(d)) !=0: n +=1 print(n)
s638492873
p04043
u550943777
1556155587
Python
Python (3.4.3)
py
Runtime Error
17
2940
50
s=sorted(input()) print(YES if s == '557' else NO)
s595858623
p04043
u728566015
1556064199
Python
Python (3.4.3)
py
Runtime Error
17
2940
111
sen=[A,B,C] x=max(sen) y=min(sen) if x==7 and y==5 and sum(sen)-x-y==5: print("YES") else: print("NO")
s351630047
p04043
u728566015
1556063418
Python
Python (3.4.3)
py
Runtime Error
17
2940
76
sen = [A,B,C] sen.sort() if sen == [5,5,7]: print("YES") else: print("NO")
s831920564
p04043
u728566015
1556063168
Python
Python (3.4.3)
py
Runtime Error
17
2940
98
sen = [A,B,C] print(sen) sen.sort() print(sen) if sen == [5,5,7]: print("YES") else: print("NO")
s402111713
p04043
u728566015
1556062563
Python
Python (3.4.3)
py
Runtime Error
17
2940
83
sen = [A,B,C] sen = sen.sort() if sen == [5,5,7]: print("YES") else: print("NO")
s232303010
p04043
u728566015
1556062484
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
sen = [A,B,C] sen = sen.sort() if sen = [5,5,7]: print("YES") else: print("NO")
s777184216
p04043
u403832169
1555913070
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="")
s851982428
p04043
u193598069
1555902778
Python
Python (3.4.3)
py
Runtime Error
19
3060
229
N, K = map(int, input().split()) dislike = list(map(int, input().split())) for i in range(N, 10*N+1): num = list(map(int,str(i))) match = list(set(num) & set(dislike)) if len(match)==0: print(i) break
s717710750
p04043
u193598069
1555902604
Python
Python (3.4.3)
py
Runtime Error
17
3060
229
N, K = map(int, input().split()) dislike = list(map(int, input().split())) for i in range(N, 10*N+1): num = list(map(int,str(i))) match = list(set(num) & set(dislike)) if len(match)==0: print(i) break
s394317662
p04043
u193598069
1555899030
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
num = list(map(int,input().split())) if num.count(5) == 2 and num.count(7) == 1: print ('YES') else: print('NO)
s690875651
p04043
u481026841
1555725346
Python
Python (3.4.3)
py
Runtime Error
18
2940
181
a,b,c = map(int,input().split()) if a=5 and b=5 and c=7: print('YES') elif a=5 and b=7 and c=5: print('YES') elif a=7 and b=5 and c=5: print('YES') else: print('NO')
s292158722
p04043
u476048753
1555465608
Python
Python (3.4.3)
py
Runtime Error
18
2940
273
X, Y, Z = map(int, input().split()) num_5 = 0 num_7 = 0 if X == 5: num_5 += 1 if Y == 5: num_5 += 1 if Z == 5: num_5 += 1 if X == 7: num_7 += 1 if Y == 7: num_7 += 1 if Z == 7: num_7 += 1 if num_5 == 2 && num_7 == 1: print("YES") else: print("NO")
s182067633
p04043
u894694822
1555448137
Python
Python (3.4.3)
py
Runtime Error
18
3060
87
n, l=map(int, input().split()) s=[input() for i in range(n)] s.sort() print("".join(s))
s585707882
p04043
u331464808
1555347672
Python
Python (3.4.3)
py
Runtime Error
17
2940
160
a = list(map(int,input().split())) b = 0 c = 0 for i in a: if i == 5: b = b + 1 if i == 7: c = c+1 if b ==2 and c==1: print(YES) else: print(NO)
s047814704
p04043
u331464808
1555347529
Python
Python (3.4.3)
py
Runtime Error
17
3060
178
a = list(map(int,input().split())) b = 0 c = 0 for i in range(len(a)): if a[i] == 5: b = b + 1 if a[i] == 7: c = c+1 if b ==2 and c==1: print(YES) else: print(NO)
s226823696
p04043
u331464808
1555347014
Python
Python (3.4.3)
py
Runtime Error
17
2940
170
a = input().split() x =0 y =0 for i in range(len(a)): if len(a[i]) = 5: x = x+1 if len(a[i]) = 7: y = y+1 if x =2 and y=1: print(YES) else: print(NO)
s038417186
p04043
u103341055
1555186928
Python
Python (3.4.3)
py
Runtime Error
18
3060
252
from itertools import permutations Num = [int(n) for n in input().rstrip().split()] D = [int(n) for n in input().rstrip().split()] for i in range(Num[0],10000): if len(set([str(n) for n in D]) & set(str(i))) == 0: print(i) break
s278945646
p04043
u902130170
1555181402
Python
Python (3.4.3)
py
Runtime Error
18
3188
191
a, b, c = map(input().split(" ")) if a == 5 and b == 7 and c == 5 \ or a == 5 and b == 5 and c == 7 \ or a == 7 and b == 5 and c == 5: print("YES") else: print("NO")
s014776134
p04043
u103341055
1555174887
Python
Python (3.4.3)
py
Runtime Error
17
2940
136
num = [int(n)] for n in input().rstrip().split()] if num.count(5) == 2 and num.count(7) == 1: print("YES") else: print("NO")
s063743982
p04043
u331464808
1555090850
Python
Python (3.4.3)
py
Runtime Error
17
2940
156
l =input().split() a=0 b=0 for i in range(0,2): if len(i) = 5: a = a+1 if len(i) = 7: b = b+1 if a=2 and b=1: print("YES") else: print("NO")
s959669082
p04043
u331464808
1555090775
Python
Python (3.4.3)
py
Runtime Error
17
2940
160
l =input().split() for i in range(0,2): a=0 b=0 if len(i) = 5: a = a+1 if len(i) = 7: b = b+1 if a=2 and b=1: print("YES") else: print("NO")
s622947644
p04043
u331464808
1555089914
Python
Python (3.4.3)
py
Runtime Error
18
2940
165
l =input().split() for i in range(len(l)-1): a=0 b=0 if len(i) = 5: a = a+1 if len(i) = 7: b = b+1 if a=2 and b=1: print("YES") else: print("NO")
s832743183
p04043
u331464808
1555088561
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
a,b,c =input().split() if len(a)*len(b)*len(c) =175: print("YES") else: print("NO")
s381253048
p04043
u331464808
1555088386
Python
Python (3.4.3)
py
Runtime Error
17
2940
82
a,b,c =map(int,input().split()) if a*b*c = 175: print("YES") else: print("NO")
s216786493
p04043
u055941944
1555032818
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
# -*- coding utf-8 -*- n,l=map(int,input().split()) s =[str(input()) for i in range(n)] s.sort() print(*s,sep="")
s070577808
p04043
u864047888
1555000075
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
a=list(map(int,input().split())) a=sorted(a) print(a) if a=[5,5,7]: print("YES") else: print("NO")
s935226840
p04043
u428855582
1554866450
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
length=list(map(int, input().split())) lenght.sort() print ("Yes" if length==[5,5,7] else "No")
s909313836
p04043
u363438602
1554773783
Python
Python (3.4.3)
py
Runtime Error
17
2940
111
a,b,c=int(input().sprit()) list=[a,b,c] sorted(list) if list==[5,5,7]: print("YES") else: print("NO")
s646125621
p04043
u457960175
1554672651
Python
Python (3.4.3)
py
Runtime Error
18
2940
65
a = int(input()) if a == 17 : print('YES') else : print('NO')
s526269581
p04043
u483151310
1554650659
Python
Python (3.4.3)
py
Runtime Error
18
2940
120
N,L = map(int,input().split()) s =[] for i in range(N): s.append(input()) s.sort() result = ''.join(s) print(result)
s787384486
p04043
u483151310
1554649776
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
N, L = map(int, input().split()) S = [] for i in range(N): line = input() S.append(line) S.sort() print("".join(S))
s539396305
p04043
u483151310
1554649497
Python
Python (3.4.3)
py
Runtime Error
18
2940
131
N, L = map(int, input().split()) s = [] for i in range(N): line = input() s.append(line) s.sort() ans="".join(s) print(ans)
s658251708
p04043
u483151310
1554647937
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
N, L = map(int, input().split()) s = [] for i in range(N): line = input() s.append(line) s.sort() print("".join(s))
s480394333
p04043
u483151310
1554647667
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
N, L = map(int, input().split()) s = [] for i in range(N): line = input() s.append(line) s.sort() print("".join(s))
s254125938
p04043
u483151310
1554647617
Python
Python (3.4.3)
py
Runtime Error
17
2940
140
N, L = map(int, input().split()) s = [] for i in range(N): line = input() print(line) s.append(line) s.sort() print("".join(s))
s175644335
p04043
u483151310
1554643458
Python
Python (3.4.3)
py
Runtime Error
17
3060
145
N,L=map(int,input().split()) s =[] for i in range(0,L): s.append(str(input())) s.sort() ans = "" for word in s: ans = ans+word print(ans)
s908356535
p04043
u483151310
1554610864
Python
Python (3.4.3)
py
Runtime Error
18
2940
234
A,B,C = map(int(),input().split()) arr = [A, B, C] fives = 0 sevens = 0 for num in arr: if num == 5: fives += 1 if num == 7: sevens += 1 if fives == 2 and sevens == 1: print("YES") else: print("NO")
s571539681
p04043
u483151310
1554610829
Python
Python (3.4.3)
py
Runtime Error
18
2940
228
A,B,C = map(input().split()) arr = [A, B, C] fives = 0 sevens = 0 for num in arr: if num == 5: fives += 1 if num == 7: sevens += 1 if fives == 2 and sevens == 1: print("YES") else: print("NO")
s168460032
p04043
u483151310
1554610543
Python
Python (3.4.3)
py
Runtime Error
17
3064
273
A = int(input()) B = int(input()) C = int(input()) # A = 5 # B = 7 # C = 5 arr = [A, B, C] fives = 0 sevens = 0 for num in arr: if num == 5: fives += 1 if num == 7: sevens += 1 if fives == 2 and sevens == 1: print("YES") else: print("NO")
s161213885
p04043
u483151310
1554610345
Python
Python (3.4.3)
py
Runtime Error
18
3060
249
A = int(input()) B = int(input()) C = int(input()) arr = [A, B, C] fives = 0 sevens = 0 for num in arr: if num == 5: fives += 1 if num == 7: sevens += 1 if fives == 2 and sevens == 1: print("YES") else: print("NO")
s224320365
p04043
u483151310
1554610297
Python
Python (3.4.3)
py
Runtime Error
18
2940
235
A = input() B = input() C = input() arr = [A, B, C] fives = 0 sevens = 0 for num in arr: if num == 5: fives += 1 if num == 7: sevens += 1 if fives == 2 and sevens == 1: print("YES") else: print("NO")
s307699045
p04043
u697108631
1554569736
Python
Python (3.4.3)
py
Runtime Error
17
3060
281
def sortadd(): num_lists = input().split(" "); N=int(num_lists[0]); L=int(num_lists[1]); str_lists = []; for _ in range(N): str_lists.append(input()); str_lists.sort(); str_sum = ''.join(str_lists) print(str_sum); sortadd();
s274489473
p04043
u824365684
1554213412
Python
Python (3.4.3)
py
Runtime Error
18
2940
154
a = int(input()) b = int(input()) c = int(input()) d = [a,b,c] d.sort() if d[0] == 5 and d[1] == 5 and d[2] == 7: print("YES") else: print("NO")
s598848003
p04043
u824365684
1554213316
Python
Python (3.4.3)
py
Runtime Error
18
2940
153
a = int(input()) b = int(input()) c = int(input()) d = [a,b,c] d.sort() if d[0] == 5 and d[1] == 5 and d[2] == 7: print("Yes") else: print("No")
s788397262
p04043
u824365684
1554213242
Python
Python (3.4.3)
py
Runtime Error
18
2940
153
a = int(input()) b = int(input()) c = int(input()) d = [a,b,c] d.sort() if d[a] == 5 and d[b] == 5 and d[c] == 7: print("Yes") else: print("No")
s697911742
p04043
u824365684
1554213197
Python
Python (3.4.3)
py
Runtime Error
17
2940
153
a = int(input()) b = int(input()) c = int(input()) d = [a,b,c] d.sort() if d[a] == 5 and d[b] == 7 and d[c] == 7: print("Yes") else: print("No")
s988395503
p04043
u748311048
1554067158
Python
Python (3.4.3)
py
Runtime Error
18
2940
173
a,b,c=map(int,input().split()) if a==5 and b==7 and c==5: print(YES) elif a==5 and b==5 and c==7: print(YES) elif a==7 and b==5 and c==5: print(YES) else: print(NO)
s870340738
p04043
u748311048
1554067120
Python
Python (3.4.3)
py
Runtime Error
18
2940
176
a,b,c=map(int,input().split()) if a==5 and b==7 and c==5&: print(YES) elif a==5 and b==5 and c==7&: print(YES) elif a==7 and b==5 and c==5&: print(YES) else: print(NO)
s923039050
p04043
u167097262
1554060678
Python
Python (3.4.3)
py
Runtime Error
18
2940
98
N, L= map(int,input().split()) alldata = sorted([input() for i in range(N)]) print("".join(data))
s618473623
p04043
u030360338
1554000406
Python
Python (3.4.3)
py
Runtime Error
18
2940
136
# -*- coding: utf-8 -*- line = map(int, input().split()) ans = "YES" if line.count(5) == 2 and line.count(7) == 1 else "NO" print(ans)
s215806671
p04043
u559416752
1553274400
Python
Python (3.4.3)
py
Runtime Error
18
3060
223
A, B, C = map(int, input().split()) five = 0 seven = 0 check = [A, b, C] for s in check: if s == 5: five += 1 if s == 7: seven += 1 if five == 2 and seven == 1: print('YES') else: print('NO')
s970074464
p04043
u591779169
1552966712
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
a = list(map(int, raw_input().split())) a.sort() if a == [5,5,7]: print("YES") else: print("NO")
s360025635
p04043
u878138257
1552797371
Python
Python (3.4.3)
py
Runtime Error
17
2940
125
n,l = map(int, input().split()) a = [input() for i in range(n)] b = sorted(a) k = "" for j in range(n): k = k+b[j] print(k)
s681714924
p04043
u878138257
1552797276
Python
Python (3.4.3)
py
Runtime Error
17
2940
125
n,l = map(int, input().split()) a = [input() for i in range(n)] b = sorted(a) k = "" for j in range(n): k = k+b[j] print(k)
s602335503
p04043
u522266410
1552704553
Python
Python (3.4.3)
py
Runtime Error
17
2940
75
A,B,C = input().split() if A*B*C/145==1: print("YES") else: print("NO")
s684003610
p04043
u381626581
1552635723
Python
Python (3.4.3)
py
Runtime Error
17
3064
202
A = int(input()) B = int(input()) C = int(input()) if B < A: A, B = B, A if C < A: A ,C = C, A if C < B: B, C = C, B if A != 5 or B != 5 or C != 7: print("NO") else: print("YES")
s989454953
p04043
u358791207
1552620009
Python
Python (3.4.3)
py
Runtime Error
17
3060
205
a, b, c = map(int, input().split()) if a == 5: if (b == 5 and c == 7) or (c == 5 and b == 7): print(YES) else: print(NO) if a == 7: if b == 5 and c == 5: print(YES) else: print(NO)
s610037805
p04043
u878138257
1552458808
Python
Python (3.4.3)
py
Runtime Error
18
2940
86
a = input() if a.count(5)==2 and a.count(7)==1: print("Yes") else: print("No")
s906467783
p04043
u878138257
1552458563
Python
Python (3.4.3)
py
Runtime Error
18
2940
109
a = list(map(int, input().split())) if a.count(5)==2 and a.count(7)=1: print("Yes") else: print("No")
s790513443
p04043
u174394352
1551592043
Python
PyPy3 (2.4.0)
py
Runtime Error
177
38640
86
if sotred(list(map(int,input().split())))==[5,5,7]: print('YES') else: print('NO')
s973194611
p04043
u994767958
1551588258
Python
Python (3.4.3)
py
Runtime Error
17
2940
117
l = [0]*11 r = list(map(int,input().split())) for i in r: l[r] += 1 print("YES" if (l[5]==2)and(l[7]==1) else "NO")
s365496100
p04043
u999482355
1551504255
Python
Python (3.4.3)
py
Runtime Error
20
3316
173
N, K = map(int, input().split(" ")) Ds = set(map(str, input().split(" "))) for i in range(N, 10000): if (set(str(i)) & set(Ds)) == set(): print(i) break
s775844508
p04043
u392029857
1551366018
Python
Python (3.4.3)
py
Runtime Error
18
3188
90
N, L = map(int, input().split()) S = sorted([input() for i in range(N)]) print(''.join(S))
s576733219
p04043
u403984573
1551299624
Python
Python (3.4.3)
py
Runtime Error
18
2940
153
A,B,C=map.(int,input().split()) if A+B==10 or A+B==12: if A+C==10 or A+C==12: if B+C==10 or B+C==12: print("YES") else: print("NO")
s605737538
p04043
u403984573
1551299596
Python
Python (3.4.3)
py
Runtime Error
17
2940
160
A,B,C=map.(int,input().split()) if A+B==10 or A+B==12: if A+C==10 or A+C==12: if B+C==10 or B+C==12: print("YES") else: print("NO")
s978200112
p04043
u326294217
1550735462
Python
Python (3.4.3)
py
Runtime Error
18
2940
199
import sys def main(arg_list): if(len(arg_list == 3) and arg_list.count('5')==2 and arg_list.count('7') == 1): return "YES" return "NO" if __name__ == "__main__": main(sys.argv)
s052207834
p04043
u143509139
1550699710
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
l = list(map(int, input().split())) l.sort() ans = NO if l == [5, 5, 7]: ans = YES print(ans)
s624612942
p04043
u543954314
1550679575
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
if sorted(input().split()) == ["5", "5", "7"]: print("YES") else: priny("NO")
s388530405
p04043
u860670906
1550469151
Python
Python (3.4.3)
py
Runtime Error
17
2940
167
A = int(input()) B = int(input()) C=int(input()) if (A==5 or A==7)and (B==5 or B==7)and(C==5 or C==7) : if A+B+C==17: print("Yes") else : print("NO")
s451796528
p04043
u604412462
1550352337
Python
Python (3.4.3)
py
Runtime Error
18
2940
263
s = input().split() #s_1 s_2を分割して取得し、sに値を入れる five = 0 seven = 0 for i range(3): if s[i] == '5': five += 1 if s[i] == '7': seven += 1 if five == 2 and seven == 1: print('YES') else: print('NO')
s242617902
p04043
u503228842
1550342239
Python
Python (3.4.3)
py
Runtime Error
17
2940
158
#wlist = list(map(int,input().split())) nlist = list(input().split()) if nlist.couunt("5") ==2 and nlist.count("7")==1: print("YES") else: print("NO")
s210256589
p04043
u676407796
1549175702
Python
Python (3.4.3)
py
Runtime Error
18
3060
311
a, b, c = map(int, input().split()) if(a==7): if(b==5 & c==5): print('YES') else: print('NO') elif(b==7): if(a==5 & c==5): print('YES') else: print('NO') elif(c==7): if(b==5 & a==5): print('YES') else: print('NO') else print('NO')
s935024627
p04043
u690536347
1548699076
Python
Python (3.4.3)
py
Runtime Error
18
3064
315
h,w,a,b=map(int,input().split()) mod=10**9+7 n=h+w+1 fc,inv=[1]*n,[1]*n for i in range(1,n): fc[i]=i*fc[i-1]%mod inv[n-1]=pow(fc[n-1],mod-2,mod) for i in range(n-1,0,-1): inv[i-1]=inv[i]*i%mod f=lambda a,b:fc[a+b]*inv[a]*inv[b]%mod v=0 for i in range(b,w): v+=f(h-a-1,i)*f(a-1,w-i-1)%mod print(v%mod)
s161970608
p04043
u223133214
1548627230
Python
Python (3.4.3)
py
Runtime Error
18
2940
34
n = int(input()) print((1+n)*n/2)
s346271730
p04043
u811156202
1547624594
Python
Python (3.4.3)
py
Runtime Error
18
2940
105
amount, length = map(int, input().split()) S = sorted([input() for a in range(amount)]) print(''.join(S))
s561736539
p04043
u811156202
1547623429
Python
Python (3.4.3)
py
Runtime Error
17
3060
544
#最初に入力される情報を整理する str_input_list = input().rstrip().split(' ') int_input_list = [] for a in str_input_list: int_input_list.append(int(a)) length = int_input_list[0] amount = int_input_list[1] #文字列を受け取りリストに格納 mojiretu_list = [] for a in range(amount): mojiretu_list.append(input()) #文字列を小さい順に並べ、結合 sorted_list = sorted(mojiretu_list) min_mojiretu = '' for a in range(amount): min_mojiretu += sorted_list[a] #出力 print(min_mojiretu) print()
s942697549
p04043
u171366497
1547510801
Python
Python (3.4.3)
py
Runtime Error
18
2940
103
mondai = input(),split() if mondai.count('5')==2 and mondai.count('7')==1:print('Yes') else:print('No')
s846609135
p04043
u020604402
1547425199
Python
PyPy3 (2.4.0)
py
Runtime Error
172
38512
221
N, K = map(int,input().split()) L = list(map(int,input().split())) for i in range(N,100000): flag = 0 for x in str(i): if int(x) in L: flag = 1 if flag == 0: print(i) exit()