problem_id stringclasses 100
values | submission_id stringlengths 10 10 | status stringclasses 2
values | code stringlengths 6 806 |
|---|---|---|---|
p04043 | s718999854 | Accepted | A = input()
if A.count('5') == 2 and A.count('7') == 1:
print('YES')
else:
print('NO')
|
p04043 | s384352711 | Accepted | from sys import stdin, stdout
def main():
line = stdin.readline()
parts = line.split()
parts.sort()
stdout.write('YES' if int(parts[0])==5 and int(parts[1])==5 and int(parts[2])==7 else 'NO')
main() |
p04043 | s928543246 | Accepted | # coding: utf-8
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 | s756835759 | Accepted | abc = list(map(int, input().split()))
abc.sort()
if abc[0] == abc[1] == 5:
if abc[2] == 7:
print('YES')
else:
print('NO')
else:
print('NO') |
p04043 | s563268114 | Accepted | s = [int(i) for i in input().split(' ')]
n = [0] * 5
for i in s:
if i == 5:
n[0] += 1
elif i == 7:
n[1] += 1
if n[0] == 2 and n[1] == 1:
print('YES')
else:
print('NO') |
p04043 | s369008561 | Accepted | a = sorted(map(int,input().split()))
print('YES' if a==[5,5,7] else 'NO') |
p04043 | s652201572 | Accepted | x = list(map(int, input().split()))
y = sorted(x)
if y[0] == 5 and y[1] == 5 and y[2] ==7:
print("YES")
else:
print("NO") |
p04043 | s246864063 | Accepted | inputs = [int(i) for i in input().split()]
inputs.sort()
if inputs == [5,5,7]:
print("YES")
else:
print("NO") |
p04043 | s435928565 | Accepted | A = sorted(map(int,input().split()))
if A[2] == 7:
if A[0] == 5 and A[0] == A[1]:
print("YES")
else:
print("NO")
else:
print("NO")
|
p04043 | s349275143 | Accepted | I=input().split()
c5=0
c7=0
for i in I:
if i=="5":
c5+=1
elif i=="7":
c7+=1
if c5==2 and c7==1:
print("YES")
else:
print("NO") |
p04043 | s075178481 | Accepted | a = map(int, input().split())
if sum(a)==17:
print("YES")
else:
print("NO") |
p04043 | s481247311 | Accepted | a=list(map(int,input().split()))
if a.count(5)==2 and a.count(7)==1:
print("YES")
else:
print("NO") |
p04043 | s274917661 | Accepted | import sys
sys.setrecursionlimit(10 ** 7)
input = sys.stdin.readline
f_inf = float('inf')
mod = 10 ** 9 + 7
def resolve():
ABC = list(input().split())
print("YES" if ABC.count("5") == 2 and ABC.count("7") == 1 else "NO")
if __name__ == '__main__':
resolve()
|
p04043 | s288711697 | 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 | s175034845 | Accepted | n = input().split()
print("YES" if n.count("5") == 2 and n.count("7") == 1 else "NO")
|
p04043 | s021265312 | Accepted | if tuple(sorted(input().split()))==("5","5","7"):
print("YES")
else:
print("NO") |
p04043 | s984662381 | Accepted | A = list(map(str, input().split()))
A7 = 0
A5 = 0
for i in A:
if i == "7":
A7 += 1
elif i == "5":
A5 += 1
if A5 == 2 and A7 == 1:
print("YES")
else:
print("NO") |
p04043 | s628664890 | Accepted | L = list(map(int, input().split()))
if L == [5, 7, 5] or L == [5, 5, 7] or L == [7, 5, 5]:
print('YES')
else:
print('NO') |
p04043 | s895777273 | Accepted | import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
l = LI()
if l.count(5) == 2 and l.count(7) == 1:
print('YES')
else:
print('NO') |
p04043 | s116117345 | Accepted | import sys
def solve(inp):
A = list(map(int, inp.readline().strip().split(' ')))
A = sorted(A)
if A[0] == 5 and A[1] == 5 and A[2] == 7:
return "YES"
else:
return "NO"
def main():
result = solve(sys.stdin)
if result:
print(result)
if __name__ == '__main__':
main()
|
p04043 | s477902734 | Accepted | listA=list(map(int,input().split()))
if listA[0] == 5 and listA[1] == 5 and listA[2] == 7:
print('YES')
elif listA[0] == 5 and listA[1] == 7 and listA[2] == 5:
print('YES')
elif listA[0] == 7 and listA[1] == 5 and listA[2] == 5:
print('YES')
else:
print('NO')
|
p04043 | s477874387 | Accepted | s = input()
if s.count('5') == 2 and s.count('7') == 1:
print('YES')
else:
print('NO') |
p04043 | s990837700 | Accepted | s = input()
num_5 = s.count('5')
num_7 = s.count('7')
if (num_5 == 2)*(num_7 == 1):
print('YES')
else:
print('NO') |
p04043 | s241804194 | Accepted | ABC = input().replace(' ', '')
print('YES' if ABC.count('5') == 2 and ABC.count('7') == 1 else 'NO')
|
p04043 | s411022864 | Accepted | A = sorted(input().split())
print('YES' if A == ['5', '5', '7'] else 'NO') |
p04043 | s906307054 | Accepted | # coding: utf-8
# Your code here!
box = input().rstrip().split()
#文字数が5だったらF+1、7だったらS+1で最終的にF=2.S=1なら正解
F = 0
S = 0
for i in range(len(box)):
if int(box[i]) == 5:
F = F + 1
elif int(box[i]) == 7:
S = S + 1
if (F == 2 and S == 1):
print("YES")
else:
print("NO") |
p04043 | s695339616 | Accepted | l = list(input().split())
five = 0
seven = 0
for i in l:
if i == '5':
five += 1
elif i == '7':
seven += 1
else:
pass
if five == 2 and seven == 1:
print('YES')
else:
print('NO') |
p04043 | s472502579 | Accepted | phrases = input().split()
phrases.sort(reverse=True)
if phrases == ['7', '5', '5']:
print('YES')
else:
print('NO') |
p04043 | s228495154 | Accepted | a,b,c=map(int,input().split())
if a*b*c==175:
print("YES")
else:
print("NO") |
p04043 | s121826747 | 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 | s207223389 | Accepted | iroha = list(map(int, input().split()))
mylist = sorted(iroha)
if mylist == [5, 5, 7]:
print("YES")
else:
print("NO") |
p04043 | s401625037 | Accepted | moji=list(map(int,input().split()))
if moji.count(7) == 1 and moji.count(5) == 2:
print("YES")
else:
print("NO") |
p04043 | s285118151 | Accepted | import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007
def main():
X = list(map(int, readline().split()))
X.sort()
if X[0] == 5 and X[1] == 5 and X[2] == 7:
print('YES')
else:
print('NO')
return
if __name__ == '__main__':
main()
|
p04043 | s255302365 | Accepted | a,b,c = input().split()
if (a+b+c).count('5') == 2 and (a+b+c).count('7') == 1:
print('YES')
else:
print('NO') |
p04043 | s426033463 | Accepted | W = input().split()
if W.count('5') == 2 or W.count('7') == 1:
print("YES")
else:
print("NO")
|
p04043 | s540025696 | Accepted | a = input()
print('YES' if a.count('5') == 2 and a.count('7') == 1 else 'NO') |
p04043 | s886984252 | Accepted | ABC = list(map(int, input().split()))
if ABC.count(5) == 2 and ABC.count(7) == 1:
print('YES')
else:
print('NO') |
p04043 | s883887979 | Accepted | def main():
lst = input()
lst = lst.split()
lst.sort()
if lst == ['5','5','7']:
print("YES")
else:
print("NO")
main() |
p04043 | s804458136 | Accepted | A=sorted(list(map(int,input().split())))
if A[0]==A[1]==5 and A[2]==7:
print("YES")
else:
print("NO")
|
p04043 | s848554409 | Accepted | X=list(map(int,input().split()))
X.sort()
if X==[5,5,7]:
print('YES')
else:
print('NO')
|
p04043 | s448941329 | Accepted | a,b,c=map(int,input().split())
print("YNEOS"[a*b*c!=175::2]) |
p04043 | s890698273 | Accepted | from collections import Counter
a = list(map(int, input().split()))
a = Counter(a)
if a[5]==2 and a[7]==1:
print('YES')
else:
print("NO") |
p04043 | s200400964 | 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 | s439806490 | Accepted | nums = list(map(int,input().rstrip().split()))
if 5 in nums and 7 in nums and sum(nums)==17:
print('YES')
else:
print('NO') |
p04043 | s339495270 | Accepted | l = map(int, input().split())
print("YES" if sorted(l) == [5, 5, 7] else "NO") |
p04043 | s918347551 | Accepted | #!/usr/bin/env python3
l = sorted(list(map(int, input().split())))
if l == [5, 5, 7]:
print('YES')
else:
print('NO')
|
p04043 | s467218976 | Accepted | abc = list(map(int,input().split()))
abc.sort()
if abc == [5,5,7]:
print('YES')
else:
print('NO') |
p04043 | s426183558 | Accepted | a, b, c = map(int, input().split())
if (a + b + c == 17):
print('YES')
else:
print('NO')
|
p04043 | s665134652 | 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 | s466658895 | Accepted | s = input().split(" ")
if s.count('5') == 2 and s.count('7') == 1:
print("YES")
else:
print("NO") |
p04043 | s923068170 | Accepted | a=list(map(int,input().split()))
#a=[map(int,input().split())]
#print(a)
if a.count(5)==2 and a.count(7)==1:
print('YES')
else:
print('NO')
|
p04043 | s957272739 | Accepted | li =list(map(int ,input().split()))
if li.count(5) == 2:
if li.count(7) == 1:
print("YES")
else:
print("NO")
else:
print("NO") |
p04043 | s699824711 | Accepted | ABC = input().split()
print('YES' if ABC.count('5') ==2 and ABC.count('7')==1 else 'NO')
|
p04043 | s356940569 | Accepted | a,b,c = map(int,input().split())
if a+b+c == 17 and min(a,b,c) == 5 and max(a,b,c) == 7:
print('YES')
else:
print('NO') |
p04043 | s988026721 | Accepted | L = list(map(int,input().split()))
L.sort()
if L == [5,5,7]:
print('YES')
else:
print('NO') |
p04043 | s337756414 | Accepted | # ABC 042: A – 和風いろはちゃんイージー / Iroha and Haiku (ABC Edition)
nums = [int(s) for s in input().split(" ")]
print("YES" if nums.count(5) == 2 and nums.count(7) == 1 else "NO") |
p04043 | s700233228 | Accepted | import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque
if __name__ == '__main__':
a = [int(i) for i in input().split()]
a5 = 0
a7=0
for i in a:
if i == 5:
a5 +=1
if i ==7:
a7 +=1
if a5==2 and a7 ==1:
print("YES")
else:
print("NO")
|
p04043 | s636673180 | Accepted | ans=list(map(int,input().split()))
if ans.count(5)==2 and ans.count(7)==1:
print("YES")
else: print("NO") |
p04043 | s779993242 | Accepted | a = list(map(int, input().split()))
if 5 in a:
if 7 in a:
if sum(a) == 17:
print("YES")
exit()
print("NO") |
p04043 | s530899158 | Accepted | # coding: utf-8
# Your code here!
nums = list(map(int, input().split())) # n個の数字がリストに格納される
cnt_5 = 0
cnt_7 = 0
for i in nums:
if i == 5:
cnt_5 += 1
if i == 7:
cnt_7 += 1
if cnt_5 == 2 and cnt_7 == 1:
print("YES")
else:
print("NO")
|
p04043 | s944737963 | Accepted | a, b, c = map(int, input().split())
if a+b+c == 17:
print("YES")
else:
print("NO") |
p04043 | s094261783 | Accepted | a = sorted(map(int, input().split()))
print("YES" if a == [5, 5, 7] else "NO") |
p04043 | s163356677 | Accepted | line = input()
if line.count("5")==2 and line.count("7")==1:
print("YES")
else:
print("NO") |
p04043 | s619176768 | Accepted | a, b, c = map(int, input().split())
if (a == 5 and b == 5 and c == 7) or (a == 5 and b == 7 and c == 5) or (a == 7 and b == 5 and c == 5):
print("YES")
else:
print("NO") |
p04043 | s555165790 | Accepted | abc=list(map(int,input().split()))
abc.sort()
if abc ==[5, 5, 7]:
print("YES")
else:
print("NO") |
p04043 | s321966815 | 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 | s724441625 | Accepted | import itertools
ABC = list(map(str, input().split()))
list_ = list(itertools.permutations(ABC))
if ('5', '7', '5') in list_:
print('YES')
else:
print('NO') |
p04043 | s077787972 | Accepted | x = list(map(int, input().split()))
if x.count(5) == 2 and x.count(7) == 1:
print("YES")
else:
print("NO")
|
p04043 | s241614624 | 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 | s479471569 | Accepted | def main():
abc = ''.join(sorted(input().replace(' ', '')))
print('YES' if abc == '557' else 'NO')
if __name__ == '__main__':
main()
|
p04043 | s917343193 | Accepted | a = [int(i) for i in input().split()]
count5 = 0
count7 = 0
for i in a:
if i==5:
count5 += 1
if i==7:
count7 += 1
if count5==2 and count7==1:
print('YES')
else:
print('NO')
|
p04043 | s867167961 | Accepted | import sys, math
def input():
return sys.stdin.readline()[:-1]
def main():
A = list(map(int,input().split()))
if A.count(5) == 2 and A.count(7) == 1:
print("YES")
else:
print("NO")
if __name__ == '__main__':
main()
|
p04043 | s011643217 | Accepted | ls = list(map(int,input().split()))
if ls.count(5) == 2 and ls.count(7) == 1:
print('YES')
else:
print('NO') |
p04043 | s543046894 | Accepted | num = input().split()
if num.count('5') == 2 and num.count('7'):
print("YES")
else:
print("NO") |
p04043 | s553257807 | 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 | s467261118 | Accepted | array = list(map(int, input().split()))
array.sort()
if array == [5, 5, 7]:
print('YES')
else:
print('NO')
|
p04043 | s599152438 | Accepted | a = list(map(int, input().split()))
counter_5 = 0
counter_7 = 0
for i in range(len(a)):
if a[i] == 5:
counter_5 += 1
if a[i]== 7:
counter_7 += 1
if counter_5 == 2 and counter_7 ==1:
print('YES')
else:
print('NO') |
p04043 | s767591597 | Accepted | a, b, c = map(int, input().split())
def iroha(a,b,c):
if (a==5 or a==7) and (b==5 or b==7) and (c==5 or c==7) and a+b+c==17:
return "YES"
else:
return "NO"
print(iroha(a,b,c)) |
p04043 | s873714984 | Accepted | l=list(map(int,input().split()))
go=0
na=0
for i in l:
if i==5:
go+=1
elif i==7:
na+=1
if go==2 and na==1:
print("YES")
else:
print("NO") |
p04043 | s268367517 | Accepted | A,B,C=map(int,input().split())
l=[A,B,C]
l.sort()
if (l[0]==5)and(l[1]==l[0])and(l[2]==7):
print("YES")
else:
print("NO") |
p04043 | s902073288 | Accepted | A, B, C = map(int, input().split())
five = 0
seven = 0
if A == 5:
five += 1
if A == 7:
seven += 1
if B == 5:
five += 1
if B == 7:
seven += 1
if C == 5:
five += 1
if C == 7:
seven += 1
if five == 2 and seven == 1:
print("YES")
else:
print("NO") |
p04043 | s559653565 | Accepted | A=list(map(int,input().split()))
if A[0]==A[1]==5 and A[2]==7:
print("YES")
elif A[0]==A[2]==5 and A[1]==7:
print("YES")
elif A[1]==A[2]==5 and A[0]==7:
print("YES")
else:
print("NO")
|
p04043 | s056075151 | Accepted | l=list(map(int,input().split()))
go=0
na=0
for i in l:
if i==5:
go+=1
elif i==7:
na+=1
if go==2 and na==1:
print("YES")
else:
print("NO") |
p04043 | s681100626 | Accepted | list1 = input().split()
ans = int(list1[0]) * int(list1[1]) * int(list1[2])
if ans == 5*5*7:
print('YES')
else:
print('NO')
|
p04043 | s194922777 | Accepted | arr = list(map(int,input().split()))
b = [0]*10
for i in arr:
b[i-1] += 1
if (b[4]==2 and b[6]==1):
print("YES")
else:
print("NO")
|
p04043 | s455282561 | Accepted | b=list(map(int,input().split()))
if(b==[5,5,7]):
print("YES")
exit()
if(b==[5,7,5]):
print("YES")
exit()
if(b==[7,5,5]):
print("YES")
exit()
else:
print("NO")
|
p04043 | s834091836 | Accepted | li = list(map(int, input().split()))
li.sort()
if li == [5, 5, 7]:
print("YES")
else:
print("NO") |
p04043 | s723939408 | Accepted | x = list(map(int, input().split()))
x.sort()
if(x == [5,5,7]):
print ("YES")
else:
print ("NO")
|
p04043 | s357473185 | Accepted | l=list(map(int,input().split()))
if(l.count(5)==2 and l.count(7)==1):
print("YES")
else:
print("NO") |
p04043 | s515250931 | Accepted | a = list(map(int,input().split()))
b = sorted(a)
print('YES' if b[0]==5 and b[1]==5 and b[2]==7 else 'NO') |
p04043 | s666675811 | Accepted | A, B, C =(int(x) for x in input().split())
l = [int(A), int(B), int(C)]
if l.count(5) == 2 and l.count(7) == 1:
print('YES')
else:
print('NO')
|
p04043 | s601816789 | Accepted | if sorted(input().split())==['5','5','7']:
print('YES')
else:
print('NO') |
p04043 | s092812009 | Accepted | l = list(map(int, input().split()))
print("YES" if l.count(5) == 2 and l.count(7) == 1 else "NO") |
p04043 | s812955428 | Accepted | #2020-04-30
a = list(map(int,input().split()))
if a.count(5) == 2 and a.count(7) == 1:
print('YES')
else:
print('NO') |
p04043 | s613603052 | Accepted | #042_A
s=input()
flg=s.count('5')==2 and s.count('7')
print('YES' if flg else 'NO') |
p04043 | s260490234 | Accepted | a = list(map(int, input().split()))
if a.count(5) == 2 and a.count(7) ==1:
print('YES')
else:
print('NO') |
p04043 | s893424279 | Accepted | a,b,c=map(int,input().split())
print("YES" if a*b*c==175 else "NO") |
p04043 | s312106514 | Accepted | a,b,c=map(int,input().split())
if((a*b*c)%7==0)and((a*b*c)/7==25):
print("YES")
else:
print("NO") |
p04043 | s418028277 | Accepted | a,b,c =map(int,input().split() )
d = a + b + c
e = a * b * c
if(d == 17 and e == 175):
print("YES")
else:
print("NO") |
p04043 | s049054325 | Accepted | true_list = ["5","7","5"]
val = input()
splited_val = val.split()
diff = set(true_list) ^ set(splited_val)
if len(diff) == 0:
splited_val_int = [int(s) for s in splited_val]
if sum(splited_val_int) == 17:
print("YES")
else:
print("NO")
else:
print("NO")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.