problem_id stringclasses 100
values | submission_id stringlengths 10 10 | status stringclasses 2
values | code stringlengths 6 806 |
|---|---|---|---|
p04043 | s312442667 | Accepted | arr = list(map(int, input().split()))
if arr.count(5) == 2 and arr.count(7):
print("YES")
else:
print('NO')
|
p04043 | s797256748 | Accepted | s = input().split()
fiveCNT = 0
sevenCNT = 0
if s[0] == '5':
fiveCNT = fiveCNT + 1
elif s[0] == '7':
sevenCNT = sevenCNT + 1
if s[1] == '5':
fiveCNT = fiveCNT + 1
elif s[1] == '7':
sevenCNT = sevenCNT + 1
if s[2] == '5':
fiveCNT = fiveCNT + 1
elif s[2] == '7':
sevenCNT = sevenCNT + 1
if fiveCNT == 2 and sevenCNT == 1:
print('YES')
else:
print('NO')
|
p04043 | s281012353 | Accepted | x = list(map(int, input().split()))
x.sort()
f = True
for i, e in enumerate(x):
tmp = 5
if i == 2:
tmp = 7
f &= (tmp == e)
print("YES" if f else "NO")
|
p04043 | s233840121 | Accepted | a = list(map(int, input().split()))
a.sort()
if a == [5, 5, 7]:
print("YES")
else:
print("NO")
|
p04043 | s209764526 | Accepted | A = list(map(int, input().split()))
if A.count(7) == 1 and A.count(5) == 2:
print("YES")
else:
print("NO")
|
p04043 | s559653475 | Accepted | a=list(map(int,input().split()))
five=a.count(5)
seven=a.count(7)
if five==2 and seven==1:
print('YES')
else:
print('NO')
|
p04043 | s697078953 | Accepted | # -*- coding: utf-8 -*-
# 整数の入力
a, b, c = map(int, input().split())
# カウンタのクリア
five_count = 0
seven_count = 0
# 5,7,5を判定
def setsu_check(x):
global five_count, seven_count
if x == 5:
five_count+=1
elif x == 7:
seven_count+=1
# 判定関数のCALL
setsu_check(a)
setsu_check(b)
setsu_check(c)
if five_count == 2 and seven_count == 1:
print("YES")
else:
print("NO") |
p04043 | s889839273 | Accepted | a = list(map(int,input().split()))
if a.count(5) == 2 and a.count(7) == 1:
print("YES")
else:
print("NO") |
p04043 | s823703214 | Accepted | # -*- coding: utf-8 -*-
# スペース区切りの整数の入力
A, B, C = map(int, input().split())
# 文字列の入力
#s = input()
#print(s[0:K-1]+s[K-1].lower()+s[K:N])
if A*B*C == 5*5*7:
print("YES")
else:
print("NO")
|
p04043 | s778105440 | Accepted | l = list(map(int, input().split()))
count = count2 = 0
for i in range(3):
if(l[i] == 5):
count+=1
elif(l[i] == 7):
count2 += 1
if(count == 2 and count2 == 1):
print("YES")
else:
print("NO") |
p04043 | s931307079 | Accepted | a,b,c=map(int,input().split())
if(a==5):
if(b==7 and c==5):
print("YES")
elif(b==5 and c==7):
print("YES")
else:
print("NO")
elif(a==7):
if(b==5 and c==5):
print("YES")
else:
print("NO")
else:
print("NO") |
p04043 | s981623239 | Accepted | l = list(map(int, input().split()))
count_5 = 0
count_7 = 0
for r in l:
if r == 5:
count_5 += 1
if r == 7:
count_7 += 1
if count_5 == 2 and count_7 == 1:
print('YES')
else:
print('NO')
|
p04043 | s772041215 | Accepted | a, b, c = map(int, input().split())
s = str(a) + str(b) + str(c)
if s == "557":
print("YES")
elif s == "575":
print("YES")
elif s == "755":
print("YES")
else:
print("NO") |
p04043 | s899889122 | Accepted | a, b, c = map(int, input().split())
if a==5 or 7 and b==5 or 7 and c==5 or 7:
if a+b+c == 17:
print("YES")
else:
print("NO")
else:
print("NO") |
p04043 | s212629682 | Accepted | A = list(map(int, input().split()))
A_sort = sorted(A)
if A_sort[0]==5 and A_sort[1]==5 and A_sort[2]==7:
print("YES")
else:
print("NO")
|
p04043 | s697794647 | Accepted | a,b,c=map(int,input().split())
if (a+b+c==17):
print('YES')
else:
print('NO') |
p04043 | s785720277 | Accepted | li = list(map(int, input().rstrip().split()))
five = 0
seven = 0
for x in li:
if x == 5:
five += 1
elif x == 7:
seven += 1
if five == 2 and seven == 1:
print("YES")
else:
print("NO") |
p04043 | s646920313 | 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 | s734326065 | Accepted | s = input().split()
s.sort()
if s[0] == '5' and s[1] == '5' and s[2] == '7':
print('YES')
else:
print('NO') |
p04043 | s640901301 | Accepted | A,B,C = map(int,input().split())
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) |
p04043 | s434398734 | Accepted | a,b,c=(int(x) for x in input().split())
if a==b==5 and c==7:
print('YES')
elif b==c==5 and a==7:
print('YES')
elif c==a==5 and b==7:
print('YES')
else:
print('NO')
|
p04043 | s288845861 | Accepted | a = input()
A = int(a[0])
B = int(a[2])
C = int(a[4])
if(A==5 and B==7 and C==5):
print('YES')
elif(A==7 and B==5 and C==5):
print('YES')
elif(A==5 and B==5 and C==7):
print('YES')
else:
print('NO')
|
p04043 | s184317641 | Accepted |
T = [int(_) for _ in input().split()]
x = sorted(T)
if x[0] == 5 and x[1] == 5 and x[2] == 7:
print("YES")
else:
print("NO") |
p04043 | s003626298 | Accepted | tupni = [int(idx) for idx in input().split(" ")]
tupni.sort()
if tupni == [5,5,7]:
print("YES")
else:
print("NO") |
p04043 | s107442013 | Accepted | a = list(map(int, input().split()))
if a.count(5) == 2 and a.count(7) == 1:
print('YES')
else:
print('NO') |
p04043 | s769786498 | Accepted |
l=list(map(int,input().split()))
if l.count(5)==2 and l.count(7)==1:
print('YES')
else:
print('NO') |
p04043 | s857873262 | Accepted | a,b,c=map(int,input().split())
d=[a,b,c]
if d.count(5)==2 and d.count(7)==1:
print("YES")
else:
print("NO")
|
p04043 | s644653229 | Accepted | a,b,c=map(int,input().split());print(['NO','YES'][max(a,b,c)==7 and (a+b+c)-max(a,b,c)==10]) |
p04043 | s048725894 | Accepted | i=input()
if i=="5 7 5" or i=="7 5 5" or i=="5 5 7":
print("YES")
else:
print("NO") |
p04043 | s989113459 | Accepted | s = input()
if s.count('5') == 2 and s.count('7') == 1:
print('YES')
else:
print('NO')
|
p04043 | s289971442 | Accepted | abc = input().split()
d = abc[0]
e = abc[1]
f = abc[2]
g = d + e + f
g = int(g)
a = 575
b = 557
c = 755
if g == a:
print("YES")
elif g == b:
print("YES")
elif g == c:
print("YES")
else:
print("NO")
|
p04043 | s105674391 | Accepted | S = input()
if S.count("5") == 2 and S.count("7") == 1 :
print("YES")
else :
print("NO") |
p04043 | s765437950 | Accepted | l = sorted(list(map(int,input().split())))
ans = [5,5,7]
print("YES" if l == ans else "NO")
|
p04043 | s509199604 | Accepted | length = list(map(int, input().split()))
length.sort()
if length == [5,5,7]:
print('YES')
else:
print('NO')
|
p04043 | s827122252 | Accepted | 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 c == b == 5 and a== 7:
print("YES")
else:
print("NO") |
p04043 | s744749052 | Accepted | X = list(map(int,input().split()))
X.sort()
print('YES' if X==[5,5,7] else 'NO') |
p04043 | s893593198 | Accepted | ABC = input().split()
print("YES" if ABC.count("5") == 2 and ABC.count("7") == 1 else "NO") |
p04043 | s693412349 | Accepted | num=list(map(int,input().split()))
num.sort()
print('YES' if num==[5,5,7] else 'NO')
|
p04043 | s886287336 | Accepted | abc = list(map(int,input().split()))
if 5 in abc and 7 in abc and abc.count(7)==1:
print('YES')
else:
print('NO')
|
p04043 | s165682701 | Accepted | from fractions import gcd
from collections import Counter, deque, defaultdict
from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge
from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort
from itertools import accumulate, product, permutations, combinations
def main():
A = list(map(int, input().split()))
print('YES') if A.count(5) == 2 and A.count(7) == 1 else print('NO')
if __name__ == '__main__':
main() |
p04043 | s495644447 | Accepted | a,b,c=sorted(map(int,input().split()))
print(["NO","YES"][a==b==5 and c==7]) |
p04043 | s232146658 | 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 | s732312747 | Accepted | import sys
def input(): return sys.stdin.readline().strip()
def main():
a, b, c = map(int, input().split())
if a == 5 and b == 5 and c == 7:
print("YES")
return
if b == 5 and c == 5 and a == 7:
print("YES")
return
if c == 5 and a == 5 and b == 7:
print("YES")
return
print("NO")
if __name__ == "__main__":
main()
|
p04043 | s774655158 | Accepted | l = list(map(int,input().split()))
go = 0
shichi = 0
for i in range(3):
if l[i] == 5:
go += 1
for i in range(3):
if l[i] == 7:
shichi += 1
if go == 2 and shichi ==1:
print('YES')
else:
print('NO')
|
p04043 | s421147646 | Accepted | a, b, c = map(int, input().split())
abc = sorted([a, b, c])
if abc[0] == 5 and abc[1] == 5 and abc[2] == 7:
print('YES')
else:
print('NO') |
p04043 | s683825737 | Accepted | a = [int(x) for x in input().split()]
if a.count(5) == 2 and a.count(7) == 1:
print("YES")
else:
print("NO") |
p04043 | s061326851 | Accepted | icase=42
if icase==42:
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 | s736745274 | Accepted | A=list(map(int,input().split()))
A.sort()
#print(A)
if A==[5,5,7]:
print('YES')
else:
print('NO') |
p04043 | s525508093 | Accepted | t = list(map(int,input().split()))
if t.count(5)==2 and t.count(7)==1:
print('YES')
else:
print('NO') |
p04043 | s383805448 | Accepted | a = list(map(int,input().split()))
if (a.count(5) == 2) and (a.count(7) == 1):
print("YES")
else:
print("NO") |
p04043 | s722005936 | Accepted | L = sorted(map(int, input().split()))
ans = 'YES' if L == [5, 5, 7] else 'NO'
print(ans) |
p04043 | s366053040 | Accepted | l=list(map(int,input().split()))
print('YES'if l.count(5)==2 and l.count(7)==1 else'NO')
|
p04043 | s916083539 | Accepted | class A:
def solve(self):
[a, b, c] = sorted([int(x) for x in input().split(" ")])
if a == 5 and b == 5 and c == 7:
print("YES")
else:
print("NO")
A().solve()
|
p04043 | s423933748 | Accepted | def prod(ls):
def resolve(ls, a):
if len(ls) == 1:
return a*ls[0]
else:
car = ls[0]
ls = ls[1:]
return resolve(ls, a*car)
return resolve(ls, 1)
ls = list(map(int, input().split()))
if sum(ls) == 17 and prod(ls) == 175:
print("YES")
else :
print("NO") |
p04043 | s240913636 | Accepted | a, b, c = map(int,input().split())
d = [a, b, c]
if d.count(5) == 2 and d.count(7) == 1:
print("YES")
else:
print("NO") |
p04043 | s284126178 | Accepted | li = list(map(int,input().split()))
if sum(li) != 17 or max(li) != 7 or min(li) != 5:
print("NO")
exit()
print("YES") |
p04043 | s153456365 | Accepted | input_line = list(map(int, input().split()))
input_line.sort()
print("YES" if input_line == [5, 5, 7] else "NO") |
p04043 | s747716719 | Accepted | input_line = input().split()
if input_line.count("5") == 2 and input_line.count("7") == 1:
print("YES")
else:
print("NO") |
p04043 | s551443742 | Accepted | a,b,c=map(int,input().split())
d=0
if a==5 or b==5 or c==5:
if a==7 or b==7 or c==7:
if a+b+c==17:
print("YES")
d=1
if d==0:
print("NO") |
p04043 | s069440725 | Accepted | arr = list(map(int, input().split()))
arr.sort()
if (arr[0] == 5) and (arr[1] == 5) and (arr[2] == 7):
print("YES")
else:
print("NO") |
p04043 | s648305711 | Accepted | print(['YES','NO'][sum(list(map(int,input().split()))) != 17]) |
p04043 | s950618980 | 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 | s581317367 | Accepted | if __name__ == '__main__':
haiku = input()
if haiku.count('5') == 2 and haiku.count('7') == 1:
print('YES')
else:
print('NO') |
p04043 | s700034007 | Accepted | A = list(map(int, input().split()))
A.sort()
if A == [5, 5, 7]:
print("YES")
else:
print("NO")
|
p04043 | s846156021 | Accepted | a=sorted(list(map(int,input().split())))
print("YES" if a == [5,5,7] else "NO")
|
p04043 | s434183205 | 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 | s487708339 | Accepted | a,b,c = sorted(map(int, input().split()))
if (a+b+c==17)&(a==b)&(c==7):
print("YES")
else:
print("NO")
|
p04043 | s482300553 | Accepted | S = list(map(int, input().split()))
if S.count(5) == 2 and S.count(7):
print("YES")
else:
print("NO")
|
p04043 | s135759770 | Accepted | A = list(map(int, input().split()))
if A.count(5) == 2 and A.count(7) == 1:
print('YES')
else:
print('NO') |
p04043 | s626033553 | Accepted | a = list(map(int,input().split()))
if(sum(a) == 17 and 7 in a):
print("YES")
else:
print("NO") |
p04043 | s026621437 | Accepted | abc = list(map(int,input().split()))
if abc == [5,5,7]:
print('YES')
exit()
if abc == [7,5,5]:
print('YES')
exit()
if abc == [5,7,5]:
print('YES')
exit()
print('NO')
|
p04043 | s788979344 | Accepted | a=list(map(int,input().split()))
if a.count(7)==1 and a.count(5)==2:
print("YES")
else:
print("NO") |
p04043 | s926025226 | Accepted | S=input();print('YES' if S.count('7')==1 and S.count('5')==2 else 'NO') |
p04043 | s679187246 | Accepted | l=sorted(list(map(int,input().split())))
print("YES" if l[0]==l[1]==5 and l[2]==7 else "NO") |
p04043 | s735649991 | Accepted | s=input().split()
print("YES" if s.count("5")==2 and s.count("7")==1 else "NO") |
p04043 | s055448522 | Accepted | sets = sorted(list(map(int, input().split())))
print('YES' if sets == [5, 5, 7] else 'NO')
|
p04043 | s252795119 | Accepted | def main():
x = sorted(list(map(int, input().split())))
print('YES' if x == [5, 5, 7] else 'NO')
if __name__ == '__main__':
main()
|
p04043 | s478932383 | Accepted | 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 and a==7:
print('YES')
else:
print('NO')
|
p04043 | s969958649 | Accepted | a,b,c=map(int,input().split())
print("YES" if a+b+c==17 and a*b*c==175 else "NO") |
p04043 | s078218585 | Accepted | array = list(map(int, (input().split())))
if array.count(5) == 2 and array.count(7) == 1:
print("YES")
else:
print("NO") |
p04043 | s394285516 | Accepted | a, b, c=map(int,input().split())
if a==7 and b==5 and c==5:
print("YES")
elif a==5 and b==7 and c==5:
print("YES")
elif a==5 and b==5 and c==7:
print("YES")
else:
print("NO")
|
p04043 | s667777697 | Accepted | a = input().split()
if a.count('5') == 2 and a.count('7'):
print('YES')
else:
print('NO') |
p04043 | s266962230 | Accepted | A, B, C = map(int, input().split())
if A + B + C == 17 and max(A, B, C) == 7 and min(A, B, C) == 5:
print('YES')
else:
print('NO') |
p04043 | s884196668 | Accepted | A, B, C = map(int, input().split())
fsf = [A, B, C]
if (fsf.count(5) == 2) & (fsf.count(7) == 1):
print("YES")
else:
print("NO") |
p04043 | s814199176 | Accepted | def main():
A, B, C = map(int, input().split())
if (A == 5 and B == 7 and C == 5) or (A == 7 and B == 5 and C == 5) or (A == 5 and B == 5 and C ==7):
print('YES')
else:
print('NO')
main() |
p04043 | s239750578 | Accepted | a, b, c = map(int, input().split())
iroha = [a, b, c]
if iroha.count(5) == 2 and iroha.count(7) == 1:
print("YES")
else:
print("NO") |
p04043 | s271606878 | Accepted | a=''.join(sorted(map(str,input().split())))
print('YES' if a=='557' else 'NO') |
p04043 | s528322557 | Accepted | a,b,c=map(int,input().split())
List=[a,b,c]
if List.count(5)==2 and List.count(7)==1:
print("YES")
else:
print("NO") |
p04043 | s186308606 | Accepted | a=input().split()
if a.count('5') == 2:
if a.count('7')==1:
print('YES')
else:
print('NO') |
p04043 | s152094397 | Accepted | a,b,c = map(int, input().split())
ans = "NO"
if a+b+c == 17 and a*b*c == 175:
ans = "YES"
print(ans) |
p04043 | s834675936 | Accepted | num = list(map(int, input().split()))
ans = sorted(num)
if(ans[0]==5 and ans[1]==5 and ans[2] == 7):
print("YES")
else:
print("NO") |
p04043 | s448302375 | Accepted | # -*- coding: utf-8 -*-
# 整数の入力
lst = list(map(int, input().split()))
if lst[0] == 5:
if (lst[1] == 7 and lst[2] == 5) or (lst[1] == 5 and lst[2] == 7):
print("YES")
exit()
elif lst[0] == 7:
if lst[1] == 5 and lst[2] == 5:
print("YES")
exit()
print("NO") |
p04043 | s472115789 | Accepted | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
ABC = list(map(int, input().split()))
ABC.sort()
print('YES' if [5, 5, 7] == ABC else 'NO')
if __name__ == "__main__":
main()
|
p04043 | s371580876 | Accepted | a,b,c=map(int,input().split())
if (a==7 and b==5 and c==5) or (a==5 and b==7 and c==5) or (a==5 and b==5 and c==7):
print("YES")
else:
print("NO") |
p04043 | s470027947 | Accepted | a, b, c = map(int, input().split())
iroha = [a, b, c]
if iroha.count(5) == 2 and iroha.count(7) == 1:
print("YES")
else:
print("NO") |
p04043 | s485070454 | Accepted | from sys import stdin
l = stdin.readline().rstrip().split()
cnt5 = cnt7 = 0
for ln in range(3):
if l[ln] == '5' : cnt5 += 1
if l[ln] == '7' : cnt7 += 1
if cnt5 == 2 and cnt7 == 1 : print('YES')
else : print('NO')
|
p04043 | s799988678 | Accepted | import sys
readline = sys.stdin.buffer.readline
a,b,c = map(int,readline().split())
if a == 5 and (b==5 or c==5):
if b==7 or c==7:
print("YES")
else:
print("NO")
elif a == 7 and (b==5 and c==5):
print("YES")
else:
print("NO") |
p04043 | s897484004 | 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 | s020680160 | Accepted | s = list(map(int,input().split()))
s.sort()
if s==[5,5,7]:
print("YES")
else:
print("NO") |
p04043 | s140427734 | Accepted | # A
l = list(map(int, input().split()))
if l.count(5) == 2 and l.count(7) == 1:
print('YES')
else:
print('NO') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.