problem_id stringclasses 100
values | submission_id stringlengths 10 10 | status stringclasses 2
values | code stringlengths 6 806 |
|---|---|---|---|
p04043 | s349658210 | Accepted | # 入力
input_list = list(map(int, input().split()))
# 出力
if sorted(input_list) == [5,5,7]:
print('YES')
else:
print('NO') |
p04043 | s828589789 | Accepted | nums = list(map(int, input().split()))
print("YES" if nums.count(5) == 2 and nums.count(7) == 1 else "NO") |
p04043 | s109427550 | Accepted | x = input().split()
five = 0
seven = 0
for i in x:
if i == '5':
five += 1
if i == '7':
seven += 1
if five == 2 and seven == 1:
print('YES')
else:
print('NO') |
p04043 | s810025985 | Accepted | abc = list(map(int, input().split()))
if abc.count(5) == 2 and abc.count(7) == 1:
print("YES")
else:
print("NO") |
p04043 | s117058339 | Accepted | print('YES' if [5, 5, 7] == sorted(list(map(int, input().split()))) else 'NO')
|
p04043 | s983018297 | Accepted | a,b,c = map(int, input().split())
if sorted((a,b,c)) == [5,5,7]:
print('YES')
else:
print('NO') |
p04043 | s251248585 | Accepted | a = input().split()
if a.count("5") == 2 and a.count("7") == 1:
print("YES")
else:
print("NO") |
p04043 | s390639347 | Accepted | a,b,c = map(int, input().split())
total = a + b + c
if total == 17:
print("YES")
else:
print("NO") |
p04043 | s663702293 | Accepted | A, B, C = map(int, input().split())
L = [A, B, C]
ans = [[5, 5, 7], [5, 7, 5], [7, 5, 5]]
if L in ans:
print("YES")
else:
print("NO") |
p04043 | s875557108 | Accepted | n = list(map(int, input().split()))
if n.count(5) == 2 and n.count(7) == 1:
print('YES')
else:
print('NO') |
p04043 | s576948664 | Accepted | a = input().strip()
lst=[]
for i in a:
if i != " ":
lst.append(i)
lst.sort()
if lst == ['5','5','7']:
print("YES")
else:
print("NO") |
p04043 | s068778483 | Accepted |
def resolve():
a, b, c = map(int, input().split())
if [a, b, c].count(7) == 1 and [a, b, c].count(5) == 2:
print("YES")
else:
print("NO")
return
if __name__ == "__main__":
resolve()
|
p04043 | s396423010 | Accepted | from collections import Counter
L=Counter(list(map(int,input().split())))
if L[5]==2 and L[7]==1:
print('YES')
else:
print('NO') |
p04043 | s524678000 | Accepted | l1 = [int(i) for i in input().split()]
if l1.count(5) == 2 and l1.count(7) == 1:
print('YES')
else:
print('NO') |
p04043 | s628323653 | Accepted | a = list(map(int,input().split()))
print('YES' if a.count(5)==2 and a.count(7)==1 else 'NO') |
p04043 | s235622217 | Accepted | A = list(map(str,input().split()))
if (A.count("5") == 2 )and (A.count("7") == 1):
print("YES")
else:
print("NO") |
p04043 | s015381282 | Accepted | a = list(map(int,input().split(" ")))
b = [5,5,7]
a.sort()
if b == a:
print("YES")
else:
print("NO") |
p04043 | s886084253 | Accepted | A=list(map(int,input().split()))
A.sort()
if A==[5,5,7]:
print("YES")
else:
print("NO")
|
p04043 | s178325677 | Accepted | L = sorted(map(int, input().split()))
ans = 'YES' if L == [5, 5, 7] else 'NO'
print(ans)
|
p04043 | s285105017 | 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 | s688581094 | 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 | s258880829 | Accepted | l = list(map(int, input().split()))
l.sort()
if l == [5,5,7]:
print("YES")
else:
print("NO") |
p04043 | s717110247 | Accepted | a = []
a = input().split(' ')
if '5' in a:
a.remove('5')
if '7' in a:
a.remove('7')
if '5' in a:
print('YES')
else:
print('NO')
else:
print('NO')
else:
print('NO') |
p04043 | s240093008 | Accepted | l=input().split()
print("YES" if l.count("5")==2 and l.count("7")==1 else "NO") |
p04043 | s691325100 | Accepted | lis = list(map(int, input().split()))
if lis.count(5)==2 and lis.count(7)==1: print('YES')
else: print('NO') |
p04043 | s988268363 | Accepted | a,b,c=map(int,input().split())
arr=[0]*100
arr[a]+=1
arr[b]+=1
arr[c]+=1
if arr[5]==2 and arr[7]==1:
print("YES")
else:
print("NO")
|
p04043 | s687446689 | Accepted | s=list(input().split())
s.sort()
d=int(s[0])*100+int(s[1])*10+int(s[2])
d=d-557
if d==0:
print("YES")
else:
print("NO") |
p04043 | s013627122 | Accepted | a,b,c = map(int,input().split())
fcount = 0
scount = 0
if a == 5 :
fcount += 1
elif a == 7:
scount += 1
if b == 5 :
fcount += 1
elif b == 7:
scount += 1
if c == 5 :
fcount += 1
elif c == 7:
scount += 1
if fcount == 2 and scount == 1:
print("YES")
else :
print("NO")
|
p04043 | s376339221 | Accepted | A=list(map(int,input().split()))
print("YES" if A.count(5)==2 and A.count(7)==1 else "NO") |
p04043 | s069871128 | Accepted | # -*- coding: utf-8 -*-
a = list(map(int,input().split()))
if sum(a)==17:
print("YES")
else:
print("NO")
|
p04043 | s226142113 | Accepted | nums = list(map(int, input().split(' ')))
if nums.count(5) == 2 and nums.count(7) == 1:
print('YES')
else:
print('NO') |
p04043 | s725043458 | Accepted | l=list(map(int,input().split()))
print("YES"if l.count(5)==2 and l.count(7)==1 else"NO")
|
p04043 | s671174825 | Accepted | n=input().split()
print("YES" if n.count("5")==2 and n.count("7")==1 else "NO") |
p04043 | s471672084 | 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 | s288428123 | Accepted | A, B, C = map(int, input().split())
import collections
tmp = []
tmp.append(A)
tmp.append(B)
tmp.append(C)
c = collections.Counter(tmp)
if c[5] == 2 and c[7] == 1:
print("YES")
else:
print("NO")
|
p04043 | s468048195 | Accepted | a, b, c = 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 | s256674602 | Accepted | N = 3
a, b, c = [int(N) for N in input().split() ]
d = 17
mylist = [5, 7]
if ( a in mylist and b in mylist and c in mylist and a + b + c == 17 ):
print("YES")
else:
print("NO")
|
p04043 | s178636543 | Accepted | a=list(map(int,input().split()))
a.sort()
if a==[5,5,7]:
print('YES')
else :
print('NO')
|
p04043 | s451383594 | 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])
count5 = 0
count7 = 0
x = 0
while x < 3:
if int(parts[x]) == 5:
count5 += 1
elif int(parts[x]) == 7:
count7 += 1
x += 1
if count5 == 2 and count7 == 1:
rta = "YES"
else:
rta = "NO"
stdout.write(rta)
main() |
p04043 | s022959333 | Accepted | A = [int(i) for i in input().split()]
if 5 in A and 7 in A and A.count(5) == 2:
print("YES")
else:
print("NO")
|
p04043 | s297548245 | Accepted | List = [int(i) for i in input().split()]
a = List[0]
b = List[1]
c = List[2]
if a*b*c==175:
print("YES")
else:
print("NO") |
p04043 | s445084080 | Accepted | l = list(map(int, input().split()))
if l.count(5) == 2 and l.count(7) == 1:
print("YES")
else:
print("NO") |
p04043 | s423435028 | Accepted | a = list(map(int,input().split()))
if sum(a) == 17 and a.count(5) == 2:
print("YES")
else:
print("NO") |
p04043 | s797157284 | Accepted | a = map(int, input().split())
def answer(a: list) -> str:
a = sorted(a)
if a == [5, 5, 7]:
return 'YES'
else:
return 'NO'
print(answer(a)) |
p04043 | s948082286 | Accepted | A = sorted(input().split())
print('YES' if A[0]=='5' and A[1]=='5' and A[2]=='7' else 'NO') |
p04043 | s031152005 | Accepted | s = input()
if s.count("5") == 2 and s.count("7") == 1:
print("YES")
else:
print("NO") |
p04043 | s750671463 | Accepted | import math
if sorted(input().split())==['5','5','7']:
print('YES')
else:
print('NO') |
p04043 | s204094752 | Accepted | input_st = input().split()
input_num = [int(s) for s in input_st]
num = sorted(input_num)
if num[0] == 5 and num[1] == 5 and num[2] == 7:
print("YES")
else:
print("NO") |
p04043 | s688765225 | Accepted | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
a = list(map(int, input().split()))
if 7 == a[0]:
if 5 == a[1] and 5 == a[2]:
print("YES", end="\n")
else:
print("NO", end="\n")
elif 5 == a[0]:
if (7 == a[1] and 5 == a[2]) or (5 == a[1] and 7 == a[2]):
print("YES", end="\n")
else:
print("NO", end="\n")
else:
print("NO", end="\n") |
p04043 | s301163854 | Accepted | A, B, C = [int(x) for x in input().split()]
req_fives = 2
req_seven = 1
for x in (A, B, C):
if x == 5:
req_fives -= 1
elif x == 7:
req_seven -= 1
if req_fives == 0 & req_seven == 0:
print("YES")
else:
print("NO") |
p04043 | s148898511 | Accepted | a = input().split()
if a.count('5') == 2:
if a.count('7') == 1:
print('YES')
else:
print('NO')
else:
print('NO') |
p04043 | s675859463 | Accepted | import sys
a, b, c = map(int,input().split())
if (a == 5 or a == 7):
if (b == 5 or b == 7):
if (c == 5 or c == 7):
d = a * b * c
if (d == 175):
print("YES")
else: print("NO")
else: print("NO")
else: print("NO")
else:
print("NO") |
p04043 | s004703366 | Accepted | A=sorted(list(map(int,input().split())))
if A[0] == A[1] == 5 and A[2] == 7:
print('YES')
else:
print('NO')
|
p04043 | s541839440 | Accepted | a=list(map(int,input().split()))
c5,c7=0,0
for i in a:
if i==5:
c5+=1
elif i==7:
c7+=1
print("YES" if(c5==2 and c7==1) else "NO") |
p04043 | s989980707 | Accepted | a, b, c = map(int, input().split())
if (a, b, c) == (5, 5, 7):
print("YES")
elif (a, b, c) == (5, 7, 5):
print("YES")
elif (a, b, c) == (7, 5, 5):
print("YES")
else:
print("NO") |
p04043 | s664169127 | Accepted | N = list(map(str, input().split()))
if N.count("5") == 2 and N.count("7") == 1:
print("YES")
else:
print("NO") |
p04043 | s222292789 | Accepted | input1 = list(map(int,input().split()))
A = input1[0]
B = input1[1]
C = input1[2]
if A == 5:
if B == 5 and C == 7:
print("YES")
elif B == 7 and C == 5:
print("YES")
else:
print("NO")
elif A == 7:
if B == 5 and C == 5:
print("YES")
else:
print("NO")
else:
print("NO") |
p04043 | s264845266 | Accepted | from collections import Counter
abc_list = list(map(int,input().split()))
abc_counter = Counter(abc_list)
most_counter = abc_counter.most_common()
if most_counter[0][0] == 5 and most_counter[0][1] == 2:
if most_counter[1][0] == 7 and most_counter[1][1] == 1:
print("YES")
else:
print("NO")
else:
print("NO") |
p04043 | s700108850 | Accepted | l=list(map(int,input().split()))
if l.count(5)==2 and l.count(7)==1:
print("YES")
else:
print("NO")
|
p04043 | s328175554 | Accepted | S=list(map(int,input().split()))
if S.count(5)==2 and S.count(7)==1:
print('YES')
else:
print('NO') |
p04043 | s372421546 | Accepted | s = input().split()
s5 = s.count("5")
s7 = s.count("7")
if s5 == 2:
if s7 == 1:
print("YES")
else:
print("NO")
else:
print("NO") |
p04043 | s057453272 | Accepted | l = input().split()
print("YES" if sorted(l) == ['5', '5', '7'] else "NO") |
p04043 | s196746861 | Accepted | ABC = input().split()
print("YES" if ABC.count("5") == 2 and ABC.count("7") == 1 else "NO") |
p04043 | s352266688 | Accepted | a,b,c=map(int,raw_input().split())
if a+b+c==17:
print "YES"
else:
print "NO" |
p04043 | s893771876 | Accepted | s = input()
print("YES" if s.count("5") == 2 and s.count("7") == 1 else "NO") |
p04043 | s891665997 | Accepted | s = list(map(int,input().split()))
count5 = 0
count7 = 0
for i in range(3):
if s[i] == 5:
count5 += 1
if s[i] == 7:
count7 +=1
if count7 == 1 and count5 == 2:
print("YES")
else:
print("NO") |
p04043 | s414424552 | Accepted | li=a,b,c=list(map(int,input().split()))
if li.count(7)==1 and li.count(5)==2:
print("YES")
else:
print("NO")
|
p04043 | s382974457 | Accepted | S = input().split()
S.sort()
print('YES' if ''.join(S) == '557' else 'NO')
|
p04043 | s439428861 | Accepted | a=list(map(int,input().split()))
if a==[5,5,7] or a==[5,7,5] or a==[7,5,5]:
print("YES")
else:
print("NO") |
p04043 | s096948957 | Accepted | from sys import stdin
input = stdin.readline
L = list(map(int, input().split()))
T = [5,5,7]
for l in L:
if l in T:
T.pop(T.index(l))
if T:
print('NO')
else:
print('YES') |
p04043 | s970912296 | Accepted | if sorted(map(int,input().split()))==[5,5,7]:
print("YES")
else:
print("NO") |
p04043 | s249317979 | Accepted | a=input().split(" ")
a=list(map(int,a))
b=a[0]*a[0]+a[1]*a[1]+a[2]*a[2]
if b==99:
print("YES")
else :
print("NO")
|
p04043 | s381083752 | Accepted | list = list(map(int, input().split()))
if list.count(5) == 2 and list.count(7) == 1:
print('YES')
else:
print('NO') |
p04043 | s062679978 | Accepted | A,B,C=map(int,input().split())
sum = 0
if A == 5 or A ==7:
sum += A
if B ==5 or 7:
sum += B
if C ==5 or 7:
sum += C
if sum == 17:
print("YES")
else:
print("NO") |
p04043 | s139615150 | Accepted | A,B,C = list(map(int,input().split()))
d = sorted([A,B,C])
if d[0] == 5 and d[1] == 5 and d[2] == 7:
print("YES")
else:
print("NO") |
p04043 | s746230501 | Accepted | abc = map(int, input().split())
c5 = 0
c7 = 0
for x in abc:
if x == 5:
c5 += 1
if x == 7:
c7 += 1
if c5 == 2 and c7 == 1:
print('YES')
else:
print('NO')
|
p04043 | s660889628 | Accepted | import sys
import math
sys.setrecursionlimit(10 ** 8)
input = sys.stdin.readline
def main():
s = list(map(int,input().split()))
if sum(s) == 17:
print("YES")
else:
print("NO")
if __name__ == '__main__':
main() |
p04043 | s391790641 | Accepted | a,b,c = map(int,input().split())
if a == 5:
if b == 5:
if c == 7:
print("YES")
else:
print("NO")
if b == 7:
if c == 5:
print("YES")
else:
print("NO")
if a == 7:
if b == 5:
if c == 5:
print("YES")
else:
print("NO")
|
p04043 | s738216997 | Accepted | a,b,c=map(int,input().split())
if a+b+c==17 and a*b*c==175:
print("YES")
else:
print("NO")
|
p04043 | s733546200 | Accepted | s = input().split(" ")
# 5,7,5を判定
if s.count('5') == 2 and s.count('7') == 1:
print("YES")
else:
print("NO") |
p04043 | s699286880 | Accepted | cmd = list( map( int, input( ).split( )))
cnt5 = 0
cnt7 = 0
for i in range( len( cmd)):
if cmd[i] == 5:
cnt5 +=1
elif cmd[ i] == 7:
cnt7 += 1
if cnt5 == 2 and cnt7 == 1:
print( "YES")
else:
print( "NO")
|
p04043 | s600762396 | Accepted | a,b,c=(int(x) for x in input().split())
nana_count=0
go_count=0
def check(x):
if x==5:
global go_count
go_count+=1
elif x==7:
global nana_count
nana_count+=1
check(a)
check(b)
check(c)
if nana_count==1 and go_count==2:
print("YES")
else:
print("NO")
|
p04043 | s260421120 | Accepted | A,B,C = map(int,input().split())
if A == 5 and B == 5 and C == 7:
print("YES")
elif B == 5 and C == 5 and A == 7:
print("YES")
elif C == 5 and A == 5 and B == 7:
print("YES")
else:
print("NO") |
p04043 | s064399428 | Accepted | ABC=list(map(int,input().split()))
five=ABC.count(5)
seven=ABC.count(7)
if (five==2)&(seven==1):
print("YES")
else:
print("NO") |
p04043 | s498600330 | Accepted | a = tuple(map(int, input().split()))
a5 = 0
a7 = 0
b = 0
i = 0
while i < 3:
if a[i] == 5:
a5 += 1
elif a[i] == 7:
a7 += 1
i += 1
if a5 == 2 and a7 == 1:
print("YES")
else:
print("NO")
|
p04043 | s207219943 | 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 | s224565616 | Accepted | l=list(map(int,input().split()))
if l.count(5) == 2 and 7 in l:
print("YES")
else:
print("NO") |
p04043 | s823941101 | Accepted | a,b,c =input().split()
a = int(a)
b = int(b)
c = int(c)
if a == 5:
if (b== 7 and c==5) or (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 | s998083265 | Accepted | s = [int(i) for i in input().split()]
s.sort()
if s == [5,5,7]:
print("YES")
else:
print("NO") |
p04043 | s584254468 | Accepted | ABC = map(int,input().split())
if sorted(ABC) == [5,5,7]:
print("YES")
else:
print("NO") |
p04043 | s514321675 | 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 | s472644669 | Accepted | #和風いろはちゃんイージー
def ABC_42_A():
A,B,C = map(int, input().split())
iroha = [0 for i in range(3)]
iroha = []
iroha.append(A)
iroha.append(B)
iroha.append(C)
if iroha.count(7)==1 and iroha.count(5)==2:
print('YES')
else:
print('NO')
if __name__ == '__main__':
ABC_42_A() |
p04043 | s448571188 | Accepted | def MAP(): return map(int, input().split())
a, b, c = sorted(MAP())
if a == 5 and b == 5 and c == 7:
print("YES")
else:
print("NO") |
p04043 | s812507757 | Accepted | """
kari1 = '7 7 5'
in1 = kari1.split()
"""
in1 = input().split()
sujiCNT = [0] * 10
for item in in1:
sujiCNT[int(item)] = sujiCNT[int(item)] + 1
if sujiCNT[5] == 2 and sujiCNT[7] == 1:
print('YES')
else:
print('NO')
|
p04043 | s950655052 | Accepted | abc = [i for i in map(int, input().split())]
if abc.count(5) == 2 and abc.count(7) == 1:
print('YES')
else:
print('NO')
|
p04043 | s966104249 | Accepted | x = list(map(int,input().split()))
n5=0
n7=0
for i in range(len(x)):
if(x[i]==5):n5=n5+1
if(x[i]==7):n7=n7+1
if(n5==2 and n7==1):print("YES")
else:print("NO")
|
p04043 | s286361261 | Accepted | a=list(map(int,input().split()))
if a.count(5)==2 and a.count(7)==1:
print("YES")
else:
print("NO") |
p04043 | s511857106 | Accepted | def test():
x = input()
x = x.split()
if x == ['5','5','7']:
print("YES")
elif x == ['5','7','5']:
print("YES")
elif x == ['7','5','5']:
print("YES")
else:
print("NO")
test()
|
p04043 | s673403899 | Accepted | l = input().split()
if l.count('5') == 2 and l.count('7') == 1:
print('YES')
else:
print('NO') |
p04043 | s030465877 | Accepted | s,t,u=map(int,input().split())
if s+t+u==17:
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.