output_description
stringlengths
15
956
submission_id
stringlengths
10
10
status
stringclasses
3 values
problem_id
stringlengths
6
6
input_description
stringlengths
9
2.55k
attempt
stringlengths
1
13.7k
problem_description
stringlengths
7
5.24k
samples
stringlengths
2
2.72k
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s909330692
Wrong Answer
p04043
The input is given from Standard Input in the following format: A B C
print(["Yes", "No"][sum(list(map(int, input().split()))) != 17])
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s188763657
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = input(int()) if a, b, c == 5 & a, b, c = 7: print("Yes") else: print("No")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s956442980
Wrong Answer
p04043
The input is given from Standard Input in the following format: A B C
print("hoge")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s354079959
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = sorted(map(int, input().split())) if a, b, c = 5, 5, 7: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s611815313
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
s = input() s = s.split() s.sort() if s = ["5","5","7"]: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s158149266
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a,b,c=map(int,input().split()) if((a*b*c)%7=0)and((a*b*c)/7=25): print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s869243936
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
print( "YES" if input().split().count("5") == 2 and input().split().count("7") == 1 else "NO" )
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s551610583
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = list(map(int, input().split())) if a + b + c == 17 && a * b * c == 5 * 5 * 7: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s956769692
Accepted
p04043
The input is given from Standard Input in the following format: A B C
m = list(map(int, input().split())) print("YES" if [5, 5, 7] == sorted(m) else "NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s035990501
Accepted
p04043
The input is given from Standard Input in the following format: A B C
print("YES" if sum(map(int, input().split())) == 17 else "NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s574397634
Accepted
p04043
The input is given from Standard Input in the following format: A B C
res = "YES" if "557" == "".join(sorted(input().split())) else "NO" print(res)
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s287498690
Wrong Answer
p04043
The input is given from Standard Input in the following format: A B C
a = sorted([int(s) for s in input().strip().split(" ")]) print("YES" if a == [5, 5, 7] else "No")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s788518644
Wrong Answer
p04043
The input is given from Standard Input in the following format: A B C
s = [x for x in input().split()] print("Yes" if s.count("5") == 2 and s.count("7") == 1 else "No")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s835245471
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = sorted(map(int, input().split())) if a, b, c == 5, 5, 7: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s778101510
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
s=input() print('YES' if s=='5 5 7'||s=='5 7 5'||s=='7 5 5' else 'NO')
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s380161856
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
# -*- coding: utf-8 -*- A,B,C=map(int,input().split()) S =[A,B,C] T =[5,5,7] if S = T: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s216467863
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
num_1 = int(input()) num_2 = int(input()) num_3 = int(input()) elif num_1 == 5: elif nmu_2 == 5 and num_3 == 7 or nmu_2 == 7 and num_3 == 5: print('Yes') else print('NO') else: elif nmu_2 == 5 and num_3 == 7 or nmu_2 == 7 and num_3 == 5: print('Yes') else print('NO')
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s387073277
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = map(int, input().split()) if a * b * c = 175: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s591002768
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a,b,c=map(int,input().split()) if a+b+c==17 and a*b*c==175:  print("YES") else:  print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s043605122
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = map(int, input().split()) if a+b+c = 19: print("Yes") else: print("No")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s270089847
Accepted
p04043
The input is given from Standard Input in the following format: A B C
x = [int(x) for x in input().split(" ")] print("YES" if sum(x) == 17 and set(x) == set([5, 7]) else "NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s141236731
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = map(int, input().split()) if a == 5 and b == 7 and c = 5: print("Yes") else: print("No")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s177549640
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = map(int, input().split()) if a == 5 and b == 7 and c = 5: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s870340738
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a,b,c=map(int,input().split()) if a==5 and b==7 and c==5&: print(YES) elif a==5 and b==5 and c==7&: print(YES) elif a==7 and b==5 and c==5&: print(YES) else: print(NO)
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s780506545
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = input().split() abc = sorted([a, b, c]) ans = 'NO' if abc[0] == '5' and abc[1] == '5' and = abc[2] == '7': ans = 'YES' print(ans)
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s419776576
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
n = list(map(int,input().split())) if 5 in n : n.remove(5) elif 5 in n : elif 7 in n : print("YES") else : print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s038900835
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
A = input() B = input() C = input() if A+B+C==17 : if (A==5&&B==5)||(A==5&&B==7) : print("YES") elif: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s214241080
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = map(int, input().split()) if (5 in [a, b, c] and 7 in [a, b, c]) and a+b+c == 17: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s309648255
Wrong Answer
p04043
The input is given from Standard Input in the following format: A B C
yes = lambda boolean: print("YES") if boolean else print("NO") input_ints = lambda: list(map(int, input().split())) yes(input_ints().sort() == [5, 5, 7])
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s465350263
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = (int(i) for i in input().split()) d=(a+b+c)/17 e=(max(a,b)-2+max(a,c)+max(b,c))/21 if(d==1 and e==1) print(min(a,b,c), max(a,b,c), min(a,b,c))
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s140871250
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
nums = list(map(int,input().split()) nums.sort() if nums[0] == 5 and nums[1] == 5 and nums[2] == 7: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s954916377
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a,b,c = map(int,input().split()) if (a==b==5 and c==7) or (a==c==5 b==7) or (b==c==5 a==7): print('YES') else: print('NO')
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s285600182
Accepted
p04043
The input is given from Standard Input in the following format: A B C
#!/usr/bin/env python3 import sys # import math # from string import ascii_lowercase, ascii_upper_case, ascii_letters, digits, hexdigits # import re # re.compile(pattern) => ptn obj; p.search(s), p.match(s), p.finditer(s) => match obj; p.sub(after, s) # from operator import itemgetter # itemgetter(1), itemgetter('key') # from collections import deque # deque class. deque(L): dq.append(x), dq.appendleft(x), dq.pop(), dq.popleft(), dq.rotate() # from collections import defaultdict # subclass of dict. defaultdict(facroty) # from collections import Counter # subclass of dict. Counter(iter): c.elements(), c.most_common(n), c.subtract(iter) # from heapq import heapify, heappush, heappop # built-in list. heapify(L) changes list in-place to min-heap in O(n), heappush(heapL, x) and heappop(heapL) in O(lgn). # from heapq import nlargest, nsmallest # nlargest(n, iter[, key]) returns k-largest-list in O(n+klgn). # from itertools import count, cycle, repeat # count(start[,step]), cycle(iter), repeat(elm[,n]) # from itertools import groupby # [(k, list(g)) for k, g in groupby('000112')] returns [('0',['0','0','0']), ('1',['1','1']), ('2',['2'])] # from itertools import starmap # starmap(pow, [[2,5], [3,2]]) returns [32, 9] # from itertools import product, permutations # product(iter, repeat=n), permutations(iter[,r]) # from itertools import combinations, combinations_with_replacement # from itertools import accumulate # accumulate(iter[, f]) # from functools import reduce # reduce(f, iter[, init]) # from functools import lru_cache # @lrucache ...arguments of functions should be able to be keys of dict (e.g. list is not allowed) # from bisect import bisect_left, bisect_right # bisect_left(a, x, lo=0, hi=len(a)) returns i such that all(val<x for val in a[lo:i]) and all(val>-=x for val in a[i:hi]). # from copy import deepcopy # to copy multi-dimentional matrix without reference # from fractions import gcd # for Python 3.4 (previous contest @AtCoder) def main(): mod = 1000000007 # 10^9+7 inf = float("inf") # sys.float_info.max = 1.79...e+308 # inf = 2 ** 64 - 1 # (for fast JIT compile in PyPy) 1.84...e+19 sys.setrecursionlimit(10**6) # 1000 -> 1000000 def input(): return sys.stdin.readline().rstrip() def ii(): return int(input()) def mi(): return map(int, input().split()) def mi_0(): return map(lambda x: int(x) - 1, input().split()) def lmi(): return list(map(int, input().split())) def lmi_0(): return list(map(lambda x: int(x) - 1, input().split())) def li(): return list(input()) L = lmi() print("YES") if L.count(5) == 2 and L.count(7) == 1 else print("NO") if __name__ == "__main__": main()
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s404374393
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
H, W, A, B = map(int, input().split()) answer = 0 mod = 1000000007 factorial = [1] for n in range(1, H + W): factorial.append(factorial[n - 1] * n % mod) def power(x, y): if y == 0: return 1 elif y == 1: return x % mod elif y % 2 == 0: return power(x, y / 2) ** 2 % mod else: return power(x, y / 2) ** 2 * x % mod inverseFactorial = [0] * (H + W) inverseFactorial[H + W - 1] = power(factorial[H + W - 1], mod - 2) for n in range(H + W - 2, -1, -1): inverseFactorial[n] = inverseFactorial[n + 1] * (n + 1) % mod def combi(n, m): return factorial[n] * inverseFactorial[m] * inverseFactorial[n - m] % mod for i in range(B + 1, W + 1): answer = (answer + combi(H - A - 2 + i, i - 1) * combi(A + W - i - 1, W - i)) % mod print(answer)
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s195074100
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
text = input().split() if len(text[0]) + len(text[1]) + len(text[2]) != 17: print("NO") elif len(text[0]) != 5 || len(text[0]) != 7: print("NO") elif len(text[1]) != 5 || len(text[1]) != 7: print("NO") else: print("YES")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s511039995
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
n, k = [s for s in input().split()] n = int(n) k = int(k) hate = list(map(int, input().split())) # hate取得 like = [] for i in range(1, 10): # like取得 if i not in hate: like.append(i) pointer = 0 for ichi in like: # 1桁の場合 if ichi >= n: kane = ichi pointer = 1 break if pointer == 0: # 2桁の場合 for ju in like: for ichi in like: if ju * 10 + ichi >= n: kane = ju * 10 + ichi pointer = 1 break if pointer == 1: break if pointer == 0: # 3桁の場合 for hyaku in like: for ju in like: for ichi in like: if hyaku * 100 + ju * 10 + ichi >= n: kane = hyaku * 100 + ju * 10 + ichi pointer = 1 break if pointer == 1: break if pointer == 1: break if pointer == 0: # 4桁の場合 for sen in like: for hyaku in like: for ju in like: for ichi in like: if sen * 1000 + hyaku * 100 + ju * 10 + ichi >= n: kane = sen * 1000 + hyaku * 100 + ju * 10 + ichi pointer = 1 break if pointer == 1: break if pointer == 1: break if pointer == 1: break if pointer == 1: print(kane) else: print("Error!!")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s161418154
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
test=list(map(int, input().split())) def iroha(): if test==[5,5,7]: print("yes") elif test==[5,7,5]: print("yes") elif test==[7,5,5]: print("yes") else: print("no") iroha()
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s451796528
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
s = input().split() #s_1 s_2を分割して取得し、sに値を入れる five = 0 seven = 0 for i range(3): if s[i] == '5': five += 1 if s[i] == '7': seven += 1 if five == 2 and seven == 1: print('YES') else: print('NO')
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s737862364
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a,b,c = map(int, input().split()) flag = 0 if a == 7 & b,c == 5: flag = 1 elif b == 7 & a,c == 5: flag = 1 elif c == 7 & a,b == 5: flag = 1 else: flag = 0 if flag = 0: print('No') else: print('YES')
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s210256589
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = map(int, input().split()) if(a==7): if(b==5 & c==5): print('YES') else: print('NO') elif(b==7): if(a==5 & c==5): print('YES') else: print('NO') elif(c==7): if(b==5 & a==5): print('YES') else: print('NO') else print('NO')
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s370389900
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
def equal(n, available): return n in available def less(n, available): return n < sorted(available)[0] def greater(n, available): return n > sorted(available, reverse=True)[0] # less(n, available) == True であること def upper_next(n, available): for v in sorted(available): if n < v: return v return 1 / 0 n_str, _ = [v for v in input().split()] n_s = [0] n_s.extend([int(n_str[i : i + 1]) for i in range(len(n_str))]) d_s = [int(v) for v in input().split()] available = set(list(range(10))) - set(d_s) # print("n", n_s, "d", d_s, "u", available) min_available = sorted(available)[0] max_available = sorted(available, reverse=True)[0] ans = [0] ans.extend([min_available] * (len(n_s) - 1)) eq = True for i in range(1, len(n_s)): if eq: if equal(n_s[i], available): ans[i] = n_s[i] continue else: eq = False if less(n_s[i], available): ans[i] = upper_next(n_s[i], available) # 残りは最小値詰め break else: for j in range(i - 1, -1, -1): if ans[j] == max_available: ans[j] = min_available else: ans[j] = upper_next(ans[j], available) break break begin = 0 if ans[0] == 0: begin = 1 ans_val = "".join(map(lambda x: str(x), ans[begin:])) print(ans_val)
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s188199307
Accepted
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = [int(x) for x in input().split()] print("YES") if sorted([a, b, c]) == [5, 5, 7] else print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s153315305
Accepted
p04043
The input is given from Standard Input in the following format: A B C
print("NYOE S"[["5", "5", "7"] == sorted(input()[::2]) :: 2])
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s155492575
Accepted
p04043
The input is given from Standard Input in the following format: A B C
A = sorted([int(i) for i in input().split()]) print("YES" if A == [5, 5, 7] else "NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s645307498
Accepted
p04043
The input is given from Standard Input in the following format: A B C
print(["NO", "YES"][sorted(list(map(int, input().split()))) == [5, 5, 7]])
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s842220449
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
if [A,B,C]=[5,5,7]or[5,7,5]or[7,5,5]: print(YES) else:print(NO)
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s595519916
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
A = int(input()).split() if A.count.("5") == 2 and a.count("7")==1: print("YSE") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s671940754
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
abc = [int(x) in input().split()] abc.sort() print("YES" if abc == [5, 5, 7] else "NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s989397941
Wrong Answer
p04043
The input is given from Standard Input in the following format: A B C
p = set(input()) print("YNEOS"[p == {" ", 5, 7} :: 2])
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s190816422
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
s = input().split() if s.count("5") == 2 and s.count("7") = 1: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s733093032
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = sorted(map(int, input().split())) if a + b + c == 5, 5, 7: print("Yes") else: print("No")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s307687267
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
l = list(map(int,input().split())) if l.count(5) == 2, and l.count(7)==1 : print('YES') else: print('NO')
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s569411381
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a,b,c=input().split() if max(a,b,c)=7 and mean(a,b,c)=5 and min(a,b,c)=5: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s722904446
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
(n, l) = map(int, input().split()) list1 = list(input().split()) for i in range(n): print(list1[i], end="")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s134813397
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
s = input().split() if s.count('5') == 2 and s.count('7') == 1: print('YES') else: print('NO')
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s334537739
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
int a = 5 int b = 7 int c = 5 if a = b: print("YES") elif b = c: print("YES") elif c = b: ("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s227560385
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a,b,c=list(map(int,input().split())) print("YES" if (a=b=5 and c=7) or (a=c=5 and b=7) or (b=c=5 and a=7) else "NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s444990108
Wrong Answer
p04043
The input is given from Standard Input in the following format: A B C
length = sorted([int(x) for x in input().split()]) print("Yes" if length[0] == length[1] == 5 and length[2] == 7 else "No")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s847476895
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
num, size = map(int, input().split()) data = [] for x in range(num): data.append(input()) data.sort() print(data.join())
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s102446982
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a = list(map(int,input().split())) b = sorted(a) if b = [5, 5, 7]: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s488686273
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
if input().count("5")==2,input().count("7")==1: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s714644880
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
abc = list(map(int,input().split())) if 5 in abc and 7 in abc and abc.count(7)==1: print('YES') else print('NOT')
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s980229367
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
A, B, C = int(input().split().split()) array = [A, B, C] sa = sorted[array] if sa = [5, 5, 7]: return YES else: return NO
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s639153547
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
n = list(map(int,input().split())) if 5 in n : n.remove(5) elif 5 in n : elif 7 in n : print("YES") else : print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s567097189
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
iroha = input() iroha = iroha.split(" ") iroha = sorted(iroha) if iroha = ["5", "5", "7"]: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s969521286
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
i = list(map(int, input().split())) countFive = i.count(5) countSeven = i.count(7) if countFive == 2 & countSeven == 1 print("YES") else print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s572198875
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
n = list(map(int,input().split())) if 5 in n : n.remove(5) elif 5 in n : elif 7 in n : print("YES") else : print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s112816728
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
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")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s681714924
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
n, l = map(int, input().split()) a = [input() for i in range(n)] b = sorted(a) k = "" for j in range(n): k = k + b[j] print(k)
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s211167130
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a,b,c=map(int,input().split()) list1=[a,b,c] list2=sorted(list1) if list2[0]==list2[1]==5 and list2[2]==7: print("YES") else: print(NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s951587787
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
A, B, C = map(int, input().split()) if [A, B, C].count(5) = 2 and [A, B, C].count(7) = 1: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s023396572
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
A, B, C = int(input().split()) if A == 7, B == 5, C == 5: print("YES") elif A == 5, B == 7, C == 5: print("YES") elif A == 5, B == 5, C == 7: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s218798104
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
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")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s351235589
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
a,b,c=map(int, [input() for i in range(3)] if input().count("5")==2,input().count("7")==1: print("YES") else print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s458980741
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
[a,b,c]=input().split() [A,B,C]=map(len, [a,b,c]) haiku=[A,B,C] haiku.sort() if haiku==[5,5,7]; print("YES") else;print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s970540050
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
N, _ = map(int, input().strip().split()) D = input().strip().split() for ans in range(N, 100000): if len(set(str(ans)) & set(D)) == 0: print(ans) break
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s557817881
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
#include <iostream> #include <math.h> #include <vector> #include <map> #include <stack> #include <queue> #include <set> #include <algorithm> #include <iomanip> #include <string.h> #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) #define ALL(a) (a).begin(),(a).end() typedef long long lint; using namespace std; int main(){ int A[3]; int B[3]={5,5,7}; cin>>A[0]>>A[1]>>A[2]; sort(A,A+3); if(memcmp(A,B,sizeof A))cout<<"NO"<<endl; else cout<<"YES"<<endl; return 0; }
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s306934730
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
test=list(map(int, input().split())) def iroha(): if test==[5,5,7]: print("yes") elif test==[5,7,5]: print("yes") elif test==[7,5,5]: print("yes") else: print("no") iroha()
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s014969209
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
H, W, A, B = map(int, input().split()) total = 0 tmp1, tmp2 = 1, 1 # 初期化 tmp3, tmp4 = 1, 1 # 初期化 for i in range(B, W, 1): conv1, conv2 = 0, 0 # 初期化 if i == B: for j in range(i): tmp1 *= i + (H - A - 1) - j tmp1 %= 10**9 + 7 for j in range(i, 0, -1): tmp2 *= j tmp2 %= 10**9 + 7 else: tmp1 *= i + (H - A - 1) tmp1 %= 10**9 + 7 tmp2 *= i tmp2 %= 10**9 + 7 conv1 = tmp1 / tmp2 if i == B: for j in range(W - 1 - i): tmp3 *= (A - 1) + (W - 1 - i) - j tmp3 %= 10**9 + 7 for j in range(W - 1 - i, 0, -1): tmp4 *= j tmp4 %= 10**9 + 7 else: tmp3 *= W - 1 - i + 1 tmp3 %= 10**9 + 7 tmp4 *= (A - 1) + (W - 1 - i) + 1 tmp4 %= 10**9 + 7 conv2 = tmp3 / tmp4 total += conv1 * conv2 print(int(total))
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s317824786
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
# -*- coding: utf-8 -*- a = [int(i) i for input().split()] count_5 = 0 count_7 = 0 for i in a: if i == 5: count_5 += 1 elif i == 7: count_7 += 1 else: continue if count_5 == 2 and count_7 == 1: print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s668381690
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
A=input() B=input() C=input() if len(A)=7 and len(B)=5 and len(C)=5 : print("YES") else: print("NO") if len(A)=5 and len(B)=7 and len(C)=5 : print("YES") else: print("NO") if len(A)=5 and len(B)=5 and len(C)=7 : print("YES") else: print("NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s976908919
Accepted
p04043
The input is given from Standard Input in the following format: A B C
l = input().split() print("YES" if l.count("5") == 2 and l.count("7") == 1 else "NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s629340116
Accepted
p04043
The input is given from Standard Input in the following format: A B C
on = list(map(int, input().split())) print("YES" if on.count(5) == 2 and on.count(7) == 1 else "NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s796890177
Accepted
p04043
The input is given from Standard Input in the following format: A B C
a, b, c = [int(i) for i in input().split()] print("YES" if sorted([a, b, c]) == [5, 5, 7] else "NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s844853399
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
print("YES" if 5, 7, 5 == map(int, input().split()) else "NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s334523061
Wrong Answer
p04043
The input is given from Standard Input in the following format: A B C
s = "5 5 7" k = list(map(int, s.split())) k.sort() print("YES" if k == [5, 5, 7] else "NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s988964227
Wrong Answer
p04043
The input is given from Standard Input in the following format: A B C
sets = set(map(int, input().split())) print("Yes" if sets == set([5, 7, 5]) else "no")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s229635507
Wrong Answer
p04043
The input is given from Standard Input in the following format: A B C
print("YNeos"["".join(sorted(input())) != " 557" :: 2])
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s736010727
Wrong Answer
p04043
The input is given from Standard Input in the following format: A B C
print("YES" if (5, 7, 5) == tuple(map(int, input().split())) else "NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s586660758
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
x=input() y=input() z=input() if (x*y*z=5*5*7): print('true') else: print('False')
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s037063310
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
s=input() a=[] for i in s: if i == 'B': if x: a.pop() else: a.append(i) print(''.join(a))
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s020089644
Wrong Answer
p04043
The input is given from Standard Input in the following format: A B C
num = list(map(int, input().split()))
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s111082345
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
list = list(map(int(input()))) print(list)
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
If it is possible to construct a Haiku by using each of the phrases once, print `YES` (case-sensitive). Otherwise, print `NO`. * * *
s165999849
Runtime Error
p04043
The input is given from Standard Input in the following format: A B C
print("YES" is 5, 7, 5 == map(int, input().split()) else "NO")
Statement Iroha loves _Haiku_. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order. To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.
[{"input": "5 5 7", "output": "YES\n \n\nUsing three phrases of length 5, 5 and 7, it is possible to construct a Haiku.\n\n* * *"}, {"input": "7 7 5", "output": "NO"}]
Print the expected x\- and y-coordinates of the center of the circle inscribed in the triangle formed by the chosen points. Your output will be considered correct when the absolute or relative error is at most 10^{-9}. * * *
s122116101
Wrong Answer
p02894
Input is given from Standard Input in the following format: N L T_1 : T_N
import math import time start = time.time() N, L = map(int, input().split()) nodes = [] for i in range(N): nodes.append(float(input())) def calc_naishin(a, b, c): a_x, a_y = a b_x, b_y = b c_x, c_y = c A = math.sqrt((b_x - c_x) ** 2 + (b_y - c_y) ** 2) B = math.sqrt((c_x - a_x) ** 2 + (c_y - a_y) ** 2) C = math.sqrt((a_x - b_x) ** 2 + (a_y - b_y) ** 2) n_x = (A * a_x + B * b_x + C * c_x) / (A + B + C) n_y = (A * a_y + B * b_y + C * c_y) / (A + B + C) return n_x, n_y counter = 0 sum_x = 0.0 sum_y = 0.0 """ for i in range(len(nodes) - 2): for j in range(i+1, len(nodes) - 1): for k in range(j+1, len(nodes)): a = ((math.cos((2*math.pi*nodes[i])/L)), math.sin((2*math.pi*nodes[i])/L)) b = ((math.cos((2*math.pi*nodes[j])/L)), math.sin((2*math.pi*nodes[j])/L)) c = ((math.cos((2*math.pi*nodes[k])/L)), math.sin((2*math.pi*nodes[k])/L)) n_x, n_y = calc_naishin(a, b, c) sum_x += n_x sum_y += n_y counter += 1 """ for i in range(len(nodes) - 2): for j in range(i + 1, len(nodes) - 1): for k in range(j + 1, len(nodes)): T_i, T_j, T_k = nodes[i], nodes[j], nodes[k] a = ((math.cos((2 * math.pi * T_i) / L)), math.sin((2 * math.pi * T_i) / L)) b = ((math.cos((2 * math.pi * T_j) / L)), math.sin((2 * math.pi * T_j) / L)) c = ((math.cos((2 * math.pi * T_k) / L)), math.sin((2 * math.pi * T_k) / L)) n_x, n_y = calc_naishin(a, b, c) sum_x += n_x sum_y += n_y counter += 1 print(sum_x / counter, sum_y / counter) print(time.time() - start)
Statement Given are N points on the circumference of a circle centered at (0,0) in an xy-plane. The coordinates of the i-th point are (\cos(\frac{2\pi T_i}{L}),\sin(\frac{2\pi T_i}{L})). Three distinct points will be chosen uniformly at random from these N points. Find the expected x\- and y-coordinates of the center of the circle inscribed in the triangle formed by the chosen points.
[{"input": "3 4\n 0\n 1\n 3", "output": "0.414213562373095 -0.000000000000000\n \n\nThe three points have the coordinates (1,0), (0,1), and (0,-1). The center of\nthe circle inscribed in the triangle formed by these points is (\\sqrt{2}-1,0).\n\n* * *"}, {"input": "4 8\n 1\n 3\n 5\n 6", "output": "-0.229401949926902 -0.153281482438188\n \n\n* * *"}, {"input": "10 100\n 2\n 11\n 35\n 42\n 54\n 69\n 89\n 91\n 93\n 99", "output": "0.352886583546338 -0.109065017701873"}]
Print the expected x\- and y-coordinates of the center of the circle inscribed in the triangle formed by the chosen points. Your output will be considered correct when the absolute or relative error is at most 10^{-9}. * * *
s402171753
Wrong Answer
p02894
Input is given from Standard Input in the following format: N L T_1 : T_N
from math import pi, cos, sin from itertools import combinations def centerP(a, b, c): da = dist(b, c) db = dist(c, a) dc = dist(a, b) dt = da + db + dc return (da * a[0] + db * b[0] + dc * c[0]) / dt, ( da * a[1] + db * b[1] + dc * c[1] ) / dt def dist(a, b): return ((a[0] - b[0]) ** 2 + (a[1] - b[1]) ** 2) ** 0.5 N, L = map(int, input().split()) P = [] for i in range(N): T = int(input()) P.append([cos(2 * pi * T / L), sin(2 * pi * T / L)]) sumx = 0 sumy = 0 li = combinations(P, 3) for a, b, c in li: x, y = centerP(a, b, c) sumx += x sumy += y print(sumx / N, sumy / N)
Statement Given are N points on the circumference of a circle centered at (0,0) in an xy-plane. The coordinates of the i-th point are (\cos(\frac{2\pi T_i}{L}),\sin(\frac{2\pi T_i}{L})). Three distinct points will be chosen uniformly at random from these N points. Find the expected x\- and y-coordinates of the center of the circle inscribed in the triangle formed by the chosen points.
[{"input": "3 4\n 0\n 1\n 3", "output": "0.414213562373095 -0.000000000000000\n \n\nThe three points have the coordinates (1,0), (0,1), and (0,-1). The center of\nthe circle inscribed in the triangle formed by these points is (\\sqrt{2}-1,0).\n\n* * *"}, {"input": "4 8\n 1\n 3\n 5\n 6", "output": "-0.229401949926902 -0.153281482438188\n \n\n* * *"}, {"input": "10 100\n 2\n 11\n 35\n 42\n 54\n 69\n 89\n 91\n 93\n 99", "output": "0.352886583546338 -0.109065017701873"}]
1x1=1 1x2=2 . . 9x8=72 9x9=81
s109361749
Runtime Error
p00000
No input.
#!/usr/bin/env python3 a, b = map(int, input().split()) if a < b: print("a < b") elif a > b: print("a > b") else: print("a == b")
QQ Write a program which prints multiplication tables in the following format: 1x1=1 1x2=2 . . 9x8=72 9x9=81
[]
1x1=1 1x2=2 . . 9x8=72 9x9=81
s448480083
Wrong Answer
p00000
No input.
print("aaa")
QQ Write a program which prints multiplication tables in the following format: 1x1=1 1x2=2 . . 9x8=72 9x9=81
[]
1x1=1 1x2=2 . . 9x8=72 9x9=81
s819759725
Wrong Answer
p00000
No input.
for x in range(1, 9): for y in range(1, 9): print("%dX%d=%d" % (x, y, x * y))
QQ Write a program which prints multiplication tables in the following format: 1x1=1 1x2=2 . . 9x8=72 9x9=81
[]
1x1=1 1x2=2 . . 9x8=72 9x9=81
s833350796
Wrong Answer
p00000
No input.
x = list(range(1, 11)) for y in x: print(str(y) + "x" + str(y) + "=" + str(y * y))
QQ Write a program which prints multiplication tables in the following format: 1x1=1 1x2=2 . . 9x8=72 9x9=81
[]