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
s872524707
p04043
u396961814
1585960486
Python
Python (3.4.3)
py
Accepted
17
2940
139
ABC = [int(x) for x in input().split()] S = sorted(ABC) if S[0] == 5 and S[1] == 5 and S[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,317
s225438741
p04043
u086172144
1585949890
Python
Python (3.4.3)
py
Accepted
17
2940
84
a=sorted(list(map(int,input().split()))) 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,318
s373400455
p04043
u080986047
1585933425
Python
Python (3.4.3)
py
Accepted
17
2940
105
li = input().split() if li.count('7') == 1 and li.count("5") == 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,319
s433476080
p04043
u080986047
1585933293
Python
Python (3.4.3)
py
Accepted
17
3060
376
li = input().split() if ('7' in li) == True: if ('5' in li) == True: if li[0] == '5': if li[1] == '5' or li[2] == '5': print("YES") else: print("NO") elif li[1] == '5' and li[2] == '5': print("YES") else: print("...
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,320
s768345675
p04043
u755180064
1585882506
Python
Python (3.4.3)
py
Accepted
17
2940
189
def main(): t = input().split() if t.count('5') == 2: if t.count('7'): print('YES') exit() 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,321
s004703366
p04043
u181801282
1585875571
Python
Python (3.4.3)
py
Accepted
17
2940
112
A=sorted(list(map(int,input().split()))) if A[0] == 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,322
s419772773
p04043
u018597853
1585865615
Python
Python (3.4.3)
py
Accepted
17
2940
107
value = input() if value.count("5") == 2 and value.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,323
s594207390
p04043
u864202285
1585863457
Python
Python (3.4.3)
py
Accepted
17
2940
106
value = input() if value.count("5") == 2 and value.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,324
s684101460
p04043
u798093965
1585861371
Python
Python (3.4.3)
py
Accepted
17
2940
175
a,b,c = map(int, input().split()) if (a == 5 and b == 5 and c == 7 ) or (a == 5 and b == 7 and c == 5) or (a == 7 and b == 5 and c == 5): print("YES") else: print("NO")
p04043
<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,325
s687446689
p04043
u687135117
1585847033
Python
Python (3.4.3)
py
Accepted
17
2940
127
s=list(input().split()) s.sort() d=int(s[0])*100+int(s[1])*10+int(s[2]) d=d-557 if d==0: print("YES") else: print("NO")
p04043
<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,326
s017110797
p04043
u536836760
1585795434
Python
Python (3.4.3)
py
Accepted
17
2940
191
x = list(map(int,input().split())) five = 0 seven = 0 for i in x: if i == 5: five += 1 elif i == 7: seven += 1 if seven == 1 and five == 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,327
s069188403
p04043
u799528852
1585782186
Python
Python (3.4.3)
py
Accepted
17
3060
222
line = input().split() a = 0 for i in line: a += int(i) if a == 17 and ((line[0] == "5" and line[1] == "5") or (line[0] == "5" and line[2] == "5") or (line[1] == "5" and line[2] =="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,328
s699002619
p04043
u485319545
1585778524
Python
Python (3.4.3)
py
Accepted
17
2940
89
a,b,c = map(int,input().split()) if(a*b*c/175==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,329
s543210190
p04043
u702517202
1585748296
Python
Python (3.4.3)
py
Accepted
17
2940
152
haiku = list(map(int, input().split())) five = haiku.count(5) seven = haiku.count(7) 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,330
s006508833
p04043
u218838821
1585731973
Python
Python (3.4.3)
py
Accepted
17
2940
109
abc = list(map(int,(input().split()))) abc.sort() if abc == [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,331
s898972599
p04043
u535659144
1585691083
Python
Python (3.4.3)
py
Accepted
17
2940
106
lis = input().split() 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,332
s260421120
p04043
u063346608
1585684908
Python
Python (3.4.3)
py
Accepted
17
3060
197
A,B,C = map(int,input().split()) if A == 5 and B == 5 and C == 7: print("YES") elif B == 5 and C == 5 and A == 7: print("YES") elif C == 5 and A == 5 and B == 7: print("YES") else: print("NO")
p04043
<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,333
s259450060
p04043
u069744971
1585650581
Python
Python (3.4.3)
py
Accepted
17
2940
90
a = input() 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,334
s100770958
p04043
u048521352
1585630116
Python
Python (3.4.3)
py
Accepted
17
2940
124
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,335
s253824197
p04043
u865383026
1585625534
Python
Python (3.4.3)
py
Accepted
17
2940
114
A = list(input().split()) B = [int(i) for i in A] print('YES' if sum(B) == 17 and '5' in A and '7' in A 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,336
s269185242
p04043
u870518235
1585622779
Python
Python (3.4.3)
py
Accepted
17
2940
90
A, B, C = map(int, input().split()) 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,337
s415230767
p04043
u453815934
1585622402
Python
Python (3.4.3)
py
Accepted
17
2940
127
a,b,c = input().split() List = [a,b,c] if List.count("5") == 2 and List.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,338
s207159064
p04043
u247341370
1585621049
Python
Python (3.4.3)
py
Accepted
17
2940
127
a, b, c = map(int, input().split()) if a+b+c == 17 and (5 in [a,b,c] and 7 in [a,b,c]): 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,339
s180440985
p04043
u479638406
1585619007
Python
Python (3.4.3)
py
Accepted
17
2940
103
abc = list(input()) 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,340
s015917356
p04043
u443872523
1585606545
Python
Python (3.4.3)
py
Accepted
17
2940
101
L = sorted(list(map(int, input().split()))) 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,341
s318753307
p04043
u254871849
1585592631
Python
Python (3.4.3)
py
Accepted
17
2940
198
import sys *a, = map(int, sys.stdin.readline().split()) def main(): a.sort() ans = 'YES' if a[0] == a[1] == 5 and a[2] == 7 else 'NO' print(ans) 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,342
s589601899
p04043
u229518917
1585585570
Python
Python (3.4.3)
py
Accepted
17
2940
80
A,B,C=map(int,input().split()) print('YES'if A+B+C==17 and 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,343
s337756414
p04043
u276115223
1585579245
Python
Python (3.4.3)
py
Accepted
17
2940
197
# ABC 042: A – 和風いろはちゃんイージー / Iroha and Haiku (ABC Edition) nums = [int(s) for s in input().split(" ")] print("YES" if nums.count(5) == 2 and nums.count(7) == 1 else "NO")
p04043
<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,344
s598762510
p04043
u679335677
1585578231
Python
Python (3.4.3)
py
Accepted
17
2940
121
ABC=list(map(int,input().split())) ABC.sort() if ABC[0]==5 and ABC[1]==5 and ABC[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,345
s638238021
p04043
u857547702
1585544526
Python
Python (3.4.3)
py
Accepted
17
2940
119
a=list(map(int,input().split())) b=sorted(a) if b[0]==5 and b[1]==5 and b[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,346
s321966815
p04043
u460009487
1585541315
Python
Python (3.4.3)
py
Accepted
17
2940
122
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,347
s902913675
p04043
u264564865
1585533494
Python
Python (3.4.3)
py
Accepted
17
2940
83
n=list(map(int, input().split())) print('YES')if sorted(n)==[5,5,7]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,348
s343198985
p04043
u264564865
1585533420
Python
Python (3.4.3)
py
Accepted
17
2940
89
n = list(map(int, input().split())) print('YES') if sorted(n) == [5,5,7] 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,349
s806712193
p04043
u852790844
1585532399
Python
Python (3.4.3)
py
Accepted
17
2940
106
a = list(map(int,input().split())) b = sorted(a) if b == [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,350
s646035662
p04043
u391819434
1585528608
Python
Python (3.4.3)
py
Accepted
17
2940
66
S=input();print('NYOE S'[S.count('5')==2 and S.count('7')==1::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,351
s200400964
p04043
u639703036
1585528164
Python
Python (3.4.3)
py
Accepted
17
3060
233
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,352
s288428123
p04043
u672054421
1585520305
Python
Python (3.4.3)
py
Accepted
21
3316
206
A, B, C = map(int, input().split()) import collections tmp = [] tmp.append(A) tmp.append(B) tmp.append(C) c = collections.Counter(tmp) if c[5] == 2 and c[7] == 1: print("YES") else: print("NO")
p04043
<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,353
s818820053
p04043
u320763652
1585520179
Python
Python (3.4.3)
py
Accepted
17
2940
240
line = map(int, input().split()) five_count = 0 seven_count =0 for i in line: if i == 5: five_count += 1 elif i == 7: seven_count += 1 if five_count ==2 and seven_count == 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,354
s700233228
p04043
u290187182
1585516235
Python
Python (3.4.3)
py
Accepted
26
3828
422
import sys import copy import math import bisect import pprint import bisect from functools import reduce from copy import deepcopy from collections import deque if __name__ == '__main__': a = [int(i) for i in input().split()] a5 = 0 a7=0 for i in a: if i == 5: a5 +=1 if i ...
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,355
s005119806
p04043
u765721093
1585515489
Python
Python (3.4.3)
py
Accepted
17
2940
122
a=list(sorted(map(int,input().split()))[::-1]) if a[0]==7 and a[1]==5 and a[2]==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,356
s960875456
p04043
u854244562
1585512003
Python
Python (3.4.3)
py
Accepted
17
2940
169
input_line = input().split(' ') count_5 = input_line.count('5') count_7 = input_line.count('7') if count_5 == 2 and 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,357
s566731451
p04043
u197968862
1585511830
Python
Python (3.4.3)
py
Accepted
17
2940
125
a = list(map(int,input().split())) x = a.count(5) y = a.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,358
s623702079
p04043
u947883560
1585504618
Python
Python (3.4.3)
py
Accepted
17
3064
633
#!/usr/bin/env python3 import sys sys.setrecursionlimit(10**8) INF = float("inf") def yes(): print("YES") # type: str def no(): print("NO") # type: str def solve(A: int, B: int, C: int): if [5, 5, 7] == sorted([A, B, C]): yes() else: no() return def main(): def iterate...
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,359
s352266688
p04043
u346677493
1585498742
Python
Python (2.7.6)
py
Accepted
11
2568
81
a,b,c=map(int,raw_input().split()) if a+b+c==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,360
s194997986
p04043
u391675400
1585496460
Python
Python (3.4.3)
py
Accepted
17
2940
167
a,b,c = map(int,(input().split())) num = [] num +=[a,b,c] five = num.count(5) seven = num.count(7) 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,361
s406507983
p04043
u804733539
1585491889
Python
Python (3.4.3)
py
Accepted
17
2940
162
a,b,c = map(int, input().split()) if a+b+c == 17 and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7): ans = 'YES' else: ans = 'NO' print(ans)
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,362
s317312589
p04043
u735654057
1585486060
Python
Python (3.4.3)
py
Accepted
17
2940
185
# https://atcoder.jp/contests/abc042/tasks/abc042_a 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")
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,363
s297931453
p04043
u040823151
1585473583
Python
Python (3.4.3)
py
Accepted
18
2940
110
l = 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,364
s688581094
p04043
u901060001
1585456914
Python
Python (3.4.3)
py
Accepted
17
3060
203
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,365
s653138673
p04043
u309018392
1585444893
Python
Python (3.4.3)
py
Accepted
18
2940
115
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,366
s000228713
p04043
u395816772
1585435321
Python
Python (3.4.3)
py
Accepted
17
2940
119
A = list(input().split()) a = A.count('5') b = A.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,367
s683825737
p04043
u253681061
1585420407
Python
Python (3.4.3)
py
Accepted
17
2940
117
a = [int(x) for x in 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,368
s467261118
p04043
u787449825
1585350272
Python
Python (3.4.3)
py
Accepted
17
2940
111
array = list(map(int, input().split())) array.sort() if array == [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,369
s119007549
p04043
u073866020
1585347265
Python
Python (3.4.3)
py
Accepted
17
2940
84
a = 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,370
s278758494
p04043
u642418876
1585343433
Python
Python (3.4.3)
py
Accepted
17
2940
106
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,371
s134637329
p04043
u642418876
1585343080
Python
Python (3.4.3)
py
Accepted
17
2940
153
A,B,C=map(int,input().split()) if (A==B and A==5 and C==7) or (A==C and A==5 and B==7) or (B==C and B==5 and A==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,372
s810422762
p04043
u955251526
1585281255
Python
Python (3.4.3)
py
Accepted
17
2940
111
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,373
s471672084
p04043
u440129511
1585270783
Python
Python (3.4.3)
py
Accepted
17
2940
118
a = list(map(int,input().split())) a.sort() if a[0] == 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,374
s192562508
p04043
u374671031
1585231394
Python
Python (3.4.3)
py
Accepted
17
2940
77
X = input() print("YES" if X.count("5") == 2 and X.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,375
s434183205
p04043
u599114793
1585195086
Python
Python (3.4.3)
py
Accepted
16
2940
119
a = list(map(int,input().split())) a.sort() if a[0] == 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,376
s855274926
p04043
u760961723
1585193895
Python
Python (3.4.3)
py
Accepted
17
2940
119
a = map(int,input().split()) list_a = list(a) list_a.sort() if list_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,377
s195996226
p04043
u408692629
1585188820
Python
Python (3.4.3)
py
Accepted
16
2940
134
list_in = list(map(int, input().split())) if list_in.count(5) == 2 and list_in.count(7) == 1: print('YES') else: print('NO')
p04043
<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,378
s810025985
p04043
u528470578
1585185626
Python
Python (3.4.3)
py
Accepted
17
2940
116
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,379
s470027947
p04043
u050641473
1585170917
Python
Python (3.4.3)
py
Accepted
17
2940
136
a, b, c = map(int, input().split()) iroha = [a, b, c] if iroha.count(5) == 2 and iroha.count(7) == 1: print("YES") else: print("NO")
p04043
<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,380
s546180225
p04043
u103136263
1585164764
Python
Python (3.4.3)
py
Accepted
40
5548
3,309
# /usr/bin/python3 # -*- coding: utf-8 -*- from queue import Queue from queue import LifoQueue as Stack from math import sqrt, floor, ceil, log2 from fractions import gcd from itertools import permutations, combinations from operator import itemgetter from functools import cmp_to_key __MOD__=(10**9)+7 yn = 'YNEOS' j...
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,381
s494110332
p04043
u877415670
1585164342
Python
Python (3.4.3)
py
Accepted
17
2940
107
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,382
s345613278
p04043
u203339404
1585163823
Python
Python (3.4.3)
py
Accepted
17
2940
111
i = list(map(int, input().split())) if i.count(5) == 2 and i.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,383
s012316878
p04043
u260068288
1585112839
Python
Python (3.4.3)
py
Accepted
17
2940
119
abc =input() five = abc.count("5") seven = abc.count("7") 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,384
s716160777
p04043
u372550522
1585106761
Python
Python (3.4.3)
py
Accepted
17
2940
125
list = [int(e) for e in input().split()] if list.count(5) == 2 and list.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,385
s494716881
p04043
u425236751
1585102320
Python
Python (3.4.3)
py
Accepted
17
2940
118
abc =input() five = abc.count("5") seven = abc.count("7") 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,386
s659017962
p04043
u751764569
1584954670
Python
Python (3.4.3)
py
Accepted
17
2940
52
print('YNEOS'[''.join(sorted(input()))!=' 557'::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,387
s666886345
p04043
u751764569
1584953495
Python
Python (3.4.3)
py
Accepted
17
2940
66
a=input() print(['NO','YES'][a.count('5')==2 and a.count('7')==1])
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,388
s564506170
p04043
u555688810
1584936674
Python
Python (3.4.3)
py
Accepted
21
3316
146
from collections import Counter l = list(map(int,input().split())) c = Counter(l) if c[5] == 2 and c[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,389
s775538061
p04043
u751764569
1584936219
Python
Python (3.4.3)
py
Accepted
17
2940
96
a=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,390
s075843854
p04043
u305388378
1584934145
Python
Python (3.4.3)
py
Accepted
18
2940
187
input = list(map(int, input().split())) go = 0 siti = 0 for v in input: if v == 5: go += 1 elif v == 7: siti += 1 if go == 2 and siti == 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,391
s094548118
p04043
u071361440
1584924865
Python
Python (3.4.3)
py
Accepted
17
2940
115
seq = [int(s) for s in input().split()] if seq.count(5) == 2 and seq.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,392
s759324128
p04043
u396858476
1584922650
Python
Python (3.4.3)
py
Accepted
17
3060
327
a, b, c = map(int, input().split()) if a == b and a == 5: if c == 7: print("YES") else: print("NO") elif b == c and b == 5: if a == 7: print("YES") else: print("NO") elif a == c and c == 5: if b == 7: print("YES") else: print("NO") else: print...
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,393
s230622302
p04043
u597374218
1584894733
Python
Python (3.4.3)
py
Accepted
17
2940
91
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,394
s664837204
p04043
u089142196
1584892915
Python
Python (3.4.3)
py
Accepted
17
2940
124
A,B,C=map(int,input().split()) ans="NO" if A+B+C==17: if min(A,B,C)==5: if max(A,B,C)==7: ans="YES" print(ans)
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,395
s890795783
p04043
u686253980
1584889235
Python
Python (3.4.3)
py
Accepted
17
3060
205
s = [int(i) for i in input().split(' ')] n = [0] * 2 for i in s: if i == 5: n[0] += 1 elif i == 7: n[1] += 1 if n[0] == 2 and n[1] == 1: print('YES') else: print('NO')
p04043
<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,396
s563268114
p04043
u686253980
1584889179
Python
Python (3.4.3)
py
Accepted
16
3060
202
s = [int(i) for i in input().split(' ')] n = [0] * 5 for i in s: if i == 5: n[0] += 1 elif i == 7: n[1] += 1 if n[0] == 2 and n[1] == 1: print('YES') else: print('NO')
p04043
<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,397
s988295029
p04043
u132974957
1584853777
Python
Python (3.4.3)
py
Accepted
17
2940
105
a, b, c = map(int, input().split()) if sorted((a, b, c)) == [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,398
s290248242
p04043
u508842013
1584850156
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,399
s208673322
p04043
u277953073
1584831007
Python
Python (3.4.3)
py
Accepted
17
3060
306
inp = list(map(int, input().split())) flag_5 = 0 flag_7 = 0 if len(inp) == 3: for i in range(3): if inp[i] == 5: flag_5 += 1 elif inp[i] == 7: flag_7 += 1 else : break if flag_5 == 2 and flag_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,400
s097695240
p04043
u017415492
1584830370
Python
Python (3.4.3)
py
Accepted
18
2940
103
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,401
s452286100
p04043
u556069480
1584820547
Python
Python (3.4.3)
py
Accepted
19
3060
108
cand=[(5,5,7),(5,7,5),(7,5,5)] X=tuple(map(int,input().split())) print("YES") if X in cand 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,402
s106691163
p04043
u519835472
1584815894
Python
Python (3.4.3)
py
Accepted
17
3064
279
haiku = list(map(int, input().split())) f = 2 s = 1 flg = 1 for i in range(len(haiku)): if haiku[i] == 5: f -= 1 elif haiku[i] == 7: s -= 1 else: flg = 0 break if f == 0 and s == 0 and flg == 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,403
s867345708
p04043
u460009487
1584813670
Python
Python (3.4.3)
py
Accepted
17
2940
104
A = list(map(int, input().split())) L = sorted(A) 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,404
s693405543
p04043
u460009487
1584812421
Python
Python (3.4.3)
py
Accepted
17
2940
98
A=list(map(int,input().split())) ans=sorted(A) if ans==[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,405
s035018169
p04043
u957198490
1584810810
Python
Python (3.4.3)
py
Accepted
18
2940
111
L = list(map(int,input().split())) L.sort() ans = [5,5,7] if L == 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,406
s812507757
p04043
u292978925
1584806889
Python
Python (3.4.3)
py
Accepted
18
2940
232
""" kari1 = '7 7 5' in1 = kari1.split() """ in1 = input().split() sujiCNT = [0] * 10 for item in in1: sujiCNT[int(item)] = sujiCNT[int(item)] + 1 if sujiCNT[5] == 2 and sujiCNT[7] == 1: print('YES') else: print('NO')
p04043
<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,407
s193599171
p04043
u419963262
1584802755
Python
Python (3.4.3)
py
Accepted
17
2940
99
A=list(map(int,input().split())) ans=sorted(A) if ans==[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,408
s376339221
p04043
u580404776
1584800773
Python
Python (3.4.3)
py
Accepted
17
2940
90
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,409
s797256748
p04043
u292978925
1584767527
Python
Python (3.4.3)
py
Accepted
17
3060
383
s = input().split() fiveCNT = 0 sevenCNT = 0 if s[0] == '5': fiveCNT = fiveCNT + 1 elif s[0] == '7': sevenCNT = sevenCNT + 1 if s[1] == '5': fiveCNT = fiveCNT + 1 elif s[1] == '7': sevenCNT = sevenCNT + 1 if s[2] == '5': fiveCNT = fiveCNT + 1 elif s[2] == '7': sevenCNT = sevenCNT + 1 if fiveCNT ...
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,410
s756622347
p04043
u759518460
1584758327
Python
Python (3.4.3)
py
Accepted
16
2940
115
k = input().split() k.sort() if k[0] == '5' and k[1] == '5' and k[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,411
s988268363
p04043
u697696097
1584748915
Python
Python (3.4.3)
py
Accepted
17
2940
137
a,b,c=map(int,input().split()) arr=[0]*100 arr[a]+=1 arr[b]+=1 arr[c]+=1 if arr[5]==2 and arr[7]==1: print("YES") else: print("NO")
p04043
<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,412
s163356677
p04043
u951684192
1584737748
Python
Python (3.4.3)
py
Accepted
17
2940
99
line = input() if line.count("5")==2 and line.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,413
s449027272
p04043
u973053237
1584730818
Python
Python (3.4.3)
py
Accepted
17
2940
150
a,b,c=map(int,input().split()) if (a==5 and b==5 and c==7) or (a==5 and b==7 and c==5) or (a==7 and b==5 and c==5): print("YES") else: print("NO")
p04043
<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,414
s482052466
p04043
u789205676
1584725848
Python
Python (3.4.3)
py
Accepted
17
2940
225
stack = [i for i in input().split(" ")] cnt1 = 0 cnt2 = 0 for i in stack: if "5" == i: cnt1 = cnt1 + 1 if "7" == i: cnt2 = cnt2 + 1 if cnt1 == 2 and cnt2 == 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,415
s571007422
p04043
u695567036
1584720502
Python
Python (3.4.3)
py
Accepted
16
2940
93
l = list(map(int, input().split())) print(['NO', 'YES'][l.count(5) == 2 and l.count(7) == 1])
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,416