problem_id
stringclasses 100
values | submission_id
stringlengths 10
10
| status
stringclasses 2
values | code
stringlengths 6
806
|
|---|---|---|---|
p04043
|
s289849475
|
Wrong Answer
|
A, B, C=map(int,input().split())
x = [A, B, C]
if (x.count(5) == 2) and (x.count(7) == 1):
print("Yes")
else:
print("No")
|
p04043
|
s085629446
|
Wrong Answer
|
A, B, C = map(int, input().split())
if A*B*C == 175:
print("Yes")
else:
print("No")
|
p04043
|
s150286455
|
Wrong Answer
|
# cook your dish here
abc=list(map(int , input().split()))
# frequency check is used
count=0
element=5
element1=7
frequency1=abc.count(5)
frequency2=abc.count(7)
if(frequency1 == 2):
if(frequency2 == 1):
count+=1
else:
count+=0
else:
count+=0
if(count == 1):
print("Yes")
else:
print("No")
|
p04043
|
s469645560
|
Wrong Answer
|
#ABC042 A
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
|
s763516270
|
Wrong Answer
|
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
|
s272449721
|
Wrong Answer
|
num= input().split()
count5 = 0
count7 = 0
for i in range(len(num)):
if num[i] == 5:
count5 += 1
elif num[i] == 7:
count7 += 1
if count5 == 2 and count7 == 1:
print('YES')
else:
print('NO')
|
p04043
|
s057175334
|
Wrong Answer
|
A = sorted(input().split())
print('Yes' if A[0]=='5' and A[1]=='5' and A[2]=='7' else 'No')
|
p04043
|
s365004159
|
Wrong Answer
|
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
|
s675745158
|
Wrong Answer
|
num=input()
moji=num.split(" ")
if int(moji[0])==7 or int(moji[0])==5:
pass
else:
print("NO")
if int(moji[1])==7 or int(moji[1])==5:
if int(moji[0])+int(moji[1])+int(moji[2])==19:
print("YES")
else:
print("NO")
|
p04043
|
s620749289
|
Wrong Answer
|
S = input()
print('Yes' if(S.count('5') == 2 and S.count('7') == 1) else 'No')
|
p04043
|
s229651949
|
Wrong Answer
|
a=input().strip().split(" ")
b=[int(i) for i in a]
b.sort()
if b == [5,5,7]:
print("YES")
else:
print("NO")
print(b)
|
p04043
|
s822532314
|
Wrong Answer
|
A, B, C = map(str, input().split())
ABC = str(len(A))+str(len(B))+str(len(C))
print(ABC)
if ABC == '575':
print('YES')
else:
print('NO')
|
p04043
|
s192842230
|
Wrong Answer
|
# # N=int(input())
#
# N,K=map(int,input().split())
A,B,C=map(int,input().split())
five_counter=0
seven_counter=0
def counter(x):
global five_counter,seven_counter
if x==5:
five_counter += 1
elif x==7:
seven_counter += 1
counter(A)
counter(B)
counter(C)
if (five_counter==2) & (seven_counter ==1):
print("Yes")
else:
print("No")
|
p04043
|
s490778349
|
Wrong Answer
|
a,b,c = map(str, input().split())
ok = ["575", "557", "755"]
if (a+b+c in ok):
print("OK")
else:
print("NG")
|
p04043
|
s443305532
|
Wrong Answer
|
a, b, c = [int(3) for i in input().split() ]
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
|
s915931898
|
Wrong Answer
|
a,b,c=input().split()
if (int(a)+int(b)+int(c))==17:
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
|
s164203296
|
Wrong Answer
|
l =list(map(int,input().split()))
print(l)
if l.count(5)==2 and l.count(7)==1:
print("YES")
else:
print("NO")
|
p04043
|
s703242101
|
Wrong Answer
|
A=list(map(int,input().split()))
A.sort()
flag=0
if A[0]==5:
if A[1]==5:
if A[2]==7:
print("YES")
flag+=1
if flag==0:
print("No")
|
p04043
|
s449129996
|
Wrong Answer
|
form = input()
form = form.split()
if form == ["5","7","5"]:
print("YES")
else:
print("NO")
|
p04043
|
s178890653
|
Wrong Answer
|
from sys import stdin
a = stdin.readline().rstrip()
b = [5,5,7]
c = [5,7,5]
d = [7,5,5]
if a == b:
print("YES")
if a ==c:
print("YES")
if a == d:
print("YES")
else:
print("NO")
|
p04043
|
s335691344
|
Wrong Answer
|
from sys import stdin
a = stdin.readline().rstrip()
b = [5,5,7]
c = [5,7,5]
d = [7,5,5]
def funs(i):
if i == b:
return print("YES")
if i ==c:
return print("YES")
if i == d:
return print("YES")
else:
return print("NO")
funs(a)
|
p04043
|
s298586664
|
Wrong Answer
|
#空白区切りで複数の値をリストとして入力
input_list = list(map(int,input().split()))
#input_listの値を昇順に並び替え
sort_list = sorted(input_list)
print(sort_list)
if(sum(sort_list) == 17):
if(sort_list[0]==5 and sort_list[1]==5 and sort_list[2]==7):
print("YES")
else:
print("NO")
else:
print("NO")
|
p04043
|
s285411837
|
Wrong Answer
|
a = list(map(int, input().split()))
print("YES" if a[0]== a[2] == 5 and a[1] == 7 else "NO")
|
p04043
|
s368601349
|
Wrong Answer
|
a = input()
A = int(a[0])
B = int(a[2])
C = int(a[4])
if(A==5 & B==7 & C==5):
print('YES')
elif(A==7 & B==5 & C==5):
print('YES')
elif(A==5 & B==5 & C==7):
print('YES')
else:
print('NO')
|
p04043
|
s356210321
|
Wrong Answer
|
n = list(map(int , input().split()))
if n.count(5) == 2 and n.count(7) == 1:
print("YES")
else:
print("No")
|
p04043
|
s157279537
|
Wrong Answer
|
d = list(map(int,input().split()))
print(d)
if d.count(5)==2 and d.count(7) == 1 :
print("YES")
else :
print("NO")
|
p04043
|
s078347355
|
Wrong Answer
|
#2033~
import sys
[a,b,c] = list(map(int,input().split()))
#print(a,b,c)
if sorted([a,b,c])==[5,5,7]:
print('Yes')
else:
print('No')
|
p04043
|
s432665730
|
Wrong Answer
|
A, B, C =map(int,input().split())
# B should be 7 and A and C should be 5
if A==7:
a=A
b=B
A=b
B=a
elif C==7:
c=C
b=B
C=b
B=c
if A==5 and B==7 and C==5:
print('Yes')
else:
print('No')
|
p04043
|
s398093896
|
Wrong Answer
|
a,b,c = map(int,(input().split()))
num = []
num +=[a,b,c]
five = num.count(5)
seven = num.count(7)
print(five)
if five == 2 and seven ==1:
print("YES")
else:
print("NO")
|
p04043
|
s508196201
|
Wrong Answer
|
a=list(map(int,input().split()))
if a[0]*a[1]*a[2] ==5*7*5:
print("yes")
else :
print("no")
|
p04043
|
s368037277
|
Wrong Answer
|
A, B, C = map(int, input().split())
print("YES" if A==B==5 and B==C==5 and A==C==5 else "NO")
|
p04043
|
s707400511
|
Wrong Answer
|
A, B, C = map(int, raw_input() .split())
if A and B == 5 and C == 7 or A and C == 5 and B == 7 or B and C == 5 and A == 7:
print "Yes"
else:
print "No"
|
p04043
|
s122272747
|
Wrong Answer
|
a,b,c=map(int,input().split())
if a==7:
if b==5 and c==5:
print("YES")
elif b==7:
if a==5 and c==5:
print("YES")
elif c==7:
if a==5 and b==5:
print("YES")
else:
print("NO")
|
p04043
|
s957070515
|
Wrong Answer
|
s = input().split(" ")
if s == 17:
print("Yes")
else:
print("No")
|
p04043
|
s922148253
|
Wrong Answer
|
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
|
s951846599
|
Wrong Answer
|
a,b,c = map(int,input().split())
if a+b+c == 17:
if a == 7 or a == 5:
if b == 7 or b == 5:
if c == 7 or c == 5:
print("YES")
else:
print("NO")
|
p04043
|
s489006990
|
Wrong Answer
|
a = list(map(int, input().split()))
str5 = 0
str7 = 0
for i in range(3):
if a[i] == 5:
str5 += 1
if a[i] == 7:
str7 += 1
if str5 == 2 and str7 == 1:
print('Yes')
else:
print('No')
|
p04043
|
s431814405
|
Wrong Answer
|
a =input()
if a.count("5") == 2 and a.count("7") == 1:
print("Yes")
else:
print("No")
|
p04043
|
s794866495
|
Wrong Answer
|
lis = sorted(input().split())
print(lis)
if lis == ['5', '5', '7']:
print('Yes')
else:
print('No')
|
p04043
|
s884504498
|
Wrong Answer
|
data=list(input().split())
a=0
b=0
for i in range(0,3):
if data[i]=='5':
a=a+1
elif data[i]=='7':
b=b+1
if (a==1 and b==2):
print('YES')
else:
print('NO')
|
p04043
|
s152367606
|
Wrong Answer
|
a = input().split()
print('Yes' if a.count('5') == 2 and a.count('7') == 1 else 'No')
|
p04043
|
s939982905
|
Wrong Answer
|
data = input().split()
seven = 0
five = 0
for i in range(len(data)):
if data[i] == 7:
seven += 1
elif data[i] == 5:
five +=1
if seven == 1 and five == 2:
print('YES')
else:
print('NO')
|
p04043
|
s946330004
|
Wrong Answer
|
a = list(map(int, input().split()))
if a.count(5) == 2 and a.count(7) == 1:
print("Yes")
else:
print("No")
|
p04043
|
s381259114
|
Wrong Answer
|
a, b, c = map(int, input().split())
length = [len(str(a)), len(str(b)), len(str(c))].sort()
if length == [5, 5, 7]:
print("Yes")
else:
print("No")
|
p04043
|
s489609933
|
Wrong Answer
|
a, b, c = map(int, input().split())
at = 0
bt = 0
ct = 0
if a == 5 :
at += 1
elif a == 7 :
at += 10
if b == 5 :
bt += 1
elif b == 7 :
bt += 10
if c == 5 :
ct += 1
elif c == 7 :
ct += 10
if at + bt + ct == 21 :
print("YES")
else :
print("NO")
|
p04043
|
s303590639
|
Wrong Answer
|
l = [5,5,7]
a = list(map(int, input().split()))
a.sort()
print(a)
if a == l:
print("YES")
else:
print("NO")
|
p04043
|
s677502898
|
Wrong Answer
|
a=list(map(int,input().split()))
if a.index(7)==1 and a.index(5)==2:
print("YES")
else:
print("NO")
|
p04043
|
s192605458
|
Wrong Answer
|
A, B, C = map(int, input().split())
if A*B*C == 5*5*7:
print('Yes')
else:
print('No')
|
p04043
|
s187112317
|
Wrong Answer
|
def test():
x = input()
x = x.split()
if x == ['5','5','7']:
print("YES")
if x == ['5','7','5']:
print("YES")
if x == ['7','5','5']:
print("YES")
else:
print("NO")
test()
|
p04043
|
s791382580
|
Wrong Answer
|
a = list(map(int,input().split()))
if sum(a) == 17 and a.count("5") == 2:
print("YES")
else:
print("NO")
|
p04043
|
s746869179
|
Wrong Answer
|
a = list(map(int, input().split()))
if sorted(a) == [5, 5, 7]:
print('Yes')
else:
print('No')
|
p04043
|
s507809366
|
Wrong Answer
|
n = input().split()
for i in range(3):
n[1] = int(n[i])
if n == [5,5,7] or [5,7,5] or [7,5,5]:
print("YES")
else:
print("NO")
|
p04043
|
s967946426
|
Wrong Answer
|
x = list(input().split())
five = 0
seven = 0
for i in x:
if i == 5:
five += five
elif i == 7:
seven += seven
if seven == 1 and five == 2:
print('YES')
else:
print('NO')
|
p04043
|
s485472351
|
Wrong Answer
|
a, b, c = map(int, input().split())
if a+b+c == 17:
if set([a, b, c]) == (5, 7):
print("YES")
else:
print("NO")
else:
print("NO")
|
p04043
|
s814606423
|
Wrong Answer
|
a, b, c = map(int, input("ここに3つの数値を入力してください:").split())
if a + b + c == 17:
print("Yes")
else:
print("No")
|
p04043
|
s908509867
|
Wrong Answer
|
A = list(map(int, input().split()))
if A.count(7) == 1 and A.count(5) == 2:
print("Yes")
else:
print("No")
|
p04043
|
s692572707
|
Wrong Answer
|
s = sorted(list(input().split()))
s = "".join(s)
print(s)
|
p04043
|
s251819660
|
Wrong Answer
|
list_in = list(map(int, input().split()))
if list_in.count(5) == 2 and list_in.count(7) == 1:
print('Yes')
else:
print('No')
|
p04043
|
s686089965
|
Wrong Answer
|
a,b,c=input().split();print('NYOE S'[a=='5' and b=='7' and c=='5'::2])
|
p04043
|
s966178447
|
Wrong Answer
|
a = list(map(int, input().split()))
if a.count(5) == 2 and a.count(7) == 1:
print('Yes')
else:
print('No')
|
p04043
|
s954746131
|
Wrong Answer
|
lis = [int(i) for i in input().split()]
print("YES" if lis.count(5) == 2 and lis.count(7) == 1 else "No")
|
p04043
|
s957871823
|
Wrong Answer
|
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
|
s090741596
|
Wrong Answer
|
A,B,C=map(int,input().split())
if (A+B+C == 17):
if A==5 or A==7:
if B==5 or B==7:
if C==5 or C==7:
print("Yes")
else:
print("No")
else:
print("No")
else:
print("No")
else:
print("No")
|
p04043
|
s957601795
|
Wrong Answer
|
a,b,c = map(int,input().split())
if a == 5 and b == 5 and c == 7:
print('YES')
elif b == 5 and a == 5 and c == 7:
print('YES')
elif c == 5 and a == 5 and b == 7:
print('YES')
else:
print('NO')
|
p04043
|
s253175613
|
Wrong Answer
|
A,B,C=map(int,input().split())
if (A+B+C == 17) & (A*B*C==175):
print("Yes")
else:
print("No")
|
p04043
|
s816417196
|
Wrong Answer
|
list = list(map(int, input().split()))
if list.count(5)==2 and list.count(7)==1:
print('Yes')
else:
print('No')
|
p04043
|
s023844122
|
Wrong Answer
|
a, b, c = map(int, input().split())
lengths = [a, b, c]
lengths.sort()
if lengths == [5, 5, 7]:
print("Yes")
else:
print("No")
|
p04043
|
s126282459
|
Wrong Answer
|
moji=list(map(int,input().split()))
if moji.count(7) == 1 and moji.count(5) == 2:
print("Yes")
else:
print("No")
|
p04043
|
s247025542
|
Wrong Answer
|
A=list(map(int,input().split()))
print("Yes" if A.count(5)==2 and A.count(7)==1 else "No")
|
p04043
|
s712057891
|
Wrong Answer
|
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
|
s707737471
|
Wrong Answer
|
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
|
s254838558
|
Wrong Answer
|
a,b,c = map(int,input().split())
d = [a,b,c]
d = sorted(d)
#print(d)
if d ==[5,5,7]:
print('Yes')
else:
print('No')
|
p04043
|
s744750288
|
Wrong Answer
|
a, b , c = map(int, input().split())
print(a*b*c==175 and a+b+c==17)
|
p04043
|
s639114655
|
Wrong Answer
|
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
|
s328139363
|
Wrong Answer
|
A, B, C = map(int, input().split())
if A == 5 and B == 7 and C == 5:
print("YES")
else:
print("NO")
|
p04043
|
s863361128
|
Wrong Answer
|
a = input().split()
countF = 0
countS = 0
for i in range(3):
countF += a[i] == 5
countS += a[i] == 7
if countF == 2 and countS == 1:
print('YES')
else:
print('NO')
|
p04043
|
s134570732
|
Wrong Answer
|
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
|
s738517096
|
Wrong Answer
|
print("A,B,Cの値を入力してください")
A,B,C = map(int,input().split())
if(A+B+C==17):
if((A==5 or A==7) and (B==5 or B==7) and (C==5 or C==7)):
print("YES")
else:
print("NO")
else:
print("NO")
|
p04043
|
s617099260
|
Wrong Answer
|
a = list(map(int, input().split()))
print("YES" if a[0]== a[2] == 5 and a[1] == 7 else "NO")
|
p04043
|
s744652179
|
Wrong Answer
|
a, b, c = map(int, input().split())
if sorted((a,b,c)) == [5,5,7]:
print("Yes")
else:
print("No")
|
p04043
|
s613336199
|
Wrong Answer
|
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])
print(m)
if m==2 and p==1:
print('Yes')
else:
print('No')
|
p04043
|
s386424831
|
Wrong Answer
|
if sorted(input().split())==['5','5','7']:
print('Yes')
else:
print('No')
|
p04043
|
s427772172
|
Wrong Answer
|
S = set(map(int,input().split()))
if S == {5,5,7}:
print('YES')
else:
print('NO')
|
p04043
|
s640236480
|
Wrong Answer
|
a, b , c = map(int, input().split())
print(a*b*c==175 and a+b+c==17)
|
p04043
|
s232858785
|
Wrong Answer
|
a, b, c = map(int,input().split())
at = 0
bt = 0
ct = 0
if a == 5 :
at += 1
elif a == 7 :
at += 10
if b == 5 :
bt += 1
elif b == 7 :
bt += 10
if c == 5 :
ct += 1
elif c == 7 :
ct += 10
if at + bt + ct == 21 :
print("YES")
else :
print("NO")
|
p04043
|
s630095750
|
Wrong Answer
|
l = sorted(list(map(int, input().split())))
if l[0] == 5 and l[1] == 7 and l[2] == 7:
print('YES')
else:
print('NO')
|
p04043
|
s203997776
|
Wrong Answer
|
s = input().split()
s = s[0]+s[1]+s[2]
if s.count('5')==2 and s.count('7')==1:
print("Yes")
else:
print("No")
|
p04043
|
s091987195
|
Wrong Answer
|
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
|
s810588040
|
Wrong Answer
|
a,b,c = map(str, input().split())
if (a==b or b==c or c==a and not a==b==c): print("YES")
else: print("NO")
|
p04043
|
s287086250
|
Wrong Answer
|
a = list(map(int,input().split(" ")))
b = [5,7,5]
if b == a.sort():
print("YES")
else:
print("NO")
|
p04043
|
s068527324
|
Wrong Answer
|
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import sys
def input():
return sys.stdin.readline().strip()
def _main():
input()
s = sorted(list(input().split()))
print("".join(s))
if __name__ == "__main__":
_main()
|
p04043
|
s076220190
|
Wrong Answer
|
s = list(map(int, input().split()))
print('Yes' if s.count(5) == 2 and s.count(7) == 1 else 'No' )
|
p04043
|
s014359337
|
Wrong Answer
|
li_abc = list(map(int,input().split()))
li_575 = [5,7,5]
ans = set(li_abc) - set(li_575)
if ans == []:
print("YES")
else:
print("NO")
|
p04043
|
s136200745
|
Wrong Answer
|
a = 5 or 7
b = 5 or 7
c = 5 or 7
s = a + b + c
if s == 17:
print("Yes")
else:
print("No")
|
p04043
|
s937021942
|
Wrong Answer
|
l = input().split()
print(l)
if(l[0]=="5" and l[1]=="5"):
print("YES")
else:
print("NO")
|
p04043
|
s830734884
|
Wrong Answer
|
L = sorted(map(int, input().split()))
if L == [5, 5, 7]:
ans = 'Yes'
else:
ans = 'No'
print(ans)
|
p04043
|
s786170695
|
Wrong Answer
|
a=sorted(list(map(int,input().split())))
if a==[5,5,7]:print("Yes")
else:print("No")
|
p04043
|
s247467099
|
Wrong Answer
|
l = map(int, input().split())
if sorted(l) == [5, 5, 7]:
print('Yes')
else:
print('No')
|
p04043
|
s964414953
|
Wrong Answer
|
if sorted(map(int, input().split())) == [5, 5, 7]:
print('Yes')
else:
print('No')
|
p04043
|
s092702965
|
Wrong Answer
|
A, B, C = map(int, input().split())
if A*B*C == 175:
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.