problem_id
stringclasses
100 values
submission_id
stringlengths
10
10
status
stringclasses
2 values
code
stringlengths
6
806
p04043
s395829047
Accepted
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')
p04043
s564643874
Accepted
nums = list(map(int, input().split())) nums.sort() if nums == [5, 5, 7]: print("YES") else: print("NO")
p04043
s009808780
Accepted
import sys import math import itertools import bisect from copy import copy from collections import deque,Counter from decimal import Decimal def s(): return input() def i(): return int(input()) def S(): return input().split() def I(): return map(int,input().split()) def L(): return list(input().split()) def l(): return list(map(int,input().split())) def lcm(a,b): return a*b//math.gcd(a,b) sys.setrecursionlimit(10**9) mod = 10**9+7 A = l() A.sort() if A == [5,5,7]: print('YES') else: print('NO')
p04043
s775538061
Accepted
a=input().split() if a.count('5')==2 and a.count('7')==1: print('YES') else: print('NO')
p04043
s235771611
Accepted
fifcount = 0 sevcount = 0 s = list(map(int, input().split())) for i in range(3): if s[i] == 5: fifcount += 1 elif s[i] == 7: sevcount += 1 if fifcount ==2 and sevcount ==1: print("YES") else: print("NO")
p04043
s297882327
Accepted
A,B,C=map(int,input().split()) if A==5: if B==5: if C==7: print("YES") else: print("NO") elif B==7: if C==5: print("YES") else: print("NO") else: print("NO") elif A==7: if B==5 and C==5: print("YES") else: print("NO") else: print("NO")
p04043
s101800159
Accepted
a,b,c=map(int,input().split()) a,b,c=sorted([a,b,c]) if (a,b,c)==(5,5,7):print('YES') else:print('NO')
p04043
s207654453
Accepted
import sys input = sys.stdin.readline a, b, c = map(int, input().split()) match = [a, b, c] cnt = 0 for i in range(3): if match[i] == 5: cnt += 2 elif match[i] == 7: cnt += 1 if cnt == 5: ans = 'YES' else: ans = 'NO' print(ans)
p04043
s116342801
Accepted
i = list(map(int, input().split())) li = [i[0], i[1], i[2]] yn = "NO" if li.count(5) == 2: if li.count(7) == 1: yn = "YES" print(yn)
p04043
s930226236
Accepted
inp = (input().split()) if inp.count('5') == 2 and inp.count('7') == 1: print("YES") else: print("NO")
p04043
s860848074
Accepted
a,b,c=map(int,input().split()) if a==7 and b==5 and c==5: print("YES") elif b==7 and a==5 and c==5: print("YES") elif c==7 and a==5 and b==5: print("YES") else: print("NO")
p04043
s612330449
Accepted
x=list(map(int,input().split())) if x.count(5)==2 and x.count(7)==1: print("YES") else: print("NO")
p04043
s452286100
Accepted
cand=[(5,5,7),(5,7,5),(7,5,5)] X=tuple(map(int,input().split())) print("YES") if X in cand else print("NO")
p04043
s994325208
Accepted
A = sorted(list(map(int,input().split()))) if A == [5,5,7]: print("YES") else: print("NO")
p04043
s662166692
Accepted
a=list(map(int,input().split())) if a.count(5)==2 and a.count(7)==1: print("YES") else: print("NO")
p04043
s855274926
Accepted
a = map(int,input().split()) list_a = list(a) list_a.sort() if list_a == [5, 5, 7]: print("YES") else: print("NO")
p04043
s459024783
Accepted
arr = list(map(lambda x: int(x), input().split(" "))) if arr.count(5) == 2 and arr.count(7) == 1: print("YES") else: print("NO")
p04043
s659017962
Accepted
print('YNEOS'[''.join(sorted(input()))!=' 557'::2])
p04043
s175514380
Accepted
A = sorted(list(map(int, input().split()))) print('YES' if A[0] == 5 and A[1] == 5 and A[2] == 7 else 'NO')
p04043
s586061552
Accepted
a,b,c = map(int,input().split()) abclist = [a,b,c] if abclist.count(5) == 2: print("YES") else: print("NO")
p04043
s494110332
Accepted
a=list(map(int,input().split())) if a.count(5)==2 and a.count(7)==1: print("YES") else: print("NO")
p04043
s876557753
Accepted
a, b, c = map(int, input().split()) if a+b+c == 17: print('YES') else: print('NO')
p04043
s360638108
Accepted
# -*- coding: utf-8 -*- """ Created on Wed May 13 11:57:51 2020 @author: shinba """ A = list(map(int,input().split())) B = [[5,5,7],[5,7,5],[7,5,5]] if A in B: print("YES") else: print("NO")
p04043
s531811700
Accepted
a = input('') if a.count('5') == 2 and a.count('7') ==1: print('YES') else: print('NO')
p04043
s779024163
Accepted
ABC = list(map(int, input().split())) if ABC.count(5) == 2 and ABC.count(7): print('YES') else: print('NO')
p04043
s069139121
Accepted
# coding: utf-8 # Your code here! l = input() if l.count("5") == 2 and l.count("7") == 1: print("YES") else: print("NO")
p04043
s226985027
Accepted
ABC=list(map(int,input().split())) print("YES" if ABC.count(5)==2 and ABC.count(7)==1 else "NO")
p04043
s294214122
Accepted
list = input().split() list.sort() if ''.join(list) == '557': print('YES') else: print('NO')
p04043
s445362756
Accepted
abc = list(map(int,input().split())) print("YES" if sum(abc) == 17 and abc.count(5) else "NO")
p04043
s391931820
Accepted
length = list(map(int, input().split())) judge = {0:5,1:7,2:5} for i in range(len(judge)): for j in range(len(length)): if length[j] == judge[i]: length.pop(j) break else: if j == len(length)-1: print('NO') exit() print('YES')
p04043
s591565668
Accepted
lis = list(map(int, input().split())) lis.sort() if lis[0] == 5 and lis[1]==5 and lis[2]== 7: print('YES') else: print('NO')
p04043
s353057814
Accepted
n=input().split() print("YES" if n.count("5")==2 and n.count("7")==1 else "NO")
p04043
s829367290
Accepted
a = list(map(int, input().split())) if a.count(5) == 2 and a.count(7) == 1: print('YES') else: print('NO')
p04043
s531634749
Accepted
#ABC042A x = list(input().split()) print("YES" if x.count("5")==2 and x.count("7")==1 else "NO")
p04043
s892877803
Accepted
a,b,c=map(int, input().split()) t=0 if a==5: if b==5: if c==7: t=1 elif b==7: if c==5: t=1 elif a==7: if b==5: if c==5: t=1 if t==1: print('YES') else: print('NO')
p04043
s592349750
Accepted
a,b,c = map(int,input().split()) print("YES" if a*b*c ==175 else "NO")
p04043
s999426780
Accepted
A,B,C = map(int, input().split()) list_iroha = [A,B,C] #print(list_iroha) if [5,7,5] == list_iroha or [7,5,5] == list_iroha or [5,5,7] == list_iroha: print("YES") else: print("NO")
p04043
s077128366
Accepted
a,b,c=map(int,input().split()) n=[a,b,c] m=len([i for i in n if i==5]) p=len([i for i in n if i==7]) if m==2 and p==1: print('YES') else: print('NO')
p04043
s290248242
Accepted
l = list(map(int, input().split())) l.sort() if l == [5,5,7]: print("YES") else: print("NO")
p04043
s575600399
Accepted
a=list(map(int, input().split())) if a.count(5)==2 and a.count(7)==1: print("YES") else: print("NO")
p04043
s407162856
Accepted
a = list(map(int,input().split())) a.sort() if a[0]==5 and a[1]==5 and a[2]==7: print('YES') else: print('NO')
p04043
s006852653
Accepted
s= input() s = s.split() s.sort() if s == ["5","5","7"]: print("YES") else: print("NO")
p04043
s343094558
Accepted
X=list(map(int,input().split())) X.sort() if X==[5,5,7]: print('YES') else: print('NO')
p04043
s754213358
Accepted
a,b,c=map(int,input().split()) if a+b+c==17 and a*b*c==175: print("YES") else: print("NO")
p04043
s466393608
Accepted
import sys import math import bisect def main(): A = list(map(int, input().split())) A.sort() if len(A) == 3 and A == [5, 5, 7]: print('YES') else: print('NO') if __name__ == "__main__": main()
p04043
s665401527
Accepted
input_line = input().split() if int(input_line[0]) + int(input_line[1]) + int(input_line[2]) != 17: print("NO") pass elif input_line[0] == input_line[1] == "5": print("YES") pass elif input_line[1] == input_line[2] == "5": print("YES") pass elif input_line[0] == input_line[2] == "5": print("YES") else: print("NO")
p04043
s989266901
Accepted
# -*- coding: utf-8 -*- import sys sys.setrecursionlimit(10**9) INF=10**18 MOD=10**9+7 input=lambda: sys.stdin.readline().rstrip() YesNo=lambda b: bool([print('Yes')] if b else print('No')) YESNO=lambda b: bool([print('YES')] if b else print('NO')) int1=lambda x:int(x)-1 def main(): l=list(map(int,input().split())) l.sort() YESNO(l[0]==l[1]==5 and l[2]==7) if __name__ == '__main__': main()
p04043
s390501843
Accepted
# 整数の入力 a, b, c = map(int, input().split()) # 合計17でないときNOを出力 if not (a+b+c == 17): print("NO") exit() # 7を含まないときNOを出力 if not 7 in (a, b, c): print("NO") exit() # 5を含まないときNOを出力、それ以外はYESを出力 if not 5 in (a, b, c): print("NO") exit() else: print("YES")
p04043
s579988746
Accepted
a = input().split() sums = 0 for i in a: sums += int(i) if sums == 17: print("YES") else: print("NO")
p04043
s872676909
Accepted
lima = 0 tujuh = 0 a = [int(tmp) for tmp in input().split()] for i in range(3) : if a[i] == 5 : lima += 1 elif a[i] == 7 : tujuh += 1 if lima==2 and tujuh == 1 : print("YES") else : print('NO')
p04043
s517159904
Accepted
nums = list(map(int, input().split())) fives = nums.count(5) sevens = nums.count(7) print("YES") if (fives == 2 and sevens == 1) else print("NO")
p04043
s734647227
Accepted
str = input() if str.count('5') == 2 and str.count('7') == 1: print('YES') else: print('NO')
p04043
s004757042
Accepted
text = list(map(int, input().split())) text.sort() if text[0] == 5 and text[1] == 5 and text[2] == 7: print('YES') else: print('NO')
p04043
s107761167
Accepted
A = list(map(int, input().split())) A.sort() if A[0] == 5: if A[1] == 5: if A[2] == 7: print("YES") exit() print("NO")
p04043
s094548118
Accepted
seq = [int(s) for s in input().split()] if seq.count(5) == 2 and seq.count(7) == 1: print("YES") else: print("NO")
p04043
s506013978
Accepted
a,b,c = map(int,input().split()) A = [a,b,c] B = [a,b,c] A = A.count(5) B = B.count(7) if A == 2 and B == 1: print("YES") else: print("NO")
p04043
s639973287
Accepted
if sorted(list(map(int,input().split())))==[5,5,7]: print('YES') else: print('NO')
p04043
s218408556
Accepted
input_line=input() if input_line.count("5")==2 and input_line.count("7")==1: print ("YES") else: print ("NO")
p04043
s793424675
Accepted
l = [int(x) for x in input().split(' ')] if (5 not in l): print('NO') if (7 not in l): print('NO') if (sum(l) == 17): print('YES') else: print('NO')
p04043
s521261391
Accepted
a = list(input().split()) if a.count('7') == 1 and a.count('5') == 2: print('YES') else: print('NO')
p04043
s438763693
Accepted
text = str(input()) cnt = 0 for i in text: if i == "5": cnt += 1 if i == "7": cnt += 2 if cnt == 4: print("YES") else: print("NO")
p04043
s049980217
Accepted
from collections import defaultdict d = defaultdict(int) A, B, C = map(int, input().split()) d[A] += 1 d[B] += 1 d[C] += 1 if d[5] == 2 and d[7] == 1: print('YES') else: print('NO')
p04043
s435485778
Accepted
# -*- coding: utf-8 -*- if __name__ == "__main__": # str_list = [map(int, input().split())] # if str_list.count(5) == 2 and str_list.count(7) == 1: # print('YES') # else: # print('NO') str_list = list(map(int, input().split())) if sum(str_list) == 17: print('YES') else: print('NO')
p04043
s026238090
Accepted
num = list(map(int,input().split())) a=0 b=0 for i in range(3): if num[i]==5: a+=1 if num[i]==7: b+=1 if a==2 and b==1: print("YES") else: print("NO")
p04043
s163945517
Accepted
a = list(map(int, input().split())) a.sort() if a[0] == 5 and a[1] == 5 and a[2] == 7: print("YES") else: print("NO")
p04043
s180143803
Accepted
l = list(map(int, input().split())) l.sort(reverse=True) if l[0] == 7 and l[1] == 5 and l[2] == 5: print('YES') else: print('NO')
p04043
s841104299
Accepted
def resolve(): x, y, z = map(int, input().split()) if x + y + z == 17: print("YES") else: print("NO") resolve()
p04043
s914778811
Accepted
s = list(map(int, input().split())) tar = [5,7,5] for a in s: for b in tar: if a == b: tar.remove(b) break if tar == []: print("YES") else: print("NO")
p04043
s867586013
Accepted
num = input().split(' ') if num == ['5','7','5'] or num == ['7','5','5'] or num == ['5','5','7']: print('YES') else: print('NO')
p04043
s749595518
Accepted
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")
p04043
s548993295
Accepted
a = input().split() five = 0 seven = 0 for i in a: if i == "5": five += 1 elif i == "7": seven += 1 if five == 2 and seven == 1: print("YES") else: print("NO")
p04043
s655138448
Accepted
a=list((input())) print('YES' if a.count(('5'))==2 and a.count(('7'))==1 else 'NO')
p04043
s185406062
Accepted
huga = list(map(int, input().split())) huga.sort() if huga[0] == 5 and huga[1] == 5 and huga[2] == 7: print('YES') else: print('NO')
p04043
s423229715
Accepted
print('YNEOS'['7 7'in input()::2])
p04043
s481523017
Accepted
import sys a = list(map(int,input().split())) seven = a.count(7) five = a.count(5) if five==2 and seven==1: print("YES") else: print("NO")
p04043
s725869987
Accepted
As=input().split() count5=0 count7=0 for A in As: if A=="5": count5+=1 elif A=="7": count7+=1 if count5==2 and count7==1: print("YES") else: print("NO")
p04043
s216097349
Accepted
A = list(map(int, input().split())) A.sort() if A == [5,5,7]: print("YES") else: print("NO")
p04043
s605170123
Accepted
ABC=input().split() five_count=ABC.count("5") seven_count=ABC.count("7") if five_count == 2 and seven_count == 1: print("YES") else: print("NO")
p04043
s528140424
Accepted
import sys input = lambda: sys.stdin.readline().rstrip() def main(): x = list(map(int, input().split())) if x.count(5) == 2 and x.count(7) == 1: print("YES") else: print("NO") if __name__ == '__main__': main()
p04043
s920516187
Accepted
from sys import stdin, stdout from time import perf_counter import sys sys.setrecursionlimit(10**9) mod = 10**9+7 # import sys # sys.stdout = open("e:/cp/output.txt","w") # sys.stdin = open("e:/cp/input.txt","r") l=sorted(map(int,input().split())) print("YES" if l == [5,5,7] else "NO")
p04043
s129428509
Accepted
nums = list(input().split()) if nums.count('5') == 2 and nums.count('7') == 1: print("YES") else: print("NO")
p04043
s939017588
Accepted
l = list(map(int, input().split())) five = 0 seven = 0 for i in l: if i == 5: five += 1 elif i == 7: seven += 1 if five ==2 and seven ==1: print("YES") else: print("NO")
p04043
s976443243
Accepted
def actual(A, B, C): if (A, B, C) in [(5, 5, 7), (5, 7, 5), (7, 5, 5)]: return 'YES' return 'NO' A, B, C = map(int, input().split()) print(actual(A, B, C))
p04043
s646035662
Accepted
S=input();print('NYOE S'[S.count('5')==2 and S.count('7')==1::2])
p04043
s746443854
Accepted
print('YNEOS'[eval(input().replace(*' *'))!=175::2])
p04043
s350845870
Accepted
from collections import Counter ns = Counter([int(i) for i in input().split()]) if ns[5] == 2 and ns[7] == 1: print("YES") else: print("NO")
p04043
s427533095
Accepted
a = sorted(list(map(int, input().split()))) print("YES" if a == [5,5,7] else "NO")
p04043
s462061142
Accepted
import sys input = sys.stdin.readline a,b,c = sorted(list(map(int,input().split()))) print('YES' if a==b and b==5 and c==7 else 'NO')
p04043
s693505335
Accepted
A,B,C = map(int,input().split()) count7 = 0 count5 = 0 ans = [A,B,C] for i in ans: if i == 7: count7 += 1 elif i == 5: count5 += 1 if count7 == 1 and count5 == 2: print('YES') else: print('NO')
p04043
s554414034
Accepted
A, B, C = map(int, input().split()) count_5 = 0 count_7 = 0 if A == 5: count_5 += 1 elif A == 7: count_7 += 1 if B == 5: count_5 += 1 elif B == 7: count_7 += 1 if C == 5: count_5 += 1 elif C == 7: count_7 += 1 if count_5 == 2 and count_7 == 1: print("YES") else: print("NO")
p04043
s292554077
Accepted
A = list(input()) print("YES" if A.count("5")==2 and A.count("7")==1 else "NO")
p04043
s009290741
Accepted
a, b, c = input().split() flag = bool if a == '5' and b =='7' and c=='5': flag = True if a =='7' and b=='5' and c == '5': flag = True if a =='5' and b=='5' and c == '7': flag = True if flag == True: print('YES') else: print('NO')
p04043
s404969708
Accepted
import bisect, collections, copy, heapq, itertools, math, string, sys input = lambda: sys.stdin.readline().rstrip() sys.setrecursionlimit(10**7) INF = float('inf') def I(): return int(input()) def F(): return float(input()) def SS(): return input() def LI(): return [int(x) for x in input().split()] def LI_(): return [int(x)-1 for x in input().split()] def LF(): return [float(x) for x in input().split()] def LSS(): return input().split() def resolve(): A, B, C = LI() if (A, B, C).count(5) == 2 and (A, B, C).count(7) == 1: print('YES') else: print('NO') if __name__ == '__main__': resolve()
p04043
s781097452
Accepted
A,B,C = map(int, input().split()) list = sorted([A,B,C]) print('YES' if list == [5,5,7] else 'NO')
p04043
s362769994
Accepted
a = input().split() if a.count('5')==2 and a.count('7')==1: print('YES') else: print('NO')
p04043
s207159064
Accepted
a, b, c = map(int, input().split()) if a+b+c == 17 and (5 in [a,b,c] and 7 in [a,b,c]): print("YES") else: print("NO")
p04043
s751267612
Accepted
n_5 = 0 n_7 = 0 a = map(int, input().split()) for i in a: if i == 5: n_5 += 1 elif i == 7: n_7 += 1 if n_5 == 2 and n_7 == 1: print("YES") else: print("NO")
p04043
s795091335
Accepted
x = 1 for a in input().split(): x *= int(a) if x == 175: print('YES') else: print('NO')
p04043
s545353237
Accepted
a,b,c=sorted(input().split()) print(["NO","YES"][a==b=="5" and c=="7"])
p04043
s106235384
Accepted
li=list(map(int,input().split())) ans = 'YES' if (li.count(5) == 2) and (li.count(7) == 1) else "NO" print(ans)