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
s505583983
p04043
u745385679
1524972348
Python
Python (3.4.3)
py
Accepted
20
3316
179
from collections import defaultdict dd = defaultdict(int) for i in input().split(): dd[i] += 1 if dd['5'] == 2 and dd['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,317
s211037799
p04043
u709052417
1524970854
Python
Python (3.4.3)
py
Accepted
21
3316
275
A, B, C= map(int, input().split()) if (A!=5 and A!=7) or (B!=5 and B!=7) or (C!=5 and C!=7): print("NO") elif A==5: if (B==5 and C==7) or (B==7 and C==5): print ("YES") else: print("NO") elif (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,318
s503711426
p04043
u183481524
1524600252
Python
Python (3.4.3)
py
Accepted
17
2940
118
li = list(map(int, input().split())) if li.count(5) == 2 and li.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,319
s599431192
p04043
u573970531
1524597516
Python
Python (3.4.3)
py
Accepted
17
2940
120
in1 = list(map( int , input().split() )) if in1.count(5) == 2 and in1.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,320
s978625392
p04043
u268793453
1524582762
Python
Python (3.4.3)
py
Accepted
17
2940
99
x = [int(i) for i in input().split()] 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,212,321
s295389702
p04043
u352499693
1524548210
Python
Python (3.4.3)
py
Accepted
17
3060
63
print('YES' if sorted(input()[::2]) == ['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,322
s301685127
p04043
u520158330
1524509614
Python
Python (3.4.3)
py
Accepted
17
2940
173
N = list(map(int,input().split())) GO = 0 SHICHI = 0 for i in N: if i == 5: GO += 1 elif i == 7: SHICHI += 1 if GO==2 and SHICHI==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,323
s448082756
p04043
u212253038
1524356401
Python
Python (3.4.3)
py
Accepted
18
2940
203
L = list(map(int, input().split())) five, seven = 0, 0 for x in L: if x == 5: five += 1 if x == 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,324
s757747767
p04043
u226108478
1523982299
Python
Python (3.4.3)
py
Accepted
17
2940
246
# -*- coding: utf-8 -*- # AtCoder Beginner Contest # Problem A if __name__ == '__main__': numbers = list(map(int, input().split())) if numbers.count(5) == 2 and numbers.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,325
s585331763
p04043
u040380068
1523911685
Python
Python (2.7.6)
py
Accepted
10
2568
208
inpt = map(int, raw_input().split()) five = 0 seven = 0 for i in range(0, 3): if inpt[i] == 5: five = five + 1 if inpt[i] == 7: seven = 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,326
s957249640
p04043
u826263061
1523823275
Python
Python (3.4.3)
py
Accepted
17
2940
103
a = list(map(int, input().split())) a.sort() if a == [5, 5, 7]: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,212,327
s018663458
p04043
u856232850
1523653467
Python
Python (3.4.3)
py
Accepted
17
2940
126
a = list(map(int,input().split())) b = a.count(5) c = a.count(7) if b == 2 and c == 1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,212,328
s516309807
p04043
u218843509
1523633856
Python
Python (3.4.3)
py
Accepted
17
2940
131
### -*- coding: utf-8 -*- INPUT = input() if sorted(map(int, INPUT.split())) == [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,329
s490510893
p04043
u281303342
1523583806
Python
Python (3.4.3)
py
Accepted
17
3064
81
A = sorted(list(map(int,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,330
s722038221
p04043
u525709800
1523396520
Python
Python (3.4.3)
py
Accepted
17
2940
181
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,331
s249447901
p04043
u766407523
1523384611
Python
Python (3.4.3)
py
Accepted
17
2940
113
a = list(map(int, input().split())) if sum(a) == 17 and 5 in a and 7 in a: 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,332
s700826528
p04043
u684084063
1523146376
Python
Python (3.4.3)
py
Accepted
17
2940
110
# -*- coding: utf-8 -*- a,b,c = map(int,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,212,333
s018742432
p04043
u259752752
1523121517
Python
Python (3.4.3)
py
Accepted
17
2940
273
import sys input_line = sys.stdin.readline() arr = input_line.rstrip().split(" ") count5 = 0 count7 = 0 for i in arr: if int(i) == 5: count5 += 1 if int(i) == 7: count7 += 1 if count5 == 2 and count7 == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,212,334
s639081110
p04043
u306142032
1522874022
Python
Python (3.4.3)
py
Accepted
21
3444
246
import collections a = list(map(int,input().split())) c = collections.Counter(a) if c.most_common()[0][0] == 5 and c.most_common()[0][1] == 2 and c.most_common()[1][0] == 7 and c.most_common()[1][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,212,335
s019234004
p04043
u351426847
1522789599
Python
Python (2.7.6)
py
Accepted
10
2568
231
if __name__ == '__main__': A, B, C = raw_input().split() c = 0 if A == '7': c += 1 if B == '7': c += 1 if C == '7': c += 1 if c == 1: print 'YES' else: print 'NO'
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,212,336
s757536268
p04043
u058580040
1522628103
Python
Python (3.4.3)
py
Accepted
17
3060
456
import sys import io def run(input: io.TextIOBase, output: io.TextIOBase): abc = input.readline().split() count_5 = 0 count_7 = 0 for x in abc: x = int(x) if x == 5: count_5 += 1 if x == 7: count_7 += 1 if count_5 == 2 and count_7 == 1: resu...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>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,337
s017729736
p04043
u461636820
1522294224
Python
Python (3.4.3)
py
Accepted
17
2940
112
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,212,338
s415073556
p04043
u027622859
1522120298
Python
Python (3.4.3)
py
Accepted
17
2940
142
s = list(map(int, input().split())) five = s.count(5) seven = s.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,339
s971056426
p04043
u985076807
1522092272
Python
Python (3.4.3)
py
Accepted
20
3060
261
# coding: utf-8 # def method def isOK(a): a = list(map(int, a.split())) comp = [5,5,7] for i,x in enumerate(sorted(a)): if x != comp[i]: return False return True a = input() if isOK(a): 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,340
s697239454
p04043
u729707098
1521949550
Python
Python (3.4.3)
py
Accepted
17
3060
110
a,b,c = (int(i) for i in input().split()) x = [a,b,c] x.sort() if x == [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,341
s986790396
p04043
u942871960
1521693847
Python
Python (3.4.3)
py
Accepted
16
2940
126
haiku = input().split() haiku = sorted(list(map(int, haiku))) if [5, 5, 7] == haiku: 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,342
s754513962
p04043
u163680061
1521596832
Python
Python (3.4.3)
py
Accepted
17
3064
709
import math import sys def getinputdata(): # 配列初期化 array_result = [] data = input() array_result.append(data.split(" ")) flg = 1 try: while flg: data = input() array_temp = [] if(data != ""): array_r...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>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,343
s063541876
p04043
u255894313
1521571190
Python
Python (3.4.3)
py
Accepted
17
2940
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,344
s821710321
p04043
u875478816
1521500307
Python
Python (3.4.3)
py
Accepted
18
3064
341
num=list(map(int,input().split())) A=num[0] B=num[1] C=num[2] if A==7: if (B==5)and(C==5): print("YES") else: print("NO") elif B==7: if (A==5)and(C==5): print("YES") else: print("NO") elif C==7: if (A==5)and(B==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,345
s163526997
p04043
u127856129
1521474101
Python
Python (3.4.3)
py
Accepted
19
3060
111
a,b,c=map(int,input().split()) s=[a,b,c] if s.count(5)==2 and 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,212,346
s704342147
p04043
u127856129
1521474045
Python
Python (3.4.3)
py
Accepted
17
2940
114
a,b,c=map(int,input().split()) s=[a,b,c] d=s.count(5) if d==2 and 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,212,347
s298110947
p04043
u976256337
1521346830
Python
Python (3.4.3)
py
Accepted
18
2940
101
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,212,348
s493754819
p04043
u773981351
1521203251
Python
Python (2.7.6)
py
Accepted
10
2692
180
from itertools import permutations if __name__ == '__main__': phrases = tuple(map(int, raw_input().split())) print 'YES' if phrases in permutations([5, 7, 5], 3) 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,349
s601302471
p04043
u653005308
1521161864
Python
Python (3.4.3)
py
Accepted
17
2940
117
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,212,350
s359245060
p04043
u562016607
1521147181
Python
Python (3.4.3)
py
Accepted
17
2940
114
S=[int(i) for i in input().split()] if max(S)==7 and min(S)==5 and sum(S)==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,351
s504180985
p04043
u479060428
1521063685
Python
Python (3.4.3)
py
Accepted
19
3060
171
A,B,C=map(int,input().split()) if A==B==5 and C==7: print("YES") elif B==C==5 and A==7: print("YES") elif C==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,212,352
s544184506
p04043
u478462004
1520989088
Python
Python (3.4.3)
py
Accepted
17
2940
112
a = list(map(int,input().split())) if 5 in a and 7 in a and sum(a) == 17: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,212,353
s419696597
p04043
u941884460
1520876345
Python
Python (3.4.3)
py
Accepted
17
2940
121
tmp = input().split() tmp.sort() if tmp[0] == '5' and tmp[1] == '5' and tmp[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,354
s324605006
p04043
u898651494
1520762562
Python
Python (3.4.3)
py
Accepted
17
2940
188
a,b,c =map(int,input().split()) if a == 5 and b==5 and c==7: print("YES") elif a == 5 and b==7 and c==5: print("YES") elif a == 7 and b==5 and c==5: print("YES") else : print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,212,355
s431258015
p04043
u632369368
1520749446
Python
Python (3.4.3)
py
Accepted
17
2940
128
V = tuple([int(n) for n in input().split()]) if V in [(5, 5, 7), (5, 7, 5), (7, 5, 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,356
s625023324
p04043
u672710370
1520490486
Python
Python (3.4.3)
py
Accepted
17
2940
563
import sys debug_mode = True if len(sys.argv) > 1 and sys.argv[1] == "-d" else False if debug_mode: import os inf = open(os.path.basename(__file__).replace(".py", ".in")) def input(): return inf.readline() else: inf = sys.stdin # ============================================================== ...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>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,357
s082644074
p04043
u053250918
1520386266
Python
Python (3.4.3)
py
Accepted
26
3444
137
from collections import Counter A = input().split() A = Counter(A) if A['5'] == 2 and A['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,358
s914071094
p04043
u391475811
1520305743
Python
Python (3.4.3)
py
Accepted
18
2940
114
A=[int(x)for x 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,359
s069386294
p04043
u926678805
1519925268
Python
Python (3.4.3)
py
Accepted
17
2940
69
# coding: utf-8 s=input() print('YES' if s in '5 7 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,360
s581119062
p04043
u858136677
1519589588
Python
Python (3.4.3)
py
Accepted
17
3060
199
a = list(map(int,input().split())) fcount = 0 scount = 0 for i in range(3): if a[i] == 5: fcount +=1 elif a[i] == 7: scount += 1 if fcount == 2 and scount == 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,361
s215654933
p04043
u621935300
1519362528
Python
Python (2.7.6)
py
Accepted
10
2568
77
a=map(int,raw_input().split()) a.sort() 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,362
s385153539
p04043
u597436499
1519352005
Python
Python (3.4.3)
py
Accepted
17
2940
221
arr = list(map(int, input().split())) count_5 = 0 count_7 = 0 for i in arr: if i == 5: count_5 += 1 if i == 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,363
s484804211
p04043
u601913978
1519245906
Python
Python (3.4.3)
py
Accepted
17
2940
245
lis = list(map(int, input().split())) filtered_list_5 = list(filter(lambda x: x == 5, lis)) filtered_list_7 = list(filter(lambda x: x == 7, lis)) if len(filtered_list_5) == 2 and len(filtered_list_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,364
s827593372
p04043
u319612498
1518932519
Python
Python (3.4.3)
py
Accepted
17
2940
146
a,b,c=map(int,input().split()) list1=[a,b,c] list2=sorted(list1) if list2[0]==list2[1]==5 and list2[2]==7: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>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,365
s848097162
p04043
u030726788
1518903786
Python
Python (3.4.3)
py
Accepted
18
3060
235
a,b,c=map(int,input().split()) seven=0 five=0 if(a==5): five+=1 elif(a==7): seven+=1 if(b==5): five+=1 elif(b==7): seven+=1 if(c==5): five+=1 elif(c==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,366
s510212663
p04043
u607885447
1518847446
Python
Python (3.4.3)
py
Accepted
18
2940
128
a = sorted(list(map(int, input().split()))) if sum(a) == 17 and a[0] == 5 and a[-1] == 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,367
s378526930
p04043
u019584841
1518814619
Python
Python (3.4.3)
py
Accepted
17
2940
86
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,368
s830885917
p04043
u875361824
1518429189
Python
Python (3.4.3)
py
Accepted
17
2940
183
def main(): A, B, C = map(int, input().split()) if sorted([A, B, C]) == [5, 5, 7]: print("YES") else: print("NO") if __name__ == '__main__': main()
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,212,369
s966161724
p04043
u209616713
1518285157
Python
Python (3.4.3)
py
Accepted
17
2940
124
w = input() l = list(w) l.sort() ans = str(l[2]) + str(l[3]) + str(l[4]) if ans == '557': 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,370
s457319695
p04043
u853586331
1518186392
Python
Python (3.4.3)
py
Accepted
18
2940
177
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,371
s505609984
p04043
u202877219
1517989900
Python
Python (3.4.3)
py
Accepted
17
2940
118
a = sorted(map(int, 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,372
s947256814
p04043
u268291479
1517893651
Python
Python (3.4.3)
py
Accepted
17
2940
224
arr = list(map(int,input().split())) count_5 = 0 count_7 = 0 for i in arr: if i == 5: count_5 += 1 elif i == 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,373
s963420052
p04043
u764600134
1517679105
Python
Python (3.4.3)
py
Accepted
21
3316
436
# -*- coding: utf-8 -*- """ https://beta.atcoder.jp/contests/abc042/tasks/abc042_a """ import sys from sys import stdin input = stdin.readline def solve(data): ans = 'NO' data.sort() if data[0] == 5 and data[1] == 5 and data[2] == 7: ans = 'YES' return ans def main(args): data = [int(x)...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>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,374
s581017265
p04043
u711985352
1517428773
Python
Python (3.4.3)
py
Accepted
18
3060
195
a = map(int, input().split()) go, nana = 0, 0 for i in a: if(i == 5): go += 1 elif(i == 7): nana += 1 if(go == 2 and nana == 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,375
s430116958
p04043
u978494963
1517270207
Python
Python (3.4.3)
py
Accepted
17
2940
137
hoge = tuple(map(lambda x : int(x), input().split(" "))) if hoge.count(5) == 2 and hoge.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,376
s146971745
p04043
u952708174
1517084065
Python
Python (3.4.3)
py
Accepted
18
3060
95
X = [int(i) for i in input().split()] if sorted(X)==[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,377
s445037256
p04043
u103539599
1517004122
Python
Python (3.4.3)
py
Accepted
17
2940
110
S=list(map(int, input().split())) if S.count(5)==2 and S.count(7)==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,212,378
s546089145
p04043
u254456372
1516484799
Python
Python (3.4.3)
py
Accepted
21
3316
194
#!/usr/bin/env python3 # -*- coding: utf-8 -*- def main(): V = sorted(map(int, input().split())) ok = V == [5,5,7] print("YES" if ok else "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,379
s185341224
p04043
u459737327
1516481943
Python
Python (3.4.3)
py
Accepted
17
2940
83
A = sorted(list(map(int, 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,380
s375975951
p04043
u432780056
1516324463
Python
Python (2.7.6)
py
Accepted
11
2692
94
a = map(int, raw_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,212,381
s165601302
p04043
u811528179
1515561163
Python
Python (3.4.3)
py
Accepted
17
2940
86
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,382
s188199307
p04043
u124843595
1515411625
Python
Python (3.4.3)
py
Accepted
18
2940
99
a,b,c=[int(x) for x in input().split()] print("YES") if sorted([a,b,c]) == [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,212,383
s886475176
p04043
u136090046
1515355857
Python
Python (3.4.3)
py
Accepted
18
2940
132
a,b,c = map(int, input().split()) sum = [a, b, c] if sum.count(5) == 2 and sum.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,384
s651242139
p04043
u665415433
1515121386
Python
Python (3.4.3)
py
Accepted
18
2940
114
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,212,385
s656816119
p04043
u586577600
1514859631
Python
Python (3.4.3)
py
Accepted
17
2940
109
print('YES' if (lambda x: x[0] == 5 and x[1] == 5 and x[2] ==7)(sorted(map(int, input().split()))) 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,386
s455557024
p04043
u057463552
1514346636
Python
Python (3.4.3)
py
Accepted
17
2940
108
A,B,C = map(int,input().split()) D=[A,B,C] D.remove(7) if D == [5,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,387
s073328434
p04043
u550574002
1514169167
Python
Python (3.4.3)
py
Accepted
17
2940
54
print(("NO","YES")["".join(sorted(input()))==" 557"])
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>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,388
s082231398
p04043
u854627522
1514094001
Python
Python (3.4.3)
py
Accepted
17
2940
171
import sys nums = [i for i in map(int, sys.stdin.readline().split())] nums.sort() if nums[0] == 5 and nums[1] == 5 and nums[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,389
s238659436
p04043
u558836062
1514006837
Python
Python (3.4.3)
py
Accepted
17
2940
115
lis = list(map(int,input().split())) if lis.count(7) == 1 and lis.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,390
s145555337
p04043
u825528847
1513886931
Python
Python (3.4.3)
py
Accepted
17
2940
121
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,212,391
s476035319
p04043
u204230270
1513881168
Python
Python (3.4.3)
py
Accepted
19
3060
109
n = input().split() map(int,n) 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,392
s110972428
p04043
u414558682
1513750588
Python
Python (3.4.3)
py
Accepted
17
2940
284
args = list(map(int , input().split())) count_5 = 0 count_7 = 0 for num in args: # print(num) if num == 5: count_5 += 1 if num == 7: count_7 += 1 # print(count_5) # print(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,212,393
s840108166
p04043
u504142483
1513201190
Python
Python (3.4.3)
py
Accepted
17
2940
180
a = list(map(int,input().split())) haiku_5 = 2 haiku_7 = 1 num_5 = a.count(5) num_7 = a.count(7) if(num_5 == haiku_5 and num_7 == haiku_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,394
s369308993
p04043
u355798276
1513142854
Python
Python (3.4.3)
py
Accepted
17
2940
115
x = list(map(int, input().split())) if x.count(5) == 2 and x.count(7) == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,212,395
s014598650
p04043
u257974487
1513052955
Python
Python (3.4.3)
py
Accepted
21
3316
113
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,212,396
s612203399
p04043
u136948974
1512935331
Python
PyPy2 (5.6.0)
py
Accepted
34
27756
114
arr=map(int,raw_input().strip().split(' ')) if arr.count(5)==2 and arr.count(7) == 1: print 'YES' else: print 'NO'
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,212,397
s278028120
p04043
u813450984
1511545199
Python
Python (3.4.3)
py
Accepted
17
2940
108
li = list(input().split()) if li.count("5") == 2 and li.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,398
s004363994
p04043
u498401785
1511477843
Python
Python (3.4.3)
py
Accepted
18
2940
177
a, b, c = list(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,399
s817358652
p04043
u667024514
1511105874
Python
Python (3.4.3)
py
Accepted
17
2940
128
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,212,400
s288773529
p04043
u075012704
1510977552
Python
Python (3.4.3)
py
Accepted
17
2940
131
ABC = list(map(int, input().split())) ABC.sort() if (ABC[0]==5) & (ABC[1]==5) & (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,401
s522032133
p04043
u451017206
1510284751
Python
Python (3.4.3)
py
Accepted
18
2940
119
a,b,c = sorted(input().split()) if 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,402
s244378124
p04043
u743272507
1510262469
Python
Python (3.4.3)
py
Accepted
17
2940
124
a = sorted(list(map(int,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,403
s242996869
p04043
u561422857
1509590516
Python
Python (3.4.3)
py
Accepted
17
2940
119
ls = list(map(int, input().split())) if ls.count(5) == 2 and ls.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,404
s484191148
p04043
u781025961
1509050425
Python
Python (3.4.3)
py
Accepted
18
2940
158
A,B,C = map(int,input().split()) lst1 = [A,B,C] lst2 = sorted(lst1) if lst2[0] == 5 and lst2[1] == 5 and lst2[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,405
s901637940
p04043
u252745826
1508452061
Python
Python (3.4.3)
py
Accepted
17
2940
168
a, b, c = list(map(int, input().split(" "))) if (a == b == 5 and c == 7) or (b == c == 5 and a == 7) or (c == 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,212,406
s573265675
p04043
u269390702
1508388925
Python
Python (3.4.3)
py
Accepted
18
3064
161
n = list(map(int,input().split())) if 5 in n: n.remove(5) if 5 in n and 7 in n : 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,407
s734214939
p04043
u425351967
1508337079
Python
Python (3.4.3)
py
Accepted
17
2940
87
X = sorted(input().split()) if X == ["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,408
s741628023
p04043
u190405389
1507861380
Python
Python (3.4.3)
py
Accepted
18
2940
103
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,409
s191947539
p04043
u055459962
1507508966
Python
Python (3.4.3)
py
Accepted
17
2940
293
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """042-a""" import sys def main(): """Main function.""" phrases = sys.stdin.readline()[:-1].split(" ") print('YES') if sorted(phrases) == sorted(['5', '7', '5']) else print('NO') if __name__ == '__main__': sys.exit(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,410
s088961081
p04043
u785205215
1507129762
Python
Python (3.4.3)
py
Accepted
17
2940
101
l = sorted(list(map(int,input().split()))) if 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,411
s814947292
p04043
u559651225
1506804659
Python
Python (2.7.6)
py
Accepted
10
2568
149
a, b, c = map(int, raw_input().split()) if max(a, b, c) == 7 and min(a, b, c) == 5 and sum([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,212,412
s162356522
p04043
u663710122
1506620921
Python
Python (3.4.3)
py
Accepted
19
2940
94
n = input().split() if n.count('5') == 2 and '7' in n: 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,413
s976220504
p04043
u772180901
1506358647
Python
Python (3.4.3)
py
Accepted
17
2940
119
arr = list(map(int,input().split())) if arr.count(7) == 1 and arr.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,414
s619379760
p04043
u909643606
1505945125
Python
Python (3.4.3)
py
Accepted
17
2940
92
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,415
s773543334
p04043
u598016178
1505681406
Python
Python (3.4.3)
py
Accepted
17
2940
54
print(["NO","YES"][" 557"=="".join(sorted(input()))])
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>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,416