s_id
stringlengths
10
10
p_id
stringlengths
6
6
u_id
stringlengths
10
10
date
stringlengths
10
10
language
stringclasses
1 value
original_language
stringclasses
11 values
filename_ext
stringclasses
1 value
status
stringclasses
1 value
cpu_time
int64
0
100
memory
stringlengths
4
6
code_size
int64
15
14.7k
code
stringlengths
15
14.7k
problem_id
stringlengths
6
6
problem_description
stringlengths
358
9.83k
input
stringlengths
2
4.87k
output
stringclasses
807 values
__index_level_0__
int64
1.1k
1.22M
s409892782
p04043
u662430503
1589502375
Python
Python (3.4.3)
py
Accepted
17
2940
227
def main(): num = list(map(int,input().split())) fiven=0 sevenn=0 for i in range(0,3): if num[i]==5 : fiven+=1 elif num[i]==7 : sevenn+=1 if fiven==2 and sevenn==1 : print('YES') else: print('NO') main()
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,017
s990479910
p04043
u343977188
1589500193
Python
Python (3.4.3)
py
Accepted
17
2940
101
S=list(map(int,input().split())) if S.count(5)==2 and S.count(7)==1: print("YES") else:print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,018
s445957841
p04043
u683956577
1589487998
Python
Python (3.4.3)
py
Accepted
16
2940
97
a = list(map(int, input().split())) print("YES" if a.count(5) == 2 and a.count(7) == 1 else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,019
s435928565
p04043
u688203790
1589476496
Python
Python (3.4.3)
py
Accepted
18
2940
169
A = sorted(map(int,input().split())) if A[2] == 7: if A[0] == 5 and A[0] == A[1]: print("YES") else: print("NO") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,020
s959656453
p04043
u940622864
1589473414
Python
Python (3.8.2)
py
Accepted
19
9160
113
n=3 a=[0]*n b=[5,7,5] a[:]=map(int,input().split()) a.sort() b.sort() if a==b: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,021
s901326991
p04043
u617829104
1589472720
Python
Python (3.8.2)
py
Accepted
21
8880
99
word = input() if word.count("5") == 2 and word.count("7") == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,022
s619355461
p04043
u679089074
1589436458
Python
Python (3.8.2)
py
Accepted
20
9176
193
X = list(map(int,input().split())) cou5 = 0 cou7 = 0 for i in X: if i ==5: cou5 +=1 if i ==7: cou7 +=1 if cou5 == 2 and cou7 ==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,023
s939832168
p04043
u370852395
1589433356
Python
Python (3.8.2)
py
Accepted
22
9160
109
l =list(map(int,input().split())) if l.count(5)==2 and l.count(7)==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,024
s089610653
p04043
u679089074
1589432383
Python
Python (3.8.2)
py
Accepted
23
9120
193
X = list(map(int,input().split())) cou5 = 0 cou7 = 0 for i in X: if i ==5: cou5 +=1 if i ==7: cou7 +=1 if cou5 == 2 and cou7 ==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,025
s683959628
p04043
u284534319
1589424911
Python
Python (3.8.2)
py
Accepted
22
9036
152
#!/usr/bin/env python3 a, b, c = map(int, input().split()) l = [a,b,c] if (l.count(5) == 2) & (l.count(7) == 1): print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,026
s391931820
p04043
u844895214
1589419342
Python
Python (3.4.3)
py
Accepted
17
3064
315
length = list(map(int, input().split())) judge = {0:5,1:7,2:5} for i in range(len(judge)): for j in range(len(length)): if length[j] == judge[i]: length.pop(j) break else: if j == len(length)-1: print('NO') exit() print('YES')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,027
s008758871
p04043
u677991935
1589418248
Python
Python (3.4.3)
py
Accepted
17
2940
187
A,B,C=(int(x) for x in input().split()) if A==7 and B==5 and C==5: print("YES") elif A==5 and B==7 and C==5: print("YES") elif A==5 and B==5 and C==7: print("YES") else:print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,028
s632543752
p04043
u746428948
1589417427
Python
Python (3.4.3)
py
Accepted
17
3060
239
a,b,c = map(int,input().split()) ok = False if a == 5 and b == 5 and c == 7: ok = True elif a == 5 and b == 7 and c == 5: ok = True elif a == 7 and b == 5 and c == 5: ok = True if ok == 1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,029
s996496665
p04043
u638282348
1589413665
Python
Python (3.4.3)
py
Accepted
18
2940
65
print("YNEOS"[sorted(map(int, input().split())) != [5, 5, 7]::2])
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,030
s590843971
p04043
u539826121
1589405039
Python
Python (3.4.3)
py
Accepted
17
2940
84
ABC = input() print("YES" if ABC.count("5") == 2 and ABC.count("7") == 1 else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,031
s485906435
p04043
u167647458
1589404277
Python
Python (3.4.3)
py
Accepted
17
2940
146
a, b, c = map(int, input().split()) x = [5, 7] if (a + b + c == 17) and (a in x) and (b in x) and (c in x): print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,032
s780216700
p04043
u527454768
1589395082
Python
Python (3.4.3)
py
Accepted
18
3064
94
N=list(map(int,input().split())) if sorted(N)==[5,5,7]: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,033
s360638108
p04043
u496821919
1589385812
Python
Python (3.4.3)
py
Accepted
17
2940
202
# -*- coding: utf-8 -*- """ Created on Wed May 13 11:57:51 2020 @author: shinba """ A = list(map(int,input().split())) B = [[5,5,7],[5,7,5],[7,5,5]] if A in B: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,034
s339495270
p04043
u996996256
1589372689
Python
Python (3.4.3)
py
Accepted
16
2940
78
l = map(int, input().split()) print("YES" if sorted(l) == [5, 5, 7] else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,035
s057453272
p04043
u996996256
1589372465
Python
Python (3.4.3)
py
Accepted
17
2940
74
l = input().split() print("YES" if sorted(l) == ['5', '5', '7'] else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,036
s106353003
p04043
u379142263
1589349282
Python
Python (3.4.3)
py
Accepted
21
3316
314
import sys import itertools sys.setrecursionlimit(1000000000) from heapq import heapify,heappop,heappush,heappushpop import math import collections MOD = 10**9+7 MAX = 10**18 MIN = -10**18 a = list(map(int,input().split())) a.sort() if a[0] == 5 and a[1] == 5 and a[2] == 7: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,037
s592349750
p04043
u252828980
1589335377
Python
Python (3.4.3)
py
Accepted
17
2940
72
a,b,c = map(int,input().split()) print("YES" if a*b*c ==175 else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,038
s177797704
p04043
u408958033
1589322311
Python
Python (3.4.3)
py
Accepted
17
2940
119
l = list(map(int,input().split())) x = l.count(5); y = l.count(7); if x==2 and y==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,039
s998083265
p04043
u761062383
1589321240
Python
Python (3.4.3)
py
Accepted
17
2940
98
s = [int(i) for i in input().split()] s.sort() if s == [5,5,7]: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,040
s007348099
p04043
u876169782
1589304694
Python
Python (3.4.3)
py
Accepted
17
3064
244
a,b,c = map(int,input().split()) g = 0 if a == 5: g = g + 1 if b == 5: g = g + 1 if c == 5: g = g + 1 h = 0 if a == 7: h = h + 1 if b == 7: h = h + 1 if c == 7: h = h + 1 if h == 1 and g == 2: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,041
s978610033
p04043
u835534360
1589304694
Python
Python (3.4.3)
py
Accepted
18
2940
178
a, b, c = (int(x) for x in input().split()) if a == 5 and b == 5 and c == 7 or a == 5 and b == 7 and c == 5 or a == 7 and b == 5 and c == 5: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,042
s273238820
p04043
u285891772
1589304404
Python
Python (3.4.3)
py
Accepted
38
5144
903
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees, log2 from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby from operator import itemgetter, mul...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,043
s012745817
p04043
u285891772
1589303657
Python
Python (3.4.3)
py
Accepted
38
5144
905
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees, log2 from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby from operator import itemgetter, mul...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,044
s466393608
p04043
u902380746
1589303635
Python
Python (3.4.3)
py
Accepted
18
3060
232
import sys import math import bisect def main(): A = list(map(int, input().split())) A.sort() if len(A) == 3 and A == [5, 5, 7]: print('YES') else: print('NO') if __name__ == "__main__": main()
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,045
s466803032
p04043
u285891772
1589303183
Python
Python (3.4.3)
py
Accepted
38
5144
906
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees, log2 from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby from operator import itemgetter, mul...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,046
s411022864
p04043
u977389981
1589298914
Python
Python (3.4.3)
py
Accepted
16
2940
74
A = sorted(input().split()) print('YES' if A == ['5', '5', '7'] else 'NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,047
s144040343
p04043
u285891772
1589297833
Python
Python (3.4.3)
py
Accepted
43
5452
926
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees, log2 from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby from operator import itemgetter, mul...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,048
s481671066
p04043
u278855471
1589293043
Python
Python (3.4.3)
py
Accepted
17
2940
127
A_B_C = list(map(int, input().split())) if A_B_C.count(5) == 2 and A_B_C.count(7) == 1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,049
s725869987
p04043
u475966842
1589246726
Python
Python (3.4.3)
py
Accepted
17
2940
201
As=input().split() count5=0 count7=0 for A in As: if A=="5": count5+=1 elif A=="7": count7+=1 if count5==2 and count7==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,050
s258957569
p04043
u083593845
1589245966
Python
Python (3.4.3)
py
Accepted
19
3060
133
a,b,c = map(int, input().split()) s = {a,b,c} list1 = [a,b,c] if s == {5,7} and sum(list1) == 17: print("YES") else : print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,051
s999426780
p04043
u446601167
1589244204
Python
Python (3.4.3)
py
Accepted
17
3060
186
A,B,C = map(int, input().split()) list_iroha = [A,B,C] #print(list_iroha) if [5,7,5] == list_iroha or [7,5,5] == list_iroha or [5,5,7] == list_iroha: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,052
s223239154
p04043
u145410317
1589236412
Python
Python (3.4.3)
py
Accepted
17
2940
129
numArray = list(map(int, input().split())) if numArray.count(5) == 2 and numArray.count(7) == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,053
s455999355
p04043
u161857411
1589232032
Python
Python (3.4.3)
py
Accepted
18
3060
199
input_num = input().split() numbers = {'5':0,'7':0} for num in input_num: if(num=='5' or num=='7'): numbers[num] +=1 if(numbers['5']==2 and numbers['7']==1): print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,054
s939738208
p04043
u619106763
1589193494
Python
Python (3.4.3)
py
Accepted
17
2940
125
val = sorted([int(i) for i in input().split()]) if val[0] == val[1] == 5 and val[2] == 7: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,055
s308791702
p04043
u713539685
1589192166
Python
Python (3.4.3)
py
Accepted
17
2940
198
str_len = list(map(int, input().split())) #print(str_len) num5 = str_len.count(5) num7 = str_len.count(7) #print(num5) #print(num7) if num5 == 2 and num7 == 1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,056
s735449088
p04043
u034317028
1589169297
Python
Python (3.4.3)
py
Accepted
18
2940
109
X = list(input().split()) if X.count("5") == 2 and X.count("7") == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,057
s271108240
p04043
u027403702
1589163359
Python
Python (3.4.3)
py
Accepted
17
2940
108
X = list(input().split()) if X.count("5") == 2 and X.count("7") == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,058
s137566605
p04043
u652445326
1589154728
Python
Python (3.4.3)
py
Accepted
17
3060
210
n = list(map(int,input().split())) result = [0]*2 for i in n: if i == 5: result[0] +=1 if i == 7: result[1]+=1 if result[0] ==2 and result[1] ==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,059
s962361597
p04043
u595600198
1589147688
Python
Python (3.4.3)
py
Accepted
16
2940
156
input_list = list(map(int, input().split())) lists = [5,7,5] try: for x in input_list: lists.remove(x) print("YES") except ValueError: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,060
s448302375
p04043
u517630860
1589142614
Python
Python (3.4.3)
py
Accepted
17
3060
307
# -*- coding: utf-8 -*- # 整数の入力 lst = list(map(int, input().split())) if lst[0] == 5: if (lst[1] == 7 and lst[2] == 5) or (lst[1] == 5 and lst[2] == 7): print("YES") exit() elif lst[0] == 7: if lst[1] == 5 and lst[2] == 5: print("YES") exit() print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,061
s160646139
p04043
u317916383
1589112855
Python
Python (3.4.3)
py
Accepted
17
2940
144
input = input().split(" ") count5 = input.count("5") count7 = input.count("7") if count5 == 2 and count7==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,062
s204094752
p04043
u446451725
1589080451
Python
Python (3.4.3)
py
Accepted
17
2940
176
input_st = input().split() input_num = [int(s) for s in input_st] num = sorted(input_num) if num[0] == 5 and num[1] == 5 and num[2] == 7: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,063
s097177629
p04043
u635252313
1589070409
Python
Python (3.4.3)
py
Accepted
17
3060
188
a,b,c=map(int,input().split()) if a==5 and b==5 and c==7: print("YES") elif a==5 and b==7 and c==5: print("YES") elif a==7 and b==5 and c==5: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,064
s371842302
p04043
u373596024
1589070275
Python
Python (3.4.3)
py
Accepted
17
2940
105
a = list(map(int,input().split())) if a.count(5)==2 and a.count(7)==1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,065
s222762271
p04043
u250944591
1589060188
Python
Python (3.4.3)
py
Accepted
17
2940
91
S = input() if S.count('5') == 2 and S.count('7') == 1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,066
s559814074
p04043
u954488273
1589053390
Python
Python (3.4.3)
py
Accepted
17
3060
173
a=list(map(int,input().split())) f=0 s=0 for i in range(3): if a[i] == 5: f += 1 if a[i] == 7: s += 1 if f == 2 and s == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,067
s156325430
p04043
u692498898
1588992987
Python
Python (3.4.3)
py
Accepted
18
2940
112
a=list(map(int,input().split())) a.sort() if a[0]==5 and a[1]==5 and a[2]==7: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,068
s074161143
p04043
u178079174
1588986698
Python
Python (3.4.3)
py
Accepted
17
2940
94
S = input() if S.count('5') == 2 and S.count('7') == 1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,069
s312691216
p04043
u884323674
1588985860
Python
Python (3.4.3)
py
Accepted
17
2940
117
length = input().split() if length.count("5") == 2 and length.count("7") == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,070
s264845266
p04043
u482157295
1588974851
Python
Python (3.4.3)
py
Accepted
21
3316
335
from collections import Counter abc_list = list(map(int,input().split())) abc_counter = Counter(abc_list) most_counter = abc_counter.most_common() if most_counter[0][0] == 5 and most_counter[0][1] == 2: if most_counter[1][0] == 7 and most_counter[1][1] == 1: print("YES") else: print("NO") else: ...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,071
s439164928
p04043
u470497486
1588875848
Python
Python (3.4.3)
py
Accepted
17
2940
160
# -*- coding: utf-8 -*- a_list = [int(x) for x in input().split(' ')] a_list.sort() # print(a_list) if a_list == [5,5,7]: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,072
s492568534
p04043
u654949547
1588867535
Python
Python (3.4.3)
py
Accepted
17
2940
98
a = input().split() a.sort() print("YES" if a[0] == '5' and a[1] == '5' and a[2] == '7' else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,073
s417834568
p04043
u369630760
1588866678
Python
Python (3.4.3)
py
Accepted
17
2940
114
a = input() b = a.count("5") c = a.count("7") if b == 2: if c == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,074
s258880829
p04043
u669057361
1588865176
Python
Python (3.4.3)
py
Accepted
17
2940
100
l = list(map(int, input().split())) l.sort() if l == [5,5,7]: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,075
s697078953
p04043
u038956510
1588855381
Python
Python (3.4.3)
py
Accepted
17
3060
404
# -*- coding: utf-8 -*- # 整数の入力 a, b, c = map(int, input().split()) # カウンタのクリア five_count = 0 seven_count = 0 # 5,7,5を判定 def setsu_check(x): global five_count, seven_count if x == 5: five_count+=1 elif x == 7: seven_count+=1 # 判定関数のCALL setsu_check(a) setsu_check(b) setsu_check(c) if five_count == 2 and seven_co...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,076
s506214173
p04043
u540698208
1588853022
Python
Python (3.4.3)
py
Accepted
17
2940
134
def main(): if sorted(input().split()) == ['5','5','7']: print('YES') else: print('NO') if __name__ == '__main__': main()
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,077
s198688498
p04043
u190079347
1588821065
Python
Python (3.4.3)
py
Accepted
17
2940
111
abc = list(map(int,input().split())) if abc.count(5)==2 and abc.count(7)==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,078
s513127525
p04043
u165268875
1588802018
Python
Python (3.4.3)
py
Accepted
18
2940
112
A, B, C = input().split() list = [A, B, C] print("YES" if list.count("5")==2 and list.count("7")==1 else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,079
s168301102
p04043
u834248129
1588799627
Python
Python (3.4.3)
py
Accepted
17
2940
147
a, b, c = map(int, input().split()) bunsetsu = [a, b, c] if bunsetsu.count(5) == 2 and bunsetsu.count(7)==1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,080
s699824711
p04043
u857673087
1588797182
Python
Python (3.4.3)
py
Accepted
17
2940
92
ABC = input().split() print('YES' if ABC.count('5') ==2 and ABC.count('7')==1 else 'NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,081
s960580775
p04043
u207241407
1588791491
Python
Python (3.4.3)
py
Accepted
18
2940
137
iroha = list(map(int, input().split())) ans = [[5, 5, 7], [5, 7, 5], [7, 5, 5]] if iroha in ans: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,082
s210848151
p04043
u694467277
1588739240
Python
Python (3.4.3)
py
Accepted
17
2940
138
a,b,c=map(int,input().split()) LIST=[a,b,c] go=LIST.count(5) sichi=LIST.count(7) if go==2 and sichi==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,083
s829419594
p04043
u593401678
1588734396
Python
Python (3.4.3)
py
Accepted
16
2940
210
def canConstructHaiku(arr): arr.sort() if arr[0] == 5 and arr[1] == 5 and arr[2] == 7: return True return False arr = list(map(int, input().split())) print("YES" if canConstructHaiku(arr) else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,084
s507766636
p04043
u441320782
1588730891
Python
Python (3.4.3)
py
Accepted
17
2940
103
X=list(map(int,input().split())) if X.count(5)==2 and X.count(7)==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,085
s498600330
p04043
u730257868
1588730522
Python
Python (3.4.3)
py
Accepted
17
3060
222
a = tuple(map(int, input().split())) a5 = 0 a7 = 0 b = 0 i = 0 while i < 3: if a[i] == 5: a5 += 1 elif a[i] == 7: a7 += 1 i += 1 if a5 == 2 and a7 == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,086
s847753212
p04043
u756420279
1588725658
Python
Python (3.4.3)
py
Accepted
18
2940
154
#!/usr/bin/env python3 A, B, C = input().split() lis = [A, B, C] if lis.count("5") == 2 and lis.count("7") == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,087
s472644669
p04043
u604655161
1588718629
Python
Python (3.4.3)
py
Accepted
17
3060
344
#和風いろはちゃんイージー def ABC_42_A(): A,B,C = map(int, input().split()) iroha = [0 for i in range(3)] iroha = [] iroha.append(A) iroha.append(B) iroha.append(C) if iroha.count(7)==1 and iroha.count(5)==2: print('YES') else: print('NO') if __name__ == '__main__': ABC_42_A()
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,088
s693505335
p04043
u551109821
1588714222
Python
Python (3.4.3)
py
Accepted
17
3060
228
A,B,C = map(int,input().split()) count7 = 0 count5 = 0 ans = [A,B,C] for i in ans: if i == 7: count7 += 1 elif i == 5: count5 += 1 if count7 == 1 and count5 == 2: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,089
s154632852
p04043
u246661425
1588651439
Python
Python (3.4.3)
py
Accepted
17
2940
73
a, b, c = map(int, input().split()) print("YES" if a+b+c == 17 else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,090
s426033463
p04043
u085334230
1588650502
Python
Python (3.4.3)
py
Accepted
17
2940
102
W = input().split() if W.count('5') == 2 or W.count('7') == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,091
s376685953
p04043
u973108807
1588644068
Python
Python (3.4.3)
py
Accepted
17
2940
109
a,b,c = sorted(list(map(int, input().split()))) if a == b == 5 and c == 7: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,092
s727935527
p04043
u843318346
1588642337
Python
Python (3.4.3)
py
Accepted
17
2940
111
arr = list(map(int,input().split())) if arr.count(5)==2 and arr.count(7)==1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,093
s542992877
p04043
u178474644
1588631270
Python
Python (3.4.3)
py
Accepted
17
3064
311
x = input() ls_x = x.split() for i in range(len(ls_x)): ls_x[i] = int(ls_x[i]) ct7=0 for i in range(len(ls_x)): if ls_x[i]==7: ct7 = ct7 + 1 ct5=0 for i in range(len(ls_x)): if ls_x[i]==5: ct5 = ct5 + 1 if (ct7==1) and (ct5==2): print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,094
s539402614
p04043
u483748949
1588621572
Python
Python (3.4.3)
py
Accepted
17
2940
103
a = list(map(int, input().split())) a.sort() if a == [5, 5, 7]: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,095
s153112584
p04043
u344813796
1588621552
Python
Python (3.4.3)
py
Accepted
17
2940
132
haiku=list(map(int, input().split())) #a1 a2 a3 haiku.sort() print('YES' if haiku[0]==5 and haiku[1]==5 and haiku[2]==7 else 'NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,096
s124410757
p04043
u629709614
1588619198
Python
Python (3.4.3)
py
Accepted
17
2940
123
A, B, C = map(int, input().split()) MC = [A, B, C] if MC.count(5)==2 and MC.count(7)==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,097
s109355568
p04043
u188827677
1588611866
Python
Python (3.4.3)
py
Accepted
17
2940
75
a = eval(input().replace(" ","+")) if a == 17:print("YES") else:print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,098
s297548245
p04043
u774598729
1588609753
Python
Python (3.4.3)
py
Accepted
17
2940
131
List = [int(i) for i in input().split()] a = List[0] b = List[1] c = List[2] if a*b*c==175: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,099
s718256189
p04043
u587589241
1588600715
Python
Python (3.4.3)
py
Accepted
17
2940
185
a,b,c=map(int,input().split()) lis5=0 lis7=0 for i in a,b,c: if i ==5: lis5+=1 elif i ==7: lis7+=1 if lis5==2 and lis7==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,100
s081390358
p04043
u572373398
1588597471
Python
Python (3.4.3)
py
Accepted
17
3064
203
l = list(map(int, input().split())) seven = 0 five = 0 for n in l: if n == 7: seven += 1 if n == 5: five += 1 if five == 2 and seven == 1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,101
s926025226
p04043
u301679431
1588589931
Python
Python (3.4.3)
py
Accepted
17
2940
71
S=input();print('YES' if S.count('7')==1 and S.count('5')==2 else 'NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,102
s664169127
p04043
u712445873
1588565146
Python
Python (3.4.3)
py
Accepted
17
2940
114
N = list(map(str, input().split())) if N.count("5") == 2 and N.count("7") == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,103
s605740740
p04043
u806403461
1588563363
Python
Python (3.4.3)
py
Accepted
17
3064
142
A, B, C = map(int, input().split()) l = [A, B, C] l = sorted(l) if l[0] == l[1] == 5 and l[2] == 7: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,104
s752196460
p04043
u962170423
1588555997
Python
Python (3.4.3)
py
Accepted
17
2940
97
l,m,n = map(int,input().split()) cnt = l+m+n if cnt == 17: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,105
s106551917
p04043
u106797249
1588542844
Python
Python (3.4.3)
py
Accepted
21
3316
218
def resolve(): import collections count = collections.Counter(list(map(int, input().split()))) print("YES" if count[5] == 2 and count[7] == 1 else "NO") if '__main__' == __name__: resolve()
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,106
s045123292
p04043
u260764792
1588530375
Python
Python (3.4.3)
py
Accepted
17
2940
139
a=list(map(int,input().split())) if sum(a) == 17: a.sort() if a[0]==5 and a[1]==5: print('YES') else: print('NO') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,107
s396774364
p04043
u849229491
1588519069
Python
Python (3.4.3)
py
Accepted
17
3060
194
a = list(map(int,input().split())) b =0 c =0 for i in range(3): if a[i] == 7: b += 1 elif a[i] == 5: c += 1 if b == 1 and c == 2: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,108
s338607790
p04043
u221888299
1588502064
Python
Python (3.4.3)
py
Accepted
17
2940
85
n = input().split() print('YES' if n.count('5') == 2 and n.count('7') == 1 else 'NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,109
s857873262
p04043
u366886346
1588494636
Python
Python (3.4.3)
py
Accepted
17
2940
116
a,b,c=map(int,input().split()) d=[a,b,c] if d.count(5)==2 and d.count(7)==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,110
s984662381
p04043
u953655640
1588479225
Python
Python (3.4.3)
py
Accepted
17
3060
177
A = list(map(str, input().split())) A7 = 0 A5 = 0 for i in A: if i == "7": A7 += 1 elif i == "5": A5 += 1 if A5 == 2 and A7 == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,111
s959302060
p04043
u535423069
1588464883
Python
Python (3.4.3)
py
Accepted
17
3064
705
import sys stdin = sys.stdin inf = 1 << 60 mod = 1000000007 ni = lambda: int(ns()) nin = lambda y: [ni() for _ in range(y)] na = lambda: list(map(int, stdin.readline().split())) nan = lambda y: [na() for _ in range(y)] nf = lambda: float(ns()) nfn = lambda y: [nf() for _ in range(y)] nfa ...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,112
s651718054
p04043
u617659131
1588456849
Python
Python (3.4.3)
py
Accepted
17
2940
110
a = list(map(int, input().split())) if a.count(5) == 2 and a.count(7) == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,113
s800472281
p04043
u922851354
1588453493
Python
Python (3.4.3)
py
Accepted
17
3060
341
a, b, c=map(int, input().split()) if a==7: if b==5: if c==5: res='YES' else: res='NO' else: res='NO' elif a==5: if b==5: if c==7: res='YES' else: res='NO' elif b==7: if c==5: res='YES' else: res='NO' else: res='NO' p...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,114
s296153071
p04043
u912867658
1588430283
Python
Python (3.4.3)
py
Accepted
17
2940
120
s = list(input().split()) a = s.count("5") b = s.count("7") if a == 2 and b == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,115
s305373880
p04043
u126844573
1588428448
Python
Python (3.4.3)
py
Accepted
18
2940
62
print("YES" if sum(map(int, input().split())) == 17 else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,210,116