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
s352635938
p04043
u020604402
1547423962
Python
PyPy3 (2.4.0)
py
Runtime Error
176
38256
109
L=list(map(int,input().split())) table=[5,5,7] L=soretd(L) if table == L: print("YES") else: print("NO")
s818724577
p04043
u020604402
1547423929
Python
PyPy3 (2.4.0)
py
Runtime Error
174
38512
103
L=map(int,input().split()) table=[5,5,7] L=soretd(L) if table == L: print("YES") else: print("NO")
s468871122
p04043
u020604402
1547423892
Python
PyPy3 (2.4.0)
py
Runtime Error
169
38256
102
L=amp(int,input().split()) table=[5,5,7] L=soretd(L) if table == L: print("YES") else: print("NO")
s832577672
p04043
u231647664
1547331468
Python
Python (3.4.3)
py
Runtime Error
18
2940
135
n, l = map(int, input().split()) sn = [] for _ in range(1, n+1): sn.append(input()) sn = sorted(sn) sn = ''.join(sn) print(sn)
s989151533
p04043
u231647664
1547331358
Python
Python (3.4.3)
py
Runtime Error
18
2940
131
n, l = map(int, input().split()) sn = [] for _ in range(n+1): sn.append(input()) sn = sorted(sn) sn = ''.join(sn) print(sn)
s432968705
p04043
u231647664
1547331231
Python
Python (3.4.3)
py
Runtime Error
18
2940
130
n, l = map(int, input().split()) sn = [] for _ in range(n): sn.append(input()) sn = sorted(sn) sn = ''.join(sn) print(sn)
s256911978
p04043
u231647664
1547325556
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
a, b, c = map(int, input().split()) if a*b*c = 245: print('YES') else: print('NO')
s638811645
p04043
u912158215
1546597505
Python
Python (3.4.3)
py
Runtime Error
18
2940
248
N, L = map(int, input().split()) #標準入力からリストの作成 list = [] for _ in range(N): i = str(input()) list.append(i) #リストのソート list_a = sorted(list) #リストの結合 mojiretu = ''.join(list_a) print(mojiretu)
s637019568
p04043
u912158215
1546596522
Python
Python (3.4.3)
py
Runtime Error
17
2940
200
N, L = map(int, input().split()) #標準入力からリストの作成 list = [] for _ in range(2, N+2): i = input() list.append(i) #リストの結合 mojiretu = ''.join(list) print(mojiretu)
s737862364
p04043
u912158215
1546586877
Python
Python (3.4.3)
py
Runtime Error
18
2940
206
a,b,c = map(int, input().split()) flag = 0 if a == 7 & b,c == 5: flag = 1 elif b == 7 & a,c == 5: flag = 1 elif c == 7 & a,b == 5: flag = 1 else: flag = 0 if flag = 0: print('No') else: print('YES')
s899975311
p04043
u739008524
1546461066
Python
Python (3.4.3)
py
Runtime Error
17
2940
156
import sys n,l = map(int,input().split()) s =[] for i in range(n): s.append((input())) s.sort() for i in range(n): sys.stdout.write(s[i]) print("")
s842064189
p04043
u066455063
1546398632
Python
Python (3.4.3)
py
Runtime Error
18
2940
118
ABC = list(map(int(input().split()))) if ABC.count(5) == 2 and ABC.count == 7: print("YES") else: print("NO")
s096288579
p04043
u066455063
1546398552
Python
Python (3.4.3)
py
Runtime Error
18
2940
118
ABC = list(map(int(input().split()))) if ABC.count(5) == 2 and ABC.count == 7: print("YES") else: print("NO")
s326893979
p04043
u277556971
1546026274
Python
Python (3.4.3)
py
Runtime Error
17
3064
301
a, b, c = map(int, input().split()) five = 0; if a == 5: five = five + 1; elif a == 7: seven = seven + 1; if b == 5: five = five + 1; elif b == 7: seven = seven + 1; if c == 5: five = five + 1; elif c == 7: seven = seven + 1; if five == 2 and seven == 1: print("YES") else: print("NO")
s404374393
p04043
u227379863
1545918599
Python
Python (3.4.3)
py
Runtime Error
18
3064
725
H, W, A, B = map(int, input().split()) answer = 0 mod = 1000000007 factorial = [1] for n in range(1, H+W): factorial.append(factorial[n-1]*n%mod) def power(x, y): if y == 0: return 1 elif y == 1: return x % mod elif y % 2 == 0: return power(x, y/2)**2%mod else: return power(x, y/2)**2*x%mod inverseFactorial = [0] * (H+W) inverseFactorial[H+W-1] = power(factorial[H+W-1], mod-2) for n in range(H+W-2, -1, -1): inverseFactorial[n] = inverseFactorial[n+1] * (n+1) % mod def combi(n, m): return factorial[n] * inverseFactorial[m] *inverseFactorial[n-m]%mod for i in range(B+1, W+1): answer = (answer + combi(H-A-2+i, i-1)*combi(A+W-i-1,W-i)) % mod print(answer)
s706924978
p04043
u236127431
1545839299
Python
PyPy3 (2.4.0)
py
Runtime Error
169
38256
101
A=sorted([int(i) for i in input().split()]) if A==[5,5,7]: print(“YES”) else: print(“NO”)
s389995622
p04043
u371467115
1545696894
Python
Python (3.4.3)
py
Runtime Error
17
2940
89
n,l=map(int,input().split()) s=[input() for i in range(n)] S="".join(sorted(s)) print(S)
s703162244
p04043
u371467115
1545696212
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
n,l=map(int,input().split()) s=[input() for i in range(n)] print("".join(sorted(s)))
s130795606
p04043
u371467115
1545695847
Python
Python (3.4.3)
py
Runtime Error
19
2940
85
n,l=map(int,input().split()) s=[input() for i in range(n)] s.sort() print("".join(s))
s302068856
p04043
u371467115
1545694898
Python
Python (3.4.3)
py
Runtime Error
18
2940
84
n,l=map(int,input().split()) s=[input() for i in range(n)] s.sort print("".join(s))
s732874707
p04043
u371467115
1545694877
Python
Python (3.4.3)
py
Runtime Error
17
2940
84
n,l=map(int,input().split()) s=[input() for i in range(n)] s.sort print("".join(s))
s186039614
p04043
u709630872
1545676342
Python
Python (3.4.3)
py
Runtime Error
17
2940
136
L, N = list(map(int, input().split())) S = [input() for i in range(N)] S.sort() ans = ""; for j in range(N): ans += S[j] print(ans)
s863043680
p04043
u227379863
1545623577
Python
Python (3.4.3)
py
Runtime Error
17
2940
111
N, L = map(int, input().split()) S = [] for i in range(N): S.append(input()) S.sort() S = ''.join(S) print(S)
s755823037
p04043
u227379863
1545621276
Python
Python (3.4.3)
py
Runtime Error
19
3064
318
flag = False a = input().split(' ') for i in range(3): a[i]=int(a[i]) while True: for i in range(3): if a[i] != 5 and a[i] != 7: print('NO') frag = True break if frag == True: print(2) break if a[0] + a[1] + a[2] == 17: print('YES') break else: print('NO') break
s630198982
p04043
u227379863
1545619942
Python
Python (3.4.3)
py
Runtime Error
18
2940
198
a = input().split(' ') while True: for i in renge(3): if a[i] != 5 or a[i] != 7: print('NO') break if a[0] + a[1] + a[2] == 17: print('YES') break print('NO') break
s828747716
p04043
u794707792
1545342912
Python
Python (3.4.3)
py
Runtime Error
18
3060
257
n, k = map(int, input().split()) a = [int(x) for x in input().split()] while True: s = str(n) poss = False for i in s: if int(i) in a: poss = True break if not poss: print(n) exit(0) n += 1
s653656516
p04043
u371467115
1545294706
Python
Python (3.4.3)
py
Runtime Error
18
2940
90
N,L=map(int,input().split()) s=[input() for i in range(N)] s=sorted(s) print("".join(s))
s058850197
p04043
u278670845
1545245746
Python
PyPy3 (2.4.0)
py
Runtime Error
180
38384
105
n,l = map(int, input().split()) string = [input() for i in range(n)] string.sort() print("".join(string))
s778101510
p04043
u434208140
1544894860
Python
Python (3.4.3)
py
Runtime Error
19
2940
70
s=input() print('YES' if s=='5 5 7'||s=='5 7 5'||s=='7 5 5' else 'NO')
s150460484
p04043
u371467115
1544658601
Python
Python (3.4.3)
py
Runtime Error
17
2940
51
print(["NO","YES"][eval(input().replace(" ","*"))])
s692920671
p04043
u928784113
1544423288
Python
Python (3.4.3)
py
Runtime Error
17
2940
143
# -*- coding: utf-8 -*- A,B,C=map(int,input().split()) S =set("ABC") T =set("557") if S & T = ("5","5","7"): print("YES") else: print("NO")
s380161856
p04043
u928784113
1544422872
Python
Python (3.4.3)
py
Runtime Error
18
3188
121
# -*- coding: utf-8 -*- A,B,C=map(int,input().split()) S =[A,B,C] T =[5,5,7] if S = T: print("YES") else: print("NO")
s578847857
p04043
u140251125
1544039835
Python
Python (3.4.3)
py
Runtime Error
17
2940
221
# input A = map(int, input().split()) ans1 = 0 ans2 = 0 for i in range(len(A)): if A[i] == 5: ans1 += 1 if A[i] == 7: ans2 += 1 if ans1 == 2 and ans2 == 1: print('YES') else: print('NO')
s095123592
p04043
u140251125
1544039805
Python
Python (3.4.3)
py
Runtime Error
17
3060
221
# input A = map(int, input().split()) ans1 = 0 ans2 = 0 for i in range(len(A)): if A[i] == 5: ans1 += 1 if A[i] == 7: ans2 += 1 if ans1 == 2 and ans2 == 1: print('YES') else: print("NO")
s579066715
p04043
u688055251
1543968503
Python
Python (3.4.3)
py
Runtime Error
18
2940
148
a=input() b=input() c=input() w=[a,b,c] e=w.count('5') if '5' and '7' not in w: print ('NO') elif e==2: print ('YES') else: print ('NO')
s384235738
p04043
u688055251
1543968085
Python
Python (3.4.3)
py
Runtime Error
18
2940
549
import sys def solve(a, b, c): # Uncomment the following if you want to check the input. # print('a =', a) # print('b =', b) # print('c =', c) def I(a,b,c): w=[a,b,c] if 5 and 7 not in w: print ('NO') e=w.count(5) if e==2: print ('YES') else: print ('NO') def readQuestion(): ws = sys.stdin.readline().strip().split() a = int(ws[0]) b = int(ws[1]) c = int(ws[2]) return (a, b, c,) def main(): solve(*readQuestion()) # Uncomment before submission main()
s279804567
p04043
u688055251
1543967939
Python
Python (3.4.3)
py
Runtime Error
18
3064
531
import sys def solve(a, b, c): # Uncomment the following if you want to check the input. # print('a =', a) # print('b =', b) # print('c =', c) w=[a,b,c] if 5 and 7 not in w: return ('NO') e=w.count(5) if e==2: return ('YES') else: return ('NO') def readQuestion(): ws = sys.stdin.readline().strip().split() a = int(ws[0]) b = int(ws[1]) c = int(ws[2]) return (a, b, c,) def main(): solve(*readQuestion()) # Uncomment before submission main()
s823638614
p04043
u688055251
1543967665
Python
Python (3.4.3)
py
Runtime Error
18
2940
531
import sys def solve(a, b, c): # Uncomment the following if you want to check the input. # print('a =', a) # print('b =', b) # print('c =', c) w=[a,b,c] if 5 and 7 not in w: return ('NO') e=w.count(5) if e==2: return ('YES') else: return ('NO') def readQuestion(): ws = sys.stdin.readline().strip().split() a = int(ws[0]) b = int(ws[1]) c = int(ws[2]) return (a, b, c,) def main(): solve(*readQuestion()) # Uncomment before submission main()
s541348048
p04043
u440191278
1543965996
Python
Python (3.4.3)
py
Runtime Error
18
3064
522
def solve(a,b,c): li = [a,b,c] cf = 0 cs = 0 for i in li: if i == 5: cf +=1 if i==7: cs +=1 if cf == 2 and cs ==1: return YES else: return NO def readQuestion(): line = sys.stdin.readline().rstrip() [str_a, str_b, str_c] = line.split(' ') return (int(str_a), int(str_b), int(str_c)) def main(): a, b, c = readQuestion() answer = solve(a, b, c) print(answer) if __name__ == '__main__': main()
s173136846
p04043
u886366470
1543803374
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
l = input.split() if l.count('5')==2 and '7' in l: print('YES') else: print('NO')
s501032990
p04043
u553605501
1543735115
Python
Python (3.4.3)
py
Runtime Error
17
3060
174
a,b,c=map(int,input().split()) 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") else: print("NO")
s282045491
p04043
u553605501
1543735040
Python
Python (3.4.3)
py
Runtime Error
18
2940
172
a,b,c=map(int,input().split()) if(((a==5)or(a==7)) and ((b==5)or(b==7)) and ((c==5)or(c==7))): ifa+B+c==17: print("YES") else: print("NO") else: print("NO")
s790011490
p04043
u553605501
1543735014
Python
Python (3.4.3)
py
Runtime Error
17
2940
166
a,b,c=map(int,input().split()) if(((a==5)or(a==7)) and ((b==5)or(b==7)) and ((c==5)or(c==7))): ifa+B+c==17: print(YES) else: print(NO) else: print(NO)
s195074100
p04043
u009249232
1543710678
Python
Python (3.4.3)
py
Runtime Error
18
2940
228
text = input().split() if len(text[0]) + len(text[1]) + len(text[2]) != 17: print("NO") elif len(text[0]) != 5 || len(text[0]) != 7: print("NO") elif len(text[1]) != 5 || len(text[1]) != 7: print("NO") else: print("YES")
s140402063
p04043
u869728296
1541622259
Python
Python (3.4.3)
py
Runtime Error
18
2940
227
a=input() b=[int(i) for i in a] if(b[0]==5 and b[1]==5 and b[2]==7): print("YES") elif(b[1]==5 and b[2]==5 and b[0]==7) print("YES") elif(b[2]==5 and b[0]==5 and b[1]==7) print("YES") else: print("NO")
s003100930
p04043
u475018333
1541581898
Python
Python (3.4.3)
py
Runtime Error
17
2940
149
n, l = map(int, input().split()) l = [] i = 0 l = [input() for i in range(n)] result = sorted(l) s = ''.join(result) # for i in range(n): print(s)
s008493045
p04043
u397531548
1541538809
Python
Python (3.4.3)
py
Runtime Error
17
3060
116
X={int(input()),int(input()),int(input())} if X in [{5,5,7},{5,7,5},{7,5,5}]: print("YES") else: print("NO")
s850942154
p04043
u475018333
1541374180
Python
Python (3.4.3)
py
Runtime Error
17
2940
539
a,b,c= map(int,input().split()) if a==5: if b==5: if c==7: return print("YES") else: return print("NO") elif b==7: if c==5: return print("YES") else: return print("NO") elif a==7: if b==5: if c==7: return print("YES") else: return print("NO") elif : return print("NO") else: return print("NO") judge()
s924839619
p04043
u432805419
1540867771
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
a = map(int,input().split()) a.sort() if a[0] == 5: if a[1] == 7: if a[2] == 5: print("YES") print("NO")
s672488797
p04043
u370793182
1540231753
Python
Python (3.4.3)
py
Runtime Error
17
2940
212
num = list(map(int, input().strip(" "))) five = 0; seven = 0; for i in range(3): if (num[i]==5): five++; elif (num[i] == 7): seven++; if (five == 2 and seven == 1): print("Yes") else: print("no")
s436166956
p04043
u370793182
1540231634
Python
Python (3.4.3)
py
Runtime Error
16
2940
189
a = input().strip(" ") five = 0; seven = 0; for i in range(3): if (a[i]==5): five++; elif (a[i] == 7): seven++; if (five == 2 and seven == 1): print("Yes") else: print("no")
s478917935
p04043
u131405882
1540070049
Python
Python (3.4.3)
py
Runtime Error
17
2940
199
A, B, C = map(int, raw_input().split()) if (A != 5 and A!=7): print('NO') if (B != 5 and B!=7): print('NO') if (C != 5 and C!=7): print('NO') if(A + B + C != 17): print('NO') else: print('YES')
s927845359
p04043
u094191970
1539613963
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
A = int(input()) B = int(input()) C = int(input()) if A+B+C == 17 and A*B*C == 175: print('YES') else: print('NO')
s566470617
p04043
u832039789
1539303196
Python
Python (3.4.3)
py
Runtime Error
17
2940
153
n,k=map(int,input().split());d=input().split() while 1: for c in str(n): if c in d:break else: print(n) exit() n += 1
s569240875
p04043
u832039789
1539296762
Python
Python (3.4.3)
py
Runtime Error
17
2940
94
l = sort(list(map(int,input().split()))) if l==[5,5,7]: print('YES') else: print('NO')
s620056098
p04043
u063052907
1538249862
Python
Python (3.4.3)
py
Runtime Error
17
2940
82
#coding: utf-8 s = input() print(["NO", "YES"][s.count("5")==2 * s.count("7")==1]
s112559277
p04043
u498486375
1537060706
Python
Python (3.4.3)
py
Runtime Error
17
3060
245
N,x=map(int,input().split()) a=list(map(int, input().split())) a.sort() m=0 i=0 if a[0]>x: print(0) else: while m<=x and i<N: m += a[i] i +=1 if i==N and m!=x: i -=1 print(i) else: print(i)
s557817881
p04043
u484460274
1536916669
Python
Python (3.4.3)
py
Runtime Error
16
2940
508
#include <iostream> #include <math.h> #include <vector> #include <map> #include <stack> #include <queue> #include <set> #include <algorithm> #include <iomanip> #include <string.h> #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) #define ALL(a) (a).begin(),(a).end() typedef long long lint; using namespace std; int main(){ int A[3]; int B[3]={5,5,7}; cin>>A[0]>>A[1]>>A[2]; sort(A,A+3); if(memcmp(A,B,sizeof A))cout<<"NO"<<endl; else cout<<"YES"<<endl; return 0; }
s662751815
p04043
u932465688
1536894247
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
P = list(input().split()) if (P.count('5') == 2 and P.count('7') == 1): print('YES') else: prit('NO')
s583491419
p04043
u534028046
1536030700
Python
Python (3.4.3)
py
Runtime Error
18
3064
997
num1 = int(input("整数値を入力してください>")) while num1<1 or num1>10: print("1~10の整数値を入力してください") num1 = int(input("整数値を入力してください>")) num2 = int(input("整数値を入力してください>")) while num2<1 or num2>10: print("1~10の整数値を入力してください") num2 = int(input("整数値を入力してください>")) num3 = int(input("整数値を入力してください>")) while num3<1 or num3>10: print("1~10の整数値を入力してください") num3 = int(input("整数値を入力してください>")) if num1 == 7 : if num2 == num3 and num2 == 5 : print("YES") else : print("NO") elif num2 == 7 : if num1 == num3 and num1 == 5 : print("YES") else : print("NO") elif num3 == 7 : if num1 == num2 and num1 == 5 : print("YES") else : print("NO") else : print("NO")
s577868857
p04043
u534028046
1536030442
Python
Python (3.4.3)
py
Runtime Error
17
3064
997
num1 = int(input("整数値を入力してください>")) while num1<1 or num1>10: print("1~10の整数値を入力してください") num1 = int(input("整数値を入力してください>")) num2 = int(input("整数値を入力してください>")) while num2<1 or num2>10: print("1~10の整数値を入力してください") num2 = int(input("整数値を入力してください>")) num3 = int(input("整数値を入力してください>")) while num3<1 or num3>10: print("1~10の整数値を入力してください") num3 = int(input("整数値を入力してください>")) if num1 == 7 : if num2 == num3 and num2 == 5 : print("YES") else : print("NO") elif num2 == 7 : if num1 == num3 and num1 == 5 : print("YES") else : print("NO") elif num3 == 7 : if num1 == num2 and num1 == 5 : print("YES") else : print("NO") else : print("NO")
s261662744
p04043
u534028046
1536030024
Python
Python (3.4.3)
py
Runtime Error
18
3060
530
num1 = int(input("整数値を入力してください>")) num2 = int(input("整数値を入力してください>")) num3 = int(input("整数値を入力してください>")) if num1 == 7 : if num2 == num3 and num2 == 5 : print("YES") else : print("NO") elif num2 == 7 : if num1 == num3 and num1 == 5 : print("YES") else : print("NO") elif num3 == 7 : if num1 == num2 and num1 == 5 : print("YES") else : print("NO") else : print("NO")
s275924353
p04043
u601082779
1535992119
Python
Python (3.4.3)
py
Runtime Error
17
2940
13
/7 7/cNO cYES
s061959290
p04043
u601082779
1535991788
Python
Python (3.4.3)
py
Runtime Error
17
2940
42
print("YES"if input().count(7)==1else"NO")
s263763621
p04043
u328755070
1535849805
Python
Python (3.4.3)
py
Runtime Error
16
2940
131
a, b, c = list(map(int, input().split())) if (a + b + c == 17) && (a * b * c == 5 * 5 * 7): print("YES") else: print("NO")
s551610583
p04043
u328755070
1535849767
Python
Python (3.4.3)
py
Runtime Error
30
2940
127
a, b, c = list(map(int, input().split())) if a + b + c == 17 && a * b * c == 5 * 5 * 7: print("YES") else: print("NO")
s570598832
p04043
u328755070
1535849732
Python
Python (3.4.3)
py
Runtime Error
17
2940
121
a, b, c = map(int, input().split()) if a + b + c == 17 && a * b * c == 5 * 5 * 7: print("YES") else: print("NO")
s079432435
p04043
u966695411
1535428878
Python
Python (2.7.6)
py
Runtime Error
10
2568
33
print('YNEOS'[input()%18!=17::2])
s207696800
p04043
u138486156
1535421550
Python
Python (3.4.3)
py
Runtime Error
17
2940
88
a = map(int, input().split()) if a.sort() == [5,5,7]: print('Yes') else: print('No')
s064708378
p04043
u136090046
1535217309
Python
Python (3.4.3)
py
Runtime Error
17
3060
316
import itertools n, k = map(int, input().split()) array = {x for x in input().split()} num_array = {str(x) for x in range(10)} like_num = array^num_array res = float("inf") for i in range(1, 100000): tmp = set(list(str(i))) if tmp.issubset(like_num): if n <= i < res: res = i print(res)
s925365608
p04043
u759651152
1534217541
Python
Python (3.4.3)
py
Runtime Error
17
3056
213
#-*-coding:utf-8-*- def main(): arry = list(map(int, input().split)) if arry.count(5) == 2 and arry.count(7) == 1: print('YES') else: print('NO') if __name__ == '__main__': main()
s266058420
p04043
u846150137
1534006980
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
print("YES" if sorted(input().split())==["5","5","7"] else "NO"]
s077585990
p04043
u879870653
1533659272
Python
Python (3.4.3)
py
Runtime Error
17
2940
160
a,b,c =map(int(input().split())) L=[] L.append(a) L.append(b) L.append(c) if L.count(5)==2 and L.count(7)==1 : print("YES") else : print("NO")
s403011799
p04043
u599547273
1532884644
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
abc = list(map(int, input())) print("Yes" if sorted(abc) == [5, 5, 7] else "No")
s578460995
p04043
u513081876
1532817763
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
a, b, c = map(int,input().split()) if a+b+c=17: print('YES') else: print('NO')
s743570408
p04043
u136395536
1531914464
Python
Python (3.4.3)
py
Runtime Error
17
2940
256
A,B,C = (int(i) for i in input().split()) Aaddition = A+B+C if Addition != 17: haiku = False else: if ((A==5 or A==7) and (B==5 or B==7) and (C==5 or C==7)): haiku = True else: haiku = False if haiku: print("YES") else: print("NO")
s705083953
p04043
u136395536
1531914343
Python
Python (3.4.3)
py
Runtime Error
17
3060
255
A,B,C = (int(i) for i in input().split()) Aaddition = A+B+C if Addition != 17: haiku = False else: if((A==5 or A==7) and (B==5 or B==7) and (C==5 or C==7) ): haiku = True else: haiku = False if haiku: print("YES") else: print("NO")
s112816728
p04043
u118147328
1531438301
Python
Python (3.4.3)
py
Runtime Error
17
2940
179
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")
s144079398
p04043
u395086545
1530470419
Python
Python (3.4.3)
py
Runtime Error
18
3064
865
h, w, lower_bound, left_bound = map(int, input().split()) grid = [[0 for i in range(w)] for j in range(h)] lower_i = h - lower_bound left_i = left_bound for i in range(lower_i, len(grid)): for j in range(0, left_i): grid[i][j] = 1 def count_path(row, col, grid, memo): if memo[row][col] != -1: return memo[row][col] path_count = 0 if grid[row][col] == 1: memo[row][col] = 0 return memo[row][col] if row == h-1 and col == w-1: return 1 if row+1 < len(grid): path_count += count_path(row+1, col, grid, memo) if col+1 < len(grid[0]): path_count += count_path(row, col+1, grid, memo) memo[row][col] = path_count return memo[row][col] path_count = 0 memo = [[-1 for i in range(w)] for j in range(h)] path_count += count_path(0, 0, grid, memo) final_path_count = path_count % (pow(10, 9) + 7) print(final_path_count)
s194189552
p04043
u395086545
1530401132
Python
Python (3.4.3)
py
Runtime Error
17
2940
203
n, k = map(int, input().split()) d = list(map(int, input().split())) for i in range(10*n+2): if i >= n: s = str(i) for j in range(len(s)): if int(s[j]) in d: break print(i)
s591017204
p04043
u395086545
1530399150
Python
Python (3.4.3)
py
Runtime Error
18
3064
681
n, k = map(int, input().split()) d_list = list(map(int, input().split())) num_list = [0,1,2,3,4,5,6,7,8,9] for d in d_list: num_list.remove(d) final_price = '' def is_dislike_number(number, dislike_list): if number in dislike_list: return True else: return False for i, num in enumerate(str(n)): num = int(num) if is_dislike_number(num, d_list): while num < 10: num += 1 digit = len(str(n)) - i - 1 if not is_dislike_number(str(num), d_list): final_price += str(num) for j in range(digit): final_price += str(num_list[0]) print(final_price) exit() final_price += str(num) print(final_price)
s072358870
p04043
u334066432
1529703269
Python
Python (3.4.3)
py
Runtime Error
17
3064
215
ans=list(map(int,input().split())) dic=[] for x in ans: if(x!=5 or x!=7): print("NO") break else: dic[str(x)]=dic.get(str(x),0)+1 if(dic["5"]!=2 and dic["7"]!=1): print("NO") else: print("YES")
s746841833
p04043
u334066432
1529703177
Python
Python (3.4.3)
py
Runtime Error
19
3192
233
ans=list(map(int,input().split())) dic=[] for x in ans: if(x!=5 or x!=7): print("NO") break else: dic[str(x)]=dic.get(x,0)+1 if(dic["5"]!=2 and dic["7"]!=1): print("NO") else: print("YES")
s730960569
p04043
u333139319
1529601970
Python
Python (3.4.3)
py
Runtime Error
17
2940
127
s=[int(i) for i in input.split()] if len(s)==3 and s.count("5")==2 and s.count("7")==1: print("YES") else: print("NO")
s924639032
p04043
u114954806
1529123972
Python
Python (3.4.3)
py
Runtime Error
17
2940
141
sorted_lst=sorted(list(map(int,input().split()))) if so_lst[0]==5 and so_lst[1] == 5 and so_lst[2]==7: print("YES") else: print("NO")
s278359553
p04043
u205561862
1528827818
Python
Python (3.4.3)
py
Runtime Error
17
2940
90
print(["YES","NO"][bool(len(list(multiset(map(int,input().split()))-multiset([5,5,7]))))])
s552241081
p04043
u205561862
1528827764
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
print(["YES","NO"][bool(len(list(multiset(input().split())-multiset([5,5,7]))))])
s331137166
p04043
u205561862
1528827740
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
print(["YES","NO"][bool(len(list(multiset(input.split())-multiset([5,5,7]))))])
s476017744
p04043
u205561862
1528827601
Python
Python (3.4.3)
py
Runtime Error
17
2940
65
print(["YES","NO"][bool(len([set(input.split())-set([5,5,7])]))])
s168520123
p04043
u894440853
1528290843
Python
Python (3.4.3)
py
Runtime Error
17
2940
89
s = input() if s.count("7") == 2 and s.count("5") == 1: print("YES") else: print("NO)
s219297984
p04043
u288087195
1527830605
Python
Python (3.4.3)
py
Runtime Error
17
2940
183
l = map(int, raw_input().split()) a = 0 b = 0 for i in len(l): if l[i] == 5: a = a + 1 elif l[i] == 7: b = b + 1 if (a==2 or b ==1): print("Yes") else: print("No")
s495421219
p04043
u807772568
1527197642
Python
Python (3.4.3)
py
Runtime Error
17
3060
183
da = list(map(int,input(),split())) a = 0 k = 0 for i in range(3): if da[i] == 5: a += 1 elif da[i] == 7: k += 1 if a == 2 and k == 1: print("YES") else: print("NO")
s494375363
p04043
u881612683
1527023345
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
ls = input().strip().split() return (ls.count('7') == 1) and (ls.count('5')==2)
s127857225
p04043
u709052417
1524985427
Python
Python (3.4.3)
py
Runtime Error
18
3064
399
N, K = map(int, input().split()) D = list(map(int, input().split())) shiharai=N l = [int(x) for x in list(str(N))] c=len(l) for i in range(len(l)): while l[i] in D: shiharai+=1 l = [int(x) for x in list(str(shiharai))] if len(l)!=c: for i in range(len(l)): while l[i] in D: shiharai+=1 l = [int(x) for x in list(str(shiharai))] print(shiharai)
s462329904
p04043
u745385679
1524971443
Python
Python (3.4.3)
py
Runtime Error
18
2940
174
import sys import defaultdict args = sys.argv dd = defaultdict(int) for arg in args: dd[arg] += 1 if dd[5] == 2 and dd[7] == 1: print('YES') else: print('NO')
s145047307
p04043
u352499693
1524547998
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
print('YES' if sorted(input()) == [*' 557'] else 'NO')
s851452243
p04043
u352499693
1524547511
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
print('YES' if sorted(input()) == [*' 557'] else 'No')
s650644783
p04043
u314219654
1524518557
Python
Python (3.4.3)
py
Runtime Error
17
2940
172
N= list(map(int,input().split())) GO=0 SHICHI=0 For i in N: if i== 5: GO +=1 elif i==7: SHICHI+=1 if GO==2 and SHICHI==1:print("YES") else:print("NO")
s564461192
p04043
u314219654
1524518514
Python
Python (3.4.3)
py
Runtime Error
17
2940
174
N= list(map(int,input().split())) GO=0 SHICHI=0 For i in N: if i== 5: GO +=1 elif i==7: SHICHI+=1 if GO==2 and SHICHI==1:print("YES") else: print("NO")
s137349010
p04043
u856232850
1522985219
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
l = map(int, raw_input().split()) if l.count(5) == 2: if l.count(7) ==1: print('YES') else: print('NO')