problem_id
stringclasses 100
values | submission_id
stringlengths 10
10
| status
stringclasses 2
values | code
stringlengths 6
806
|
|---|---|---|---|
p04043
|
s408788717
|
Accepted
|
def check():
A = list(map(int, input().split()))
if A.count(5)!=2 or A.count(7)!=1:
return 'NO'
return 'YES'
print(check())
|
p04043
|
s483639917
|
Accepted
|
import sys
input = sys.stdin.readline
def main():
A, B, C = map(int, input().split())
cnt_5 = 0
for i in [A, B, C]:
if i == 5:
cnt_5 += 1
cnt_7 = 0
for i in [A, B, C]:
if i == 7:
cnt_7 += 1
if cnt_5 == 2 and cnt_7 == 1:
print("YES")
else:
print("NO")
if __name__ == "__main__":
main()
|
p04043
|
s117767263
|
Accepted
|
import sys
input = sys.stdin.readline
A = [int(x) for x in input().split()]
cnt_5 = 0
cnt_7 = 0
for i in A:
if i == 5:
cnt_5 += 1
elif i == 7:
cnt_7 += 1
if cnt_5 == 2 and cnt_7 == 1:
print("YES")
else:
print("NO")
|
p04043
|
s132693421
|
Accepted
|
# coding: utf-8
input_ = input().split()
count_5 = 0
count_7 = 0
for i in input_:
if i == '5':
count_5 += 1
elif i == '7':
count_7 += 1
if count_5 == 2 and count_7 == 1:
print('YES')
else:
print('NO')
|
p04043
|
s663889118
|
Accepted
|
a, b, c = map(int, input().split())
if a == 5:
if (b == 5 and c == 7) or (b == 7 and c == 5):
print('YES')
else:
print('NO')
elif b == 5:
if (a == 5 and c == 7) or (a == 7 and c == 5):
print('YES')
else:
print('NO')
elif c == 5:
if (a == 5 and b == 7) or (a == 7 and b == 5):
print('YES')
else:
print('NO')
else:
print('NO')
|
p04043
|
s166617010
|
Accepted
|
a,b,c = map(int, input().split())
if a==b and b<c: print("YES")
elif b==c and c<a: print("YES")
elif c==a and a<b: print("YES")
else: print("NO")
|
p04043
|
s384521151
|
Accepted
|
nums = input().split()
nums.sort()
print( "YES" if ["5","5","7"] == nums else "NO" )
|
p04043
|
s958172452
|
Accepted
|
L = [int(x) for x in input().split()]
L.sort()
if L == [5,5,7]:
print("YES")
else:
print("NO")
|
p04043
|
s590257282
|
Accepted
|
def test():
arr = input()
arr = arr.split()
arr = sorted(arr)
if arr==['5', '5', '7']:
print("YES")
else:
print("NO")
test()
|
p04043
|
s225254286
|
Accepted
|
i = list(map(int, input().split()))
if 7 in i:
i.remove(7)
if i[0] == 5 and i[1] == 5:
print('YES')
else:
print('NO')
else:
print('NO')
|
p04043
|
s240366648
|
Accepted
|
a,b,c = map(int,input().split())
if ( (a+b+c ==17) and (a==5 or b==5 or c==5) and (a==7 or b==7 or c==7)):
print("YES")
else:
print("NO")
|
p04043
|
s648740838
|
Accepted
|
l = list(map(int, input().split()))
if l.count(5) == 2 and l.count(7) == 1:
print('YES')
else:
print('NO')
|
p04043
|
s631571719
|
Accepted
|
numbers=input()
numbers_list=numbers.split(' ')
if numbers_list.count('5')==2 and numbers_list.count('7')==1:
print('YES')
else:
print('NO')
|
p04043
|
s700714339
|
Accepted
|
a, b, c = map(int, input().split())
sor_len_list = sorted([a, b, c])
if sor_len_list == [5, 5, 7]:
print('YES')
else:
print('NO')
|
p04043
|
s750753859
|
Accepted
|
List=input().split()
print("YES" if List.count("5")==2 and List.count("7")==1 else "NO")
|
p04043
|
s225142929
|
Accepted
|
a, b, c = map(int, input().split(' '))
if a + b + c != 17:
print('NO')
elif a * b * c != 175:
print('NO')
else:
print('YES')
|
p04043
|
s158514161
|
Accepted
|
print("YNEOS"[sorted(map(int, input().split()))!=[5,5,7]::2])
|
p04043
|
s062467243
|
Accepted
|
a, b, c = map(int, input().split())
d = a + b + c
if d == 17:
print('YES')
else:
print('NO')
|
p04043
|
s980403695
|
Accepted
|
arr = list(map(int, input().split()))
arr = sorted(arr)
if arr[0] == 5 and arr[1] == 5 and arr[2] == 7:
print("YES")
else:
print("NO")
|
p04043
|
s440149107
|
Accepted
|
a = list(map(int, input().split()))
fives = 0
sevens = 0
for i in a:
if(i == 5):
fives += 1
elif(i == 7):
sevens += 1
if((fives == 2) and (sevens == 1)):
print("YES")
else:
print("NO")
|
p04043
|
s498129223
|
Accepted
|
A,B,C=map(int,input().split())
if A==5:
if B==7:
if C==5:
print('YES')
else:
print('NO')
elif B==5:
if C==7:
print('YES')
else:
print('NO')
else:
print('NO')
elif A==7:
if B==C==5:
print('YES')
else:
print('NO')
else:
print('NO')
|
p04043
|
s105309615
|
Accepted
|
"""
ABC042 A 和風いろはちゃんイージー
https://atcoder.jp/contests/abc042/tasks/abc042_a
"""
l = list(map(int, input().split()))
l5 = l.count(5)
l7 = l.count(7)
if l5 == 2 and l7 == 1:
print("YES")
else:
print("NO")
|
p04043
|
s608118019
|
Accepted
|
if sorted(list(map(int, input().split()))) == [5, 5, 7]:
print('YES')
else:
print('NO')
|
p04043
|
s742888405
|
Accepted
|
from sys import stdin,stdout
def main():
line=stdin.readline()
parts=line.split()
a=int(parts[0])
b=int(parts[1])
c= int(parts[2])
l=[a,b,c]
l.sort()
if l[0]==5 and l[1]==5 and l[2]==7:
stdout.write("YES")
else:
stdout.write("NO")
main()
|
p04043
|
s132417793
|
Accepted
|
print('YNEOS'[sorted(list(map(int,input().split())))!=[5,5,7]::2])
|
p04043
|
s041313254
|
Accepted
|
words = list(map(int, input().split()))
if words.count(7) == 1 and words.count(5) == 2:
print('YES')
else:
print('NO')
|
p04043
|
s494716881
|
Accepted
|
abc =input()
five = abc.count("5")
seven = abc.count("7")
if five==2 and seven==1:
print("YES")
else:
print("NO")
|
p04043
|
s192562508
|
Accepted
|
X = input()
print("YES" if X.count("5") == 2 and X.count("7") == 1 else "NO")
|
p04043
|
s921057498
|
Accepted
|
example = ('5', '7', '5')
five = 0
seven = 0
ipt = []
s = input()
s = s.split()
for i in s:
if i == '5':
five += 1
elif i == '7':
seven += 1
if five == 2 and seven == 1:
print("YES")
else:
print("NO")
|
p04043
|
s358998930
|
Accepted
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
ABC = list(map(int, input().split()))
print('YES' if ABC.count(5) == 2 and ABC.count(7) == 1 else 'NO')
if __name__ == "__main__":
main()
|
p04043
|
s293925403
|
Accepted
|
L = list(map(int,input().split()))
cnt = 0
for i in range(3):
cnt += L[i]
if cnt == 17:
print("YES")
else:
print("NO")
|
p04043
|
s230622302
|
Accepted
|
ABC = input().split()
print("YES" if ABC.count("5") == 2 and ABC.count("7") == 1 else "NO")
|
p04043
|
s918178143
|
Accepted
|
n = list(map (int, input().split()))
if n.count(int (5)) == 2 and n.count(int (7)) == 1:
print("YES")
else:
print("NO")
|
p04043
|
s548846663
|
Accepted
|
L = sorted(list(map(int,input().split())))
if L[1]==5:
print("YES")
else:
print("NO")
|
p04043
|
s187031098
|
Accepted
|
s_lst= list(input().split())
s_lst.sort()
ans = "YES" if "".join(s_lst)=="557" else "NO"
print(ans)
|
p04043
|
s965274869
|
Accepted
|
A=list(map(int,input().split()))
A.sort()
if A==[5,5,7]:
print("YES")
else:
print("NO")
|
p04043
|
s637172239
|
Accepted
|
p=list(map(int,input().split()))
p.sort()
if p==[5,5,7]:
print("YES")
else:
print("NO")
|
p04043
|
s601061580
|
Accepted
|
def main():
abc = ''.join(sorted(input().replace(' ', '')))
print('YES' if abc == '557' else 'NO')
if __name__ == '__main__':
main()
|
p04043
|
s264124334
|
Accepted
|
L = list(map(int,input().split()))
if L.count(5) == 2 and L.count(7) == 1:
print("YES")
else:
print("NO")
|
p04043
|
s264476531
|
Accepted
|
abc = list(map(int,input().split()))
haiku = [5,7,5]
for i in range(3):
if haiku[i] in abc:
abc.remove(haiku[i])
else:
print("NO")
break
else:
print("YES")
|
p04043
|
s501648660
|
Accepted
|
a, b, c = map(int, input().split())
print('YES' if a+b+c == 17 else 'NO')
|
p04043
|
s134637329
|
Accepted
|
A,B,C=map(int,input().split())
if (A==B and A==5 and C==7) or (A==C and A==5 and B==7) or (B==C and B==5 and A==7):
print("YES")
else:
print("NO")
|
p04043
|
s024002627
|
Accepted
|
a = input()
if a.count("5") == 2 and a.count("7") == 1:
print("YES")
else:
print("NO")
|
p04043
|
s568776672
|
Accepted
|
a, b, c = map(int, input().split())
if sorted((a, b, c)) == [5, 5, 7]:
print("YES")
else:
print("NO")
|
p04043
|
s424588772
|
Accepted
|
nums = str(input())
if nums.count('5') == 2 and nums.count('7') == 1:
print('YES')
else:
print('NO')
|
p04043
|
s831933541
|
Accepted
|
s = input()
if s == "7 5 5" or s == "5 7 5" or s == "5 5 7":
print("YES")
else:
print("NO")
|
p04043
|
s985870870
|
Accepted
|
li = list(map(int, input().split()))
if li.count(5) == 2 and li.count(7) == 1:
print("YES")
else:
print("NO")
|
p04043
|
s769642592
|
Accepted
|
s = list(map(int, input().split()))
if s[0] + s[1] + s[2] == 17 and s[0] * s[1] * s[2] == 175:
print("YES")
else:
print("NO")
|
p04043
|
s708141771
|
Accepted
|
a, b, c = map(int, input().split())
l = [0 for i in range(10)]
l[a] += 1
l[b] += 1
l[c] += 1
if l[5] == 2 and l[7] == 1:
print("YES")
else:
print("NO")
|
p04043
|
s751403633
|
Accepted
|
A=list(map(int,input().split()))
A.sort()
if A[0]==A[1]==5 and A[2]==7:
print('YES')
else:
print('NO')
|
p04043
|
s822713954
|
Accepted
|
l = list(map(int, input().split()))
l.sort()
if l == [5, 5, 7]:
print("YES")
else:
print("NO")
|
p04043
|
s612808154
|
Accepted
|
def resolve():
l=list(map(int, input().split()))
l.sort()
if l==[5,5,7]:
print('YES')
else:
print('NO')
resolve()
|
p04043
|
s544621735
|
Accepted
|
s = list(map(int, input().split()))
print("YES" if s.count(5) == 2 and s.count(7) == 1 else "NO")
|
p04043
|
s309415691
|
Accepted
|
a = list(map(int,input().split()))
a.sort()
if a == [5,5,7]:
print( "YES")
else:
print("NO")
|
p04043
|
s116470572
|
Accepted
|
inp=input().split()
prod = int(inp[0]) * int(inp[1]) * int(inp[2])
#resid1 = prod//5
#resid2 = prod//7
if (prod == 175):
print('YES')
else:
print('NO')
|
p04043
|
s245657814
|
Accepted
|
t=list(map(int,input().split()))
if sorted(t) == [5,5,7]:
print('YES')
else:
print('NO')
|
p04043
|
s860788552
|
Accepted
|
A = sorted(map(int,input().split()))
if A == [5,5,7]:
print('YES')
else:
print('NO')
|
p04043
|
s806611644
|
Accepted
|
a,b,c = sorted(list(map(int,input().split())))
if [a,b,c] == [5,5,7]:
print('YES')
else:
print('NO')
|
p04043
|
s639541606
|
Accepted
|
ABC = input().split()
print("YES" if ABC.count("5") == 2 and ABC.count("7") == 1 else "NO")
|
p04043
|
s026757829
|
Accepted
|
a=list(map(int,input().split()))
a.sort()
if a==[5,5,7]:
print('YES')
else:
print('NO')
|
p04043
|
s313275510
|
Accepted
|
s = input()
s = s.split()
s.sort()
if s == ["5","5","7"]:
print("YES")
else:
print("NO")
|
p04043
|
s273087172
|
Accepted
|
x=[int(i) for i in input().split()]
y=[0,0]
for ele in x:
if ele==5: y[0]+=1
elif ele==7: y[1]+=1
else: continue
if y[0]==2:
if y[1]==1:
print('YES')
else:
print('NO')
else:
print("NO")
|
p04043
|
s962190774
|
Accepted
|
a = input().split()
print("YES" if a.count("5") == 2 and a.count("7") == 1 else "NO")
|
p04043
|
s630622394
|
Accepted
|
l = list(map(int, input().split()))
if l.count(5) == 2 and l.count(7) == 1:
print("YES")
else:
print("NO")
|
p04043
|
s215121443
|
Accepted
|
num_list = list(map(int, input().split()))
if num_list.count(5) == 2 and num_list.count(7) == 1:
print("YES")
else:
print("NO")
|
p04043
|
s441777253
|
Accepted
|
import sys
input = sys.stdin.readline
def main():
A, B, C = map(int, input().split())
l = [A, B, C]
l.sort()
if l[0] == l[1] == 5 and l[2] == 7:
print("YES")
else:
print("NO")
if __name__ == "__main__":
main()
|
p04043
|
s449229690
|
Accepted
|
num=list(map(int,input().split()))
five,seven=0,0
for i in range(3):
if num[i]==5:
five+=1
else:
seven+=1
print("YES" if(five==2 and seven==1) else "NO")
|
p04043
|
s988193320
|
Accepted
|
D = list(input())
if D.count("5") == 2 and D.count("7")==1:
print("YES")
else:
print("NO")
|
p04043
|
s333949629
|
Accepted
|
A,B,C = map(int,input().split())
S = [A,B,C]
if S.count(5) == 2 and S.count(7) == 1 :
print('YES')
else:
print('NO')
|
p04043
|
s424993430
|
Accepted
|
print(["NO", "YES"][sorted(input().split()) == ["5", "5", "7"]])
|
p04043
|
s385374199
|
Accepted
|
l = input().split()
l = list(map(int,l))
l.sort()
if l[0]==l[1]==5 and l[2]==7:
print("YES")
else:
print("NO")
|
p04043
|
s683959628
|
Accepted
|
#!/usr/bin/env python3
a, b, c = map(int, input().split())
l = [a,b,c]
if (l.count(5) == 2) & (l.count(7) == 1):
print('YES')
else:
print('NO')
|
p04043
|
s419772773
|
Accepted
|
value = input()
if value.count("5") == 2 and value.count("7") == 1:
print("YES")
else:
print("NO")
|
p04043
|
s652845992
|
Accepted
|
import sys
def MI(): return map(int,sys.stdin.readline().rstrip().split())
A,B,C = MI()
if A == B == 5 and C == 7:
print('YES')
elif A == C == 5 and B == 7:
print('YES')
elif B == C == 5 and A == 7:
print('YES')
else:
print('NO')
|
p04043
|
s573394101
|
Accepted
|
user_input = list(map(int, input().split()))
five = [w for w in user_input if w == 5]
seven = [w for w in user_input if w == 7]
if len(five) == 2 and len(seven) == 1:
print("YES")
else:
print("NO")
|
p04043
|
s983835427
|
Accepted
|
s = list(map(int, input().split()))
if s.count(5) == 2 and s.count(7) == 1:
print('YES')
else:
print('NO')
|
p04043
|
s985037852
|
Accepted
|
a,b,c=input().split()
if ((int(a)+int(b)+int(c)==17) and int(a)<=10 and int(b)<=10 and int(c)<=10 and int(a)>=1 and int(b)>=1 and int(c)>=1):
if ((int(a)==5 or int(a)==7) and (int(b)==5 or int(b)==7) and (int(c)==5 or int(c)==7)):
print("YES")
else:
print("NO")
else:
print("NO")
|
p04043
|
s881254621
|
Accepted
|
ary = list(map(int, input().split()))
print('YES' if ary.count(5) == 2 and ary.count(7) == 1 else 'NO')
|
p04043
|
s969747937
|
Accepted
|
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")
|
p04043
|
s895828269
|
Accepted
|
def main():
l = list(map(int,(input().split())))
if l.count(5)==2 and l.count(7) == 1:
print("YES")
else:
print("NO")
main()
|
p04043
|
s380520985
|
Accepted
|
X = list(map(int,input().split()))
if (X.count(5) == 2 and X.count(7) == 1):
print("YES")
else:
print("NO")
|
p04043
|
s198083398
|
Accepted
|
li = list(map(int, input().split()))
if li.count(5)==2 and li.count(7)==1:
print('YES')
else:
print('NO')
|
p04043
|
s559766155
|
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
|
s961259998
|
Accepted
|
N =list(map(int,input().split()))
if N[0]==7 and N[1]==5 and N[2]==5:
print("YES")
elif N[0]==5 and N[1]==7 and N[2]==5:
print("YES")
elif N[0]==5 and N[1]==5 and N[2]==7:
print("YES")
else:
print("NO")
|
p04043
|
s516845550
|
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
|
s590843971
|
Accepted
|
ABC = input()
print("YES" if ABC.count("5") == 2 and ABC.count("7") == 1 else "NO")
|
p04043
|
s964389432
|
Accepted
|
import sys
import math
import collections
import heapq
def set_debug(debug_mode=False):
if debug_mode:
fin = open('input.txt', 'r')
sys.stdin = fin
def int_input():
return list(map(int, input().split()))
if __name__ == '__main__':
# set_debug(True)
# t = int(input())
t = 1
for ti in range(1, t + 1):
a, b, c = int_input()
if (a == b == 5 and c == 7) or (a == c == 5 and b == 7) or (b == c ==5 and a == 7):
print('YES')
else:
print('NO')
|
p04043
|
s854702063
|
Accepted
|
ar=sorted(list(map(int,input().split())))
print("YES" if ar==[5,5,7] else "NO")
|
p04043
|
s278729300
|
Accepted
|
list = list(map(int,input().split()))
if list.count(5) == 2 and list.count(7) == 1:
print("YES")
else:
print("NO")
|
p04043
|
s371842302
|
Accepted
|
a = list(map(int,input().split()))
if a.count(5)==2 and a.count(7)==1:
print('YES')
else:
print('NO')
|
p04043
|
s549436502
|
Accepted
|
if "".join(sorted(input().split())) == "557":
print("YES")
else:
print("NO")
|
p04043
|
s121153276
|
Accepted
|
abc = list(map(int, input().split()))
if abc.count(5) == 2 and abc.count(7) == 1:
print("YES")
else:
print("NO")
|
p04043
|
s494447869
|
Accepted
|
s = input().split()
if s.count("7") == 1 and s.count("5") == 2:
print("YES")
else:
print("NO")
|
p04043
|
s893781655
|
Accepted
|
x=list(map(int,input().split()))
if x.count(5)==2 and x.count(7)==1:
print('YES')
else:
print('NO')
|
p04043
|
s225876023
|
Accepted
|
d=list(map(int,input().split()))
if d.count(5)==2 and 7 in d:
print('YES')
else:
print('NO')
|
p04043
|
s110509079
|
Accepted
|
A, B, C = map(int, input().split())
s = A, B, C
print('YES') if s.count(5) == 2 and s.count(7) == 1 else print('NO')
|
p04043
|
s357153384
|
Accepted
|
import sys
a,b,c=map(int,input().split())
l=[a,b,c,a,b]
for x in range(3):
if l[x]==l[x+1] and l[x]==5 and l[x+2]==7:
print('YES')
sys.exit()
print('NO')
|
p04043
|
s445155498
|
Accepted
|
ABC = list(map(int,input().split()))
if ABC.count(5)==2 and ABC.count(7)==1:
print('YES')
else:
print('NO')
|
p04043
|
s596583258
|
Accepted
|
a,b,c=map(int,input().split())
M=[a,b,c]
M.sort()
if M==[5,5,7]:
print('YES')
else:
print('NO')
|
p04043
|
s996496665
|
Accepted
|
print("YNEOS"[sorted(map(int, input().split())) != [5, 5, 7]::2])
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.