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
s754161087
p04043
u525441048
1505600167
Python
Python (3.4.3)
py
Accepted
17
2940
214
array = [int(n) for n in input().split()] five = 0 seven = 0 for n in array: if n == 5: five += 1 elif n == 7: seven += 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,212,417
s991265013
p04043
u261886891
1505514199
Python
Python (3.4.3)
py
Accepted
21
3316
217
A, B, C = list(map(int, 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,212,418
s648148525
p04043
u444856278
1505107475
Python
Python (3.4.3)
py
Accepted
16
2940
99
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,212,419
s518288396
p04043
u367393577
1505093349
Python
Python (3.4.3)
py
Accepted
17
2940
133
# coding: utf-8 # Here your code ! 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,212,420
s155874408
p04043
u018679195
1505088576
Python
Python (3.4.3)
py
Accepted
17
2940
90
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,212,421
s151713217
p04043
u182096840
1504452649
Python
Python (2.7.6)
py
Accepted
10
2568
125
a = map(int, raw_input().strip().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,212,422
s380676287
p04043
u245448626
1503498935
Python
Python (3.4.3)
py
Accepted
17
2940
90
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,212,423
s550669985
p04043
u650245944
1502230865
Python
Python (3.4.3)
py
Accepted
17
2940
98
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,212,424
s944735922
p04043
u596276291
1501780012
Python
Python (3.4.3)
py
Accepted
23
3316
225
from collections import defaultdict def main(): x = list(map(int, input().split())) if x.count(5) == 2 and x.count(7) == 1: 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,212,425
s461589013
p04043
u355254193
1501742300
Python
Python (2.7.6)
py
Accepted
10
2568
215
input_line1 = map(int,raw_input().split(" ")) #input_line2 = map(int,raw_input().split(" ")) input_line1.sort() if input_line1[0] == 5 and input_line1[1] == 5 and input_line1[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,212,426
s759133600
p04043
u482969053
1501729361
Python
Python (3.4.3)
py
Accepted
17
2940
204
abc = list(map(int, input().split())) cnt5 = 0 cnt7 = 0 for i in abc: if i == 5: cnt5 += 1 elif i == 7: cnt7 += 1 if cnt5 == 2 and cnt7 == 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,212,427
s689728713
p04043
u364386647
1501352362
Python
Python (3.4.3)
py
Accepted
17
2940
133
L = list(map(int, input().split())) L.sort() if (L[0] == 5) and (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,212,428
s238453917
p04043
u839537730
1501067073
Python
Python (3.4.3)
py
Accepted
17
2940
118
n = list(map(int, 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,212,429
s374951812
p04043
u255555420
1500577900
Python
Python (3.4.3)
py
Accepted
17
2940
201
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,212,430
s919628500
p04043
u028294979
1500483465
Python
Python (3.4.3)
py
Accepted
17
2940
366
#print("input the number of syllables: ") A, B, C = map(int, input().split()) if A and B and C >= 1: if A and B and C <= 10: 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') ...
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,212,431
s183759021
p04043
u276192130
1500412896
Python
Python (3.4.3)
py
Accepted
18
2940
114
n = list(map(int, 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,212,432
s124786648
p04043
u108617242
1500403997
Python
Python (3.4.3)
py
Accepted
21
3316
135
from collections import Counter ABC = list(map(int,input().split())) c = Counter(ABC) print("YES"if c[5] == 2 and c[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,212,433
s672445890
p04043
u218984487
1500322574
Python
Python (3.4.3)
py
Accepted
17
2940
126
L = list(map(int, input().split())) L.sort() if L[0] == 5 and 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,212,434
s967948576
p04043
u996252264
1500180590
Python
Python (3.4.3)
py
Accepted
17
3060
234
def ri(): return int(input()) def rli(): return list(map(int, input().split())) def rls(): return list(input()) def pli(a): return "".join(list(map(str, a))) a = rli() 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,212,435
s632538767
p04043
u914001098
1499804906
Python
Python (3.4.3)
py
Accepted
17
2940
222
haiku = input() x = haiku.split() num_5 = 0 num_7 = 0 for v in x: v = int(v) if v == 5: num_5 += 1 elif v == 7: num_7 += 1 if num_5 == 2 and num_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,212,436
s938933909
p04043
u419832736
1499719261
Python
Python (3.4.3)
py
Accepted
17
2940
119
list = list(map(int,input().split())) if (5 and 7 in list) and (sum(list)==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,212,437
s907088673
p04043
u214380782
1499307326
Python
Python (3.4.3)
py
Accepted
17
3064
176
ABCstr = input().split() ABC = [] gogo = [5, 5] for number in ABCstr: if number!='7': ABC.append(int(number)) if ABC == gogo: 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,212,438
s980179185
p04043
u529158664
1498714347
Python
Python (3.4.3)
py
Accepted
18
2940
220
#! python3 fives = 0 sevens = 0 for x in input().strip().split(): x = int(x) if x == 5: fives += 1 if x == 7: sevens += 1 if fives == 2 and sevens == 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,212,439
s379662514
p04043
u594329566
1498536845
Python
Python (3.4.3)
py
Accepted
17
3064
404
def ini(): return int(input()) def inli(): return list(map(int, input().split())) def inf(): return float(input()) def inlf(): return list(map(float, input().split())) def inl(): return list(input()) def pli(): return "".join(list(map(str, ans))) x=inli() if (x[0]==7 and x[1]==5 and x[2]==5)or (x[0]==5 and x[1]==7 and...
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,212,440
s029868307
p04043
u993069079
1498291729
Python
Python (2.7.6)
py
Accepted
10
2568
78
a = map(int, raw_input().split()) a.sort() print ["NO", "YES"][a == [5, 5, 7]]
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,212,441
s568571036
p04043
u120026978
1498114324
Python
Python (3.4.3)
py
Accepted
17
3060
215
a = list(map(int, input().split())) five = 0 seven = 0 for i in range(3): if a[i] == 5: five += 1 if a[i] == 7: seven += 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,212,442
s697911789
p04043
u502149531
1497855539
Python
Python (3.4.3)
py
Accepted
18
2940
129
a = [int(i) for i in 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,212,443
s859389994
p04043
u237267413
1497841093
Python
Python (3.4.3)
py
Accepted
17
2940
145
A, B, C = [int(i) for i in input().split()] Iroha = [5, 5, 7] ABC = sorted([A, B, C]) if ABC == 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,212,444
s985163549
p04043
u761320129
1497365948
Python
Python (2.7.6)
py
Accepted
10
2568
115
arr = map(int, raw_input().split()) arr.sort() print 'YES' if arr[0] == 5 and arr[1] == 5 and arr[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,212,445
s567546845
p04043
u340294296
1496699801
Python
Python (3.4.3)
py
Accepted
21
3444
292
A, B, C = map(int,input().split()) if A == B: if C == 7: print("YES") else: print("NO") elif B == C: if A == 7: print("YES") else: print("NO") elif C == A: if B == 7: 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,212,446
s907180384
p04043
u616040357
1496293244
Python
Python (3.4.3)
py
Accepted
17
2940
321
def solve(): A, B, C = map(str, input().split()) if A =="5" and B =="7" and C =="5": ans = "YES" elif A =="5" and B =="5" and C =="7": ans = "YES" elif A == "7" and B =="5" and C =="5": ans = "YES" else: ans = "NO" print(ans) if __name__ == '__main__': solve(...
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,212,447
s248326724
p04043
u722670579
1496093064
Python
Python (3.4.3)
py
Accepted
17
2940
161
a,b,c=map(int,input().split()) sum=a+b+c g=[5,7] if a and b and c in g: if sum==17: 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,212,448
s313475246
p04043
u879309973
1495795525
Python
Python (2.7.6)
py
Accepted
10
2568
81
v = sorted(map(int, raw_input().split())) print "YES" if (v == [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,212,449
s258846314
p04043
u207056619
1495677887
Python
Python (3.4.3)
py
Accepted
17
2940
61
print(['NO','YES'][sorted(input().split())=='5 5 7'.split()])
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,212,450
s006999757
p04043
u667084803
1495142202
Python
Python (3.4.3)
py
Accepted
17
2940
92
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,212,451
s613256698
p04043
u125205981
1494558085
Python
Python (3.4.3)
py
Accepted
17
3064
163
def main(): ABC = tuple(map(int, input().split())) if ABC.count(5) == 2 and ABC.count(7) == 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,212,452
s434260941
p04043
u058240079
1494343919
Python
Python (2.7.6)
py
Accepted
10
2568
122
l = map(int, raw_input().split()) l.sort() if l[0] == 5 and 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,212,453
s157144457
p04043
u646336933
1493769128
Python
Python (3.4.3)
py
Accepted
17
2940
99
a = input().split() a.sort() b = ['5', '5', '7'] 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,212,454
s509943502
p04043
u087279476
1491189657
Python
Python (3.4.3)
py
Accepted
17
2940
161
a, b, c = map(int, input().split()) lst = [a, b, c] lst.sort() if (lst[0] == 5) and (lst[0] == lst[1]) and (lst[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,212,455
s523164267
p04043
u040380068
1490750367
Python
Python (2.7.6)
py
Accepted
10
2568
383
def calc(lst): if lst[0] == 7: if lst[1] == 5 and lst[2] == 5: return 'YES' else: return 'NO' elif lst[0] == 5: if lst[1] == 7: if lst[2] == 5: return 'YES' else: return 'NO' elif lst[1] == 5: if lst[2] == 7: return 'YES' else: return 'NO' else: return 'NO' else: retu...
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,212,456
s815444662
p04043
u319818166
1490213787
Python
Python (2.7.6)
py
Accepted
11
2568
239
input = map(int, raw_input().split()) ans = [5, 7, 5] for data in input: if int(data) < 1 or int(data) > 10: print 'error' exit() for data in input: if data in ans: ans.remove(data) if len(ans) == 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,212,457
s549117150
p04043
u559722042
1490063989
Python
Python (3.4.3)
py
Accepted
18
2940
87
if [5,5,7] == sorted(map(int,input().split())): 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,212,458
s148374166
p04043
u976966750
1490044994
Python
PyPy2 (5.6.0)
py
Accepted
34
27372
106
l=map(int,raw_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,212,459
s602824413
p04043
u819300485
1489850927
Python
Python (3.4.3)
py
Accepted
17
2940
107
a, b, c = map(int, input().split()) if a + b + c == 17: 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,212,460
s565394202
p04043
u332385682
1489698493
Python
Python (3.4.3)
py
Accepted
17
2940
105
a, b, c = map(int, input().split()) if a + b + c == 17: 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,212,461
s955301968
p04043
u481333386
1489314378
Python
Python (3.4.3)
py
Accepted
17
2940
228
ss = [int(e) for e in input().split()] def main(ss): five_count = ss.count(5) seven_count = ss.count(7) if five_count == 2 and seven_count == 1: return 'YES' else: return 'NO' print(main(ss))
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,212,462
s394143712
p04043
u332385682
1488580271
Python
Python (3.4.3)
py
Accepted
17
3060
380
import sys def debug(x, table): for name, val in table.items(): if x is val: print('DEBUG:{} -> {}'.format(name, val), file=sys.stderr) return None def solve(): a = [int(i) for i in input().split()] a.sort() if a == [5,5,7]: ans = 'YES' else: 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,212,463
s194828187
p04043
u622011073
1487296798
Python
Python (3.4.3)
py
Accepted
17
2940
85
a=list(map(int,input().split())) 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,212,464
s122478364
p04043
u045939752
1486953165
Python
Python (3.4.3)
py
Accepted
22
3064
65
print("YES" if "".join(sorted(input().split()))=='557' 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,212,465
s985041770
p04043
u846552659
1486691605
Python
Python (3.4.3)
py
Accepted
23
3064
168
# -*- coding:utf-8 -*- ABC = list(map(int,input().split())) 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,212,466
s077168675
p04043
u012693733
1484810371
Python
Python (2.7.6)
py
Accepted
16
2568
233
a,b,c=map(int,raw_input().split()) x = [] x.append(a) x.append(b) x.append(c) f = True x = sorted(x) if x[0] != 5: f = False elif x[1] != 5: f = False elif x[2] != 7: f = False if f: 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,212,467
s826363745
p04043
u788681441
1484254332
Python
Python (3.4.3)
py
Accepted
23
3064
95
f = map(int, input().split()) f = sorted(f) if f==[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,212,468
s574397634
p04043
u122916923
1483911789
Python
Python (3.4.3)
py
Accepted
23
3064
78
res = 'YES' if '557' == ''.join(sorted(input().split())) else 'NO' print(res)
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,212,469
s053003786
p04043
u815524843
1483557453
Python
Python (2.7.6)
py
Accepted
17
2568
115
l = map(int, raw_input().split()) l.sort() if l[0] == 5 and 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,212,470
s371896817
p04043
u943624079
1483495939
Python
Python (3.4.3)
py
Accepted
23
3064
105
a=sorted(input().split(" ")) 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,212,471
s092185861
p04043
u386131832
1483331203
Python
Python (3.4.3)
py
Accepted
23
3064
154
five=0 seven=0 a=[int(i) for i in input().split()] for i in a: if i==5: five+=1 elif i==7: seven+=1 print("YES" if five==2 and seven==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,212,472
s894007789
p04043
u423925725
1483193142
Python
Python (3.4.3)
py
Accepted
23
3064
192
# coding: utf-8; def main(): i = input().split() if i.count('5') == 2 and i.count('7') == 1: 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,212,473
s137316102
p04043
u317493066
1483046545
Python
Python (3.4.3)
py
Accepted
23
3064
391
# -*- coding:utf-8 -*- def check(data): five_count = 0 seven_count = 0 for i in data: if i == 5: five_count += 1 elif i == 7: seven_count += 1 if five_count == 2 and seven_count == 1: return "YES" else: return "NO" if __name__ == "__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,212,474
s797481812
p04043
u580920947
1482898925
Python
Python (3.4.3)
py
Accepted
23
3064
143
# -*- coding: utf-8 -*- # problem A ls = list(map(int, input().split())) ls.sort() if ls == [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,212,475
s484427285
p04043
u637175065
1482706432
Python
Python (3.4.3)
py
Accepted
53
5640
276
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time sys.setrecursionlimit(10**7) inf = 10**20 mod = 10**9 + 7 def main(): a = list(map(int,input().split())) if sum(a) == 17: return 'YES' return 'NO' print(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,212,476
s516843459
p04043
u942697937
1482041789
Python
Python (2.7.6)
py
Accepted
20
2568
100
A, B, C = map(int, raw_input().split()) if A+B+C == 5 + 7 + 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,212,477
s676762723
p04043
u123756661
1481508529
Python
Python (2.7.6)
py
Accepted
16
2568
90
l=map(int,raw_input().split()) l.sort() print 'YES' if l[0]==l[1]==5 and l[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,212,478
s524856998
p04043
u107077660
1481067753
Python
Python (3.4.3)
py
Accepted
22
3064
97
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,212,479
s416447439
p04043
u333917945
1480912237
Python
Python (3.4.3)
py
Accepted
23
3064
128
a = [int(i) for i in 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,212,480
s674215393
p04043
u596276291
1480652874
Python
Python (3.4.3)
py
Accepted
23
3064
221
def main(): a, b, c = map(int, input().split()) l = list(sorted([a, b, c])) if l[0] == 5 and l[1] == 5 and l[2] == 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,212,481
s580447650
p04043
u402953845
1480607995
Python
Python (2.7.6)
py
Accepted
16
2568
152
import sys ABC = map(int,sys.stdin.readline().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,212,482
s436991732
p04043
u582243208
1480110836
Python
Python (3.4.3)
py
Accepted
23
3064
118
a=sorted([int(i) for i in input().split()]) 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,212,483
s673054158
p04043
u010110540
1479322875
Python
Python (3.4.3)
py
Accepted
27
3316
141
from collections import deque L = deque(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,212,484
s061777108
p04043
u493916575
1479097198
Python
Python (3.4.3)
py
Accepted
23
3064
185
A, B, C = map(int, input().split()) if A == 7 or B == 7 or C == 7 : if A == 5 or B == 5 or C == 5: if A+B+C == 17: 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,212,485
s952448334
p04043
u831695469
1479010887
Python
Python (3.4.3)
py
Accepted
24
3064
127
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,212,486
s328028000
p04043
u043805613
1478918866
Python
Python (2.7.6)
py
Accepted
17
2568
112
a=[] a=map(int, raw_input().split()) if(a.count(7)==1 and a.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,212,487
s724639378
p04043
u999536956
1478886740
Python
Python (2.7.6)
py
Accepted
16
2696
93
z = map(int,raw_input().split(' ')) if z.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,212,488
s442227497
p04043
u582243208
1478645563
Python
Python (3.4.3)
py
Accepted
23
3064
80
a=sorted([int(i) for i in 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,212,489
s862437001
p04043
u025504404
1478511568
Python
Python (3.4.3)
py
Accepted
23
3064
110
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,212,490
s960610753
p04043
u448407332
1478313178
Python
Python (2.7.6)
py
Accepted
16
2568
99
l = map(int, raw_input().split()) if sorted(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,212,491
s408896000
p04043
u025504404
1478206427
Python
Python (3.4.3)
py
Accepted
23
3064
115
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,212,492
s735149609
p04043
u778700306
1478181882
Python
Python (2.7.6)
py
Accepted
17
2568
134
A, B, C = map(int, raw_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,212,493
s155510176
p04043
u354630369
1477846168
Python
Python (2.7.6)
py
Accepted
17
2568
134
A, B, C = map(int, raw_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,212,494
s897688959
p04043
u117095520
1477682813
Python
Python (2.7.6)
py
Accepted
16
2568
228
A, B, C = map(int, raw_input().split()) count_5 = 0 count_7 = 0 for n in [A, B, C]: if n == 5: count_5 += 1 elif n == 7: count_7 += 1 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,212,495
s891272572
p04043
u386349298
1477663188
Python
Python (3.4.3)
py
Accepted
23
3064
113
data = (input().split()) if data.count('5') == 2 and data.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,212,496
s005418380
p04043
u425448230
1477630717
Python
Python (3.4.3)
py
Accepted
22
3064
123
#A A = sorted([int(i) for i in 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,212,497
s250378403
p04043
u471797506
1476588892
Python
Python (2.7.6)
py
Accepted
29
3984
220
# -*- coding: utf-8 -*- import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll A, B, C = sorted(map(int, raw_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,212,498
s615844506
p04043
u065683101
1475459166
Python
Python (3.4.3)
py
Accepted
23
3064
202
def read(): return int(input()) def reads(sep=None): return list(map(int, input().split(sep))) def main(): abc = reads() print('YES' if list(sorted(abc)) == [5,5,7] else '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,212,499
s273106503
p04043
u820351940
1475030743
Python
Python (3.4.3)
py
Accepted
22
3064
78
a = input() 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,212,500
s244448807
p04043
u608854150
1473970413
Python
Python (3.4.3)
py
Accepted
37
3064
149
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,212,501
s705905395
p04043
u555199741
1473732388
Python
Python (2.7.6)
py
Accepted
28
2572
43
print["NO","YES"][raw_input()in"5 5 7 5 5"]
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,212,502
s706051852
p04043
u555199741
1473732188
Python
Python (2.7.6)
py
Accepted
27
2568
122
cnt = [0] * 11 for x in map(int, raw_input().split()): cnt[x] += 1 print "YES" if cnt[5] == 2 and cnt[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,212,503
s157351309
p04043
u360101420
1473642522
Python
PyPy2 (5.6.0)
py
Accepted
61
8816
105
l = raw_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,212,504
s109997610
p04043
u108617242
1473431706
Python
Python (3.4.3)
py
Accepted
38
3064
221
S = input().split() tf7 = False tf52 = False count5 = 0 for x in S: if x == "5": count5 += 1 if count5 == 2: tf52 = True if x == "7": tf7 = True if tf7==True and tf52==True: 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,212,505
s981689848
p04043
u284188208
1472843189
Python
Python (2.7.6)
py
Accepted
25
2568
155
a = map(int, raw_input().split()) d = 2 e = 1 for i in a: if i == 5: d -= 1 elif i == 7: e -= 1 if d == 0 and e == 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,212,506
s315157125
p04043
u411544692
1472837556
Python
Python (2.7.6)
py
Accepted
25
2568
101
Ns = map(int, raw_input().split()) if sorted(Ns) == [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,212,507
s948437038
p04043
u612721349
1472788257
Python
Python (3.4.3)
py
Accepted
49
3700
188
from collections import Counter def solve(): c = Counter([int(c) for c in input().split()]) print("YES" if c[5] == 2 and c[7] == 1 else "NO") if __name__=="__main__": solve()
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,212,508
s566566738
p04043
u612721349
1472788107
Python
Python (3.4.3)
py
Accepted
37
3064
160
def solve(): li = [int(i) for i in input().split()] print("YES" if sum(li) == 17 and len(set(li)) == 2 else "NO") if __name__=="__main__": solve()
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,212,509
s035990501
p04043
u030110634
1472785271
Python
Python (3.4.3)
py
Accepted
41
3064
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,212,510
s636444391
p04043
u673497482
1472517889
Python
Python (2.7.6)
py
Accepted
27
2568
163
a,b, c = map(int, raw_input().split()) if a+b+c==17: if a==b==5 or b==c==5 or c==a==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,212,511
s132946164
p04043
u552668967
1472320897
Python
Python (2.7.6)
py
Accepted
27
2568
114
from sys import stdin a = map(int,stdin.readline().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,212,512
s644428215
p04043
u163073599
1472069747
Python
Python (3.4.3)
py
Accepted
38
3064
96
a = sorted([int (s) for s in input().strip().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,212,513
s786188880
p04043
u438131499
1471979688
Python
Python (2.7.6)
py
Accepted
30
2820
147
a=map(int,raw_input().split()) y=0 if 5 in a: a.remove(5) if 5 in a and 7 in a: y=1 if 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,212,514
s956769692
p04043
u824147251
1471954264
Python
Python (3.4.3)
py
Accepted
39
3064
81
m = list(map(int,input().split())) print('YES' if [5,5,7] == sorted(m) 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,212,515
s880259036
p04043
u343675824
1471380590
Python
Python (3.4.3)
py
Accepted
39
3064
201
A = list(map(int,input().split())) five = 0 seven = 0 for i in A: if i == 5: five += 1 if i == 7: seven += 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,212,516