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
s333799896
p04043
u611835487
1600706437
Python
Python (3.8.2)
py
Accepted
28
9140
110
A, B, C = map(int, input().split()) if sorted([A, B, C]) == [5, 5, 7]: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,417
s090263467
p04043
u015084832
1600657059
Python
Python (3.8.2)
py
Accepted
29
9016
266
def main(): a, b, c = map(int, input().split()) list = [] list.append(a) list.append(b) list.append(c) if list.count(5) == 2 and list.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,209,418
s402773040
p04043
u097700948
1600638631
Python
Python (3.8.2)
py
Accepted
24
9048
216
A, B, C = map(int, input().split()) num5 = 0 num7 = 0 ans = 'NO' for num in [A, B, C]: if num == 5: num5+=1 elif num == 7: num7+=1 else: break if num5 ==2 and num7 == 1: ans = 'YES' print(ans)
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,419
s555222854
p04043
u224993839
1600626027
Python
PyPy3 (7.3.0)
py
Accepted
64
61976
126
a,b,c=map(int,input().split()) l=sorted([a,b,c]) if l[0]==l[1] and l[-1]==7 and l[0]==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,209,420
s693412349
p04043
u348216768
1600600327
Python
Python (3.8.2)
py
Accepted
25
9020
85
num=list(map(int,input().split())) num.sort() print('YES' if num==[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,209,421
s528140424
p04043
u340040203
1600574099
Python
Python (3.8.2)
py
Accepted
26
9032
247
import sys input = lambda: sys.stdin.readline().rstrip() 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,209,422
s147311380
p04043
u656568465
1600573375
Python
Python (3.8.2)
py
Accepted
24
9096
87
a,b,c=map(int,input().split()) if a*b*c==5*5*7: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,423
s485378717
p04043
u328510800
1600543691
Python
Python (3.8.2)
py
Accepted
32
8836
77
S = input() print('YES' if S.count("5") == 2 and S.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,209,424
s395430514
p04043
u696684809
1600543651
Python
Python (3.8.2)
py
Accepted
26
8964
139
a,b,c = map(int,input().split()) if(a+b+c==17 and (a==5 or a==7) and (b==5 or b==7) and (c==5 or c==7)): print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,425
s637172239
p04043
u341267151
1600542163
Python
Python (3.8.2)
py
Accepted
22
9004
95
p=list(map(int,input().split())) p.sort() if p==[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,209,426
s390501843
p04043
u367397360
1600487841
Python
Python (3.8.2)
py
Accepted
26
9164
364
# 整数の入力 a, b, c = map(int, input().split()) # 合計17でないときNOを出力 if not (a+b+c == 17): print("NO") exit() # 7を含まないときNOを出力 if not 7 in (a, b, c): print("NO") exit() # 5を含まないときNOを出力、それ以外はYESを出力 if not 5 in (a, b, c): print("NO") exit() else: 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,209,427
s454268061
p04043
u698868214
1600486011
Python
Python (3.8.2)
py
Accepted
29
9068
103
abc = list(map(int,input().split())) print("YES" if abc.count(5) == 2 and abc.count(7) == 1 else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,428
s407162856
p04043
u589969467
1600473497
Python
Python (3.8.2)
py
Accepted
24
9076
118
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,209,429
s566231698
p04043
u815269021
1600404089
Python
PyPy3 (7.3.0)
py
Accepted
72
61608
148
a,b,c=map(int,input().split()) if a==5 and b==7 and c==5 or a==7 and b==5 and c==5 or 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,209,430
s842972051
p04043
u843060713
1600400634
Python
Python (3.8.2)
py
Accepted
20
8972
216
x = input().split() fn = 0 sn = 0 for i in range(len(x)): if int(x[i]) == 5: fn += 1 elif int(x[i]) == 7: sn += 1 if fn == 2: if sn == 1: print("YES") else: print("NO") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,431
s385374199
p04043
u035885928
1600387236
Python
Python (3.8.2)
py
Accepted
28
9156
118
l = input().split() l = list(map(int,l)) l.sort() if l[0]==l[1]==5 and l[2]==7: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,432
s764808778
p04043
u402428218
1600316844
Python
Python (3.8.2)
py
Accepted
24
9012
207
L=[int(i) for i in input().split()] count5=0 count7=0 for i in range(3): if L[i]==5: count5+=1 if L[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,209,433
s020680160
p04043
u911449886
1600311928
Python
PyPy3 (7.3.0)
py
Accepted
63
61776
97
s = list(map(int,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,209,434
s916149997
p04043
u612975321
1600303825
Python
Python (3.8.2)
py
Accepted
23
9084
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,209,435
s797157284
p04043
u628070051
1600301147
Python
Python (3.8.2)
py
Accepted
24
9100
168
a = map(int, input().split()) def answer(a: list) -> str: a = sorted(a) if a == [5, 5, 7]: return 'YES' else: return 'NO' print(answer(a))
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,436
s920516187
p04043
u049364987
1600247834
Python
Python (3.8.2)
py
Accepted
26
9080
289
from sys import stdin, stdout from time import perf_counter import sys sys.setrecursionlimit(10**9) mod = 10**9+7 # import sys # sys.stdout = open("e:/cp/output.txt","w") # sys.stdin = open("e:/cp/input.txt","r") l=sorted(map(int,input().split())) print("YES" if l == [5,5,7] else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,437
s805715672
p04043
u088553842
1600227344
Python
Python (3.8.2)
py
Accepted
29
8872
58
print('YNEOS'[''.join(sorted(input().split()))!='557'::2])
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,438
s100237347
p04043
u088553842
1600226989
Python
Python (3.8.2)
py
Accepted
23
9040
60
s=input();z=s.count;print('YNEOS'[z('5')!=2or z('7')!=1::2])
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,439
s154260247
p04043
u088553842
1600226864
Python
Python (3.8.2)
py
Accepted
30
8988
62
s=input();print('YNEOS'[s.count('5')!=2or s.count('7')!=1::2])
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,440
s239750578
p04043
u737397387
1600220130
Python
Python (3.8.2)
py
Accepted
22
9056
136
a, b, c = map(int, input().split()) iroha = [a, b, c] if iroha.count(5) == 2 and iroha.count(7) == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,441
s654992060
p04043
u530332855
1600210101
Python
Python (3.8.2)
py
Accepted
25
9152
178
# -*- coding: utf-8 -*- if __name__ == "__main__": str_list = list(map(int, input().split())) if sum(str_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,209,442
s435485778
p04043
u530332855
1600210000
Python
Python (3.8.2)
py
Accepted
40
9120
345
# -*- coding: utf-8 -*- if __name__ == "__main__": # str_list = [map(int, input().split())] # if str_list.count(5) == 2 and str_list.count(7) == 1: # print('YES') # else: # print('NO') str_list = list(map(int, input().split())) if sum(str_list) == 17: print('YES') else: ...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,443
s219089628
p04043
u044378346
1600139622
Python
Python (3.8.2)
py
Accepted
21
9012
155
a,b,c = map(int, input().split()) if(a==5 and b==5): print("YES") elif(b==5 and c==5): print("YES") elif(a==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,209,444
s586061552
p04043
u958210291
1600132456
Python
Python (3.8.2)
py
Accepted
28
8892
111
a,b,c = map(int,input().split()) abclist = [a,b,c] if abclist.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,209,445
s235974659
p04043
u087295942
1600130952
Python
Python (3.8.2)
py
Accepted
26
9120
505
# coding:UTF-8 import sys def resultSur97(x): return x % (10 ** 9 + 7) if __name__ == '__main__': # ------ 入力 ------# # 1行入力 aList = list(map(int, input().split())) # スペース区切り連続数字 x = 5 # ------ 処理 ------# c5 = 0 c7 = 0 for a in aList: if a == 5: c5 += 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,209,446
s988770041
p04043
u875606071
1600120443
Python
Python (3.8.2)
py
Accepted
21
8936
197
a,b,c=map(int,input().split()) b5=0 b7=0 if a==5: b5+=1 if a==7: b7+=1 if b==5: b5+=1 if b==7: b7+=1 if c==5: b5+=1 if c==7: b7+=1 if b5==2 and b7==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,209,447
s620787337
p04043
u579746769
1600094858
Python
Python (3.8.2)
py
Accepted
31
9164
88
li=list(map(int,input().split())) if li.count(5)>=2: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,448
s281012353
p04043
u381585104
1600064851
Python
Python (3.8.2)
py
Accepted
28
8900
172
x = list(map(int, input().split())) x.sort() f = True for i, e in enumerate(x): tmp = 5 if i == 2: tmp = 7 f &= (tmp == e) print("YES" if f 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,209,449
s936624436
p04043
u794521826
1600059603
Python
Python (3.8.2)
py
Accepted
29
9060
258
li = list(map(int, input().split())) count5 = count7 = 0 for l in li: if l == 5: count5 += 1 elif l == 7: count7 += 1 else: print("NO") exit() 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,209,450
s608876130
p04043
u757424147
1600008788
Python
Python (3.8.2)
py
Accepted
24
9116
186
array = list(map(int,input().split())) cnt5 = 0 cnt7 = 0 for i in array: if i == 5: cnt5 += 1 if 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,209,451
s025370341
p04043
u847033024
1599987332
Python
Python (3.8.2)
py
Accepted
23
8988
225
a, b, c = map(int, input().split()) if a == 5: if b == 5 and c == 7: print('YES') elif b == 7 and c == 5: print('YES') else: print('NO') else: if 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,209,452
s989111757
p04043
u317508154
1599973771
Python
Python (3.8.2)
py
Accepted
25
9036
125
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,209,453
s497697664
p04043
u006738234
1599950839
Python
Python (3.8.2)
py
Accepted
25
9116
252
a = list(map(int, input().split())) cnt_five = 0 cnt_seven = 0 for i in range(3): if (a[i] == 5): cnt_five += 1 if (a[i] == 7): cnt_seven += 1 if(cnt_five == 2 and cnt_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,209,454
s531634749
p04043
u904995051
1599950839
Python
Python (3.8.2)
py
Accepted
26
8992
96
#ABC042A x = list(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,209,455
s943735359
p04043
u014139588
1599947102
Python
Python (3.8.2)
py
Accepted
29
9160
202
a,b,c = map(int,input().split()) if a == 5 and b == 5 and c == 7: print("YES") elif a == 7 and b == 5 and c == 5: print("YES") elif a == 5 and b == 7 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,209,456
s362769994
p04043
u615852002
1599942614
Python
Python (3.8.2)
py
Accepted
23
8876
94
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,209,457
s666507632
p04043
u843768197
1599923746
Python
Python (3.8.2)
py
Accepted
22
9060
196
a = list(map(int, input().split())) cnt_5 = 0 cnt_7 = 0 for i in a: if i == 5: cnt_5 += 1 if i == 7: cnt_7 += 1 if cnt_5 == 2 and cnt_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,209,458
s949187482
p04043
u242580186
1599872310
Python
Python (3.8.2)
py
Accepted
29
9392
457
import sys from heapq import heappush, heappop, heapify import math from math import gcd import itertools as it from collections import deque input = sys.stdin.readline def inp(): return int(input()) def inpl(): return list(map(int, input().split())) INF = 1001001001 # -------------------------------------...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,459
s414424552
p04043
u886902015
1599860908
Python
Python (3.8.2)
py
Accepted
25
8980
117
li=a,b,c=list(map(int,input().split())) if li.count(7)==1 and li.count(5)==2: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,460
s430388801
p04043
u161778051
1599796194
Python
Python (3.8.2)
py
Accepted
30
8928
87
s = input() if s 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,209,461
s965274869
p04043
u630211216
1599792363
Python
Python (3.8.2)
py
Accepted
23
9084
97
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,209,462
s471272406
p04043
u049364987
1599726669
Python
Python (3.8.2)
py
Accepted
23
9064
191
from sys import stdin, stdout from time import perf_counter import sys sys.setrecursionlimit(10**9) mod = 10**9+7 l= sorted(map(int, input().split())) print("YES" if l == [5,5,7] else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,463
s309008401
p04043
u049364987
1599723082
Python
Python (3.8.2)
py
Accepted
26
9048
193
from sys import stdin, stdout from time import perf_counter import sys sys.setrecursionlimit(10**9) mod = 10**9+7 l= sorted(map(int, input().split())) print("YES" if l == [5,5,7] else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,464
s673403899
p04043
u794544096
1599708607
Python
PyPy3 (7.3.0)
py
Accepted
63
61756
103
l = 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,209,465
s830560316
p04043
u328120774
1599705192
Python
Python (3.8.2)
py
Accepted
25
9056
195
def haiku(A,B,C): list = [A,B,C] if(list.count(5) == 2 and list.count(7) ==1): print("YES") else: print("NO") A,B,C = (int(x) for x in input().split()) haiku(A,B,C)
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,466
s720784831
p04043
u074161135
1599692766
Python
Python (3.8.2)
py
Accepted
29
9040
160
re = 0 er = 0 for i in str(input()): if i == '5': re += 1 if i == '7': er += 1 if re == 2 and er == 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,209,467
s392066106
p04043
u727238330
1599691200
Python
Python (3.8.2)
py
Accepted
27
9024
104
ls = sorted(list(map(int, input().split()))) 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,209,468
s244580859
p04043
u759109971
1599684919
Python
Python (3.8.2)
py
Accepted
30
8984
183
A, B, C = list(map(int, input().split())) if (A == 7 and B == 5 and C == 5) or (A == 5 and B == 7 and C == 5) or (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,209,469
s341307639
p04043
u049364987
1599646810
Python
Python (3.8.2)
py
Accepted
27
9196
318
from sys import stdin, stdout from time import perf_counter import sys sys.setrecursionlimit(10**9) mod = 10**9+7 l = [int(item) for item in input().split()] if (l[0]==5 and l[1] == 5 and l[2]==7) or (l[0]==5 and l[1] == 7 and l[2]==5) or (l[0]==7 and l[1] == 5 and l[2]==5): print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,470
s625206550
p04043
u049364987
1599645468
Python
Python (3.8.2)
py
Accepted
28
9108
206
from sys import stdin, stdout from time import perf_counter import sys sys.setrecursionlimit(10**9) mod = 10**9+7 l =sorted([int(item) for item in input().split()]) print("YES" if l == [5,5,7] else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,471
s454829398
p04043
u048238198
1599644730
Python
Python (3.8.2)
py
Accepted
29
9080
541
import sys import math #https://atcoder.jp/contests/agc008/submissions/15248942 sys.setrecursionlimit(10 ** 8) ini = lambda: int(sys.stdin.readline()) inm = lambda: map(int, sys.stdin.readline().split()) inl = lambda: list(inm()) ins = lambda: sys.stdin.readline().rstrip() debug = lambda *a, **kw: print("\033[33m", *a...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,472
s656512236
p04043
u417309772
1599632629
Python
Python (3.8.2)
py
Accepted
29
9140
88
a = list(map(int, input().split())) print('YES' if list(sorted(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,209,473
s084390806
p04043
u796741574
1599630716
Python
Python (3.8.2)
py
Accepted
26
9004
218
a=str(input()) alist=list(a) count7=0 count5=0 for x in alist: if x=="7": count7+=1 if x=="5": count5+=1 else: pass if count7==1 and count5==2: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,474
s094261783
p04043
u477320129
1599626916
Python
Python (3.8.2)
py
Accepted
25
9148
78
a = sorted(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,209,475
s900122551
p04043
u359358631
1599620975
Python
PyPy3 (7.3.0)
py
Accepted
64
61804
186
def main(): lst = list(map(int, input().split())) lst.sort() if lst == [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,209,476
s471857257
p04043
u053535689
1599618748
Python
Python (3.8.2)
py
Accepted
30
8928
225
# 042a def atc_042a(input_value: str) -> str: ABC = input_value.split(" ") if ABC.count("5") == 2 and ABC.count("7") == 1: return "YES" return "NO" input_value_1 = input() print(atc_042a(input_value_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,209,477
s396423010
p04043
u075303794
1599593398
Python
Python (3.8.2)
py
Accepted
33
9292
133
from collections import Counter L=Counter(list(map(int,input().split()))) if L[5]==2 and L[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,209,478
s881254621
p04043
u365156087
1599507330
Python
Python (3.8.2)
py
Accepted
25
9092
103
ary = list(map(int, input().split())) print('YES' if ary.count(5) == 2 and ary.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,209,479
s732312747
p04043
u107639613
1599445301
Python
PyPy3 (7.3.0)
py
Accepted
74
61832
388
import sys def input(): return sys.stdin.readline().strip() def main(): a, b, c = map(int, input().split()) if a == 5 and b == 5 and c == 7: print("YES") return if b == 5 and c == 5 and a == 7: print("YES") return if c == 5 and a == 5 and b == 7: 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,209,480
s775579294
p04043
u624613992
1599442144
Python
Python (3.8.2)
py
Accepted
30
9100
132
abc = list(map(int,input().split())) ans = "NO" if 5 in abc: abc.remove(5) if 5 in abc and 7 in abc: ans = "YES" print(ans)
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,481
s891706925
p04043
u620846115
1599428994
Python
Python (3.8.2)
py
Accepted
28
8876
94
a = 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,209,482
s536628212
p04043
u609752511
1599416357
Python
Python (3.8.2)
py
Accepted
28
9068
231
a,b,c=map(int,input().split()) N5=0 N7=0 if a==5: N5 +=1 elif a==7: N7 +=1 if b==5: N5 +=1 elif b==7: N7 +=1 if c==5: N5 +=1 elif c==7: N7 +=1 if (N5==2)*(N7==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,209,483
s015503273
p04043
u835924161
1599367111
Python
Python (3.8.2)
py
Accepted
25
8980
119
a,b,c=map(int,input().split()) if a*b*c==256: print("YES") if a*b*c==5*5*7: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,484
s087059545
p04043
u835924161
1599367027
Python
Python (3.8.2)
py
Accepted
25
9084
86
a,b,c=map(int,input().split()) if a*b*c==5*5*7: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,485
s301163854
p04043
u892797057
1599357895
Python
PyPy3 (7.3.0)
py
Accepted
64
61856
244
A, B, C = [int(x) for x in input().split()] req_fives = 2 req_seven = 1 for x in (A, B, C): if x == 5: req_fives -= 1 elif x == 7: req_seven -= 1 if req_fives == 0 & req_seven == 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,209,486
s366226392
p04043
u905895868
1599353658
Python
Python (3.8.2)
py
Accepted
27
9044
271
a = map(str, input().split()) three_num_list = list(a) if '5' in three_num_list: three_num_list.remove('5') two_num_list = three_num_list if '5' in two_num_list and '7' in two_num_list: 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,209,487
s983835427
p04043
u384793271
1599336485
Python
Python (3.8.2)
py
Accepted
25
8964
114
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,209,488
s304948561
p04043
u011872685
1599320326
Python
Python (3.8.2)
py
Accepted
23
9036
186
data=list(input().split()) a=0 b=0 for i in range(0,3): if data[i]=='5': a=a+1 elif data[i]=='7': b=b+1 if (a==2 and b==1): print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,489
s096948957
p04043
u304612256
1599315139
Python
Python (3.8.2)
py
Accepted
24
9168
193
from sys import stdin input = stdin.readline L = list(map(int, input().split())) T = [5,5,7] for l in L: if l in T: T.pop(T.index(l)) if T: print('NO') else: 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,209,490
s636538587
p04043
u014333473
1599255424
Python
Python (3.8.2)
py
Accepted
24
8908
61
a=input().replace('5','');print('NYOE S'[a.count('7')==1::2])
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,491
s590257282
p04043
u174040991
1599243501
Python
Python (3.8.2)
py
Accepted
31
9032
145
def test(): arr = input() arr = arr.split() arr = sorted(arr) if arr==['5', '5', '7']: print("YES") else: print("NO") test()
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,492
s490928749
p04043
u973069173
1599230383
Python
Python (3.8.2)
py
Accepted
26
9100
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,209,493
s749595518
p04043
u749491107
1599184647
Python
Python (3.8.2)
py
Accepted
29
9052
203
a, b, c = map(int, input().split()) if a == 5 and b == 5 and c == 7: print("YES") elif a == 5 and b == 7 and c == 5: print("YES") elif a == 7 and b == 5 and c == 5: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,494
s990112764
p04043
u080364835
1599181437
Python
Python (3.8.2)
py
Accepted
28
8988
91
ll = sorted(map(int, input().split())) ans = [5, 5, 7] print('YES' if ll == ans 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,209,495
s565534628
p04043
u261103969
1599179430
Python
PyPy3 (7.3.0)
py
Accepted
66
61840
303
import sys readline = sys.stdin.readline MOD = 10 ** 9 + 7 INF = float('INF') sys.setrecursionlimit(10 ** 5) def main(): x = list(map(int, readline().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,209,496
s921857502
p04043
u708211626
1599159853
Python
Python (3.8.2)
py
Accepted
26
8800
139
a=list(map(int,input().split())) b=a[0]+a[1]+a[2] c=a[2]-a[1]-a[0] if b==17 and (c==-7 or c==-3): print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,497
s520381189
p04043
u049364987
1599109600
Python
Python (3.8.2)
py
Accepted
24
9188
321
from sys import stdin, stdout from time import perf_counter import sys sys.setrecursionlimit(10**9) mod = 10**9+7 # import sys # sys.stdout = open("e:/python/cp/output.txt","w") # sys.stdin = open("e:/python/cp/input.txt","r") l = sorted([int(item) for item in input().split()]) print("YES" if l == [5,5,7] else "NO")...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,498
s249204632
p04043
u074220993
1599082909
Python
Python (3.8.2)
py
Accepted
25
8872
96
L = sorted(list(map(int, input().split()))) 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,209,499
s689875645
p04043
u165388538
1599073142
Python
Python (3.8.2)
py
Accepted
29
9024
92
abc = input().split() print("YES" if abc.count("5") == 2 and abc.count("7") == 1 else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,500
s396854111
p04043
u888933875
1599055146
Python
Python (3.8.2)
py
Accepted
28
8952
79
l=input().split() print("YES" if l.count("5")==2 and l.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,209,501
s069139121
p04043
u473905774
1598989324
Python
PyPy3 (7.3.0)
py
Accepted
64
61616
129
# coding: utf-8 # Your code here! l = input() 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,209,502
s312106514
p04043
u918422508
1598938572
Python
Python (3.8.2)
py
Accepted
27
9156
101
a,b,c=map(int,input().split()) if((a*b*c)%7==0)and((a*b*c)/7==25): print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,503
s320997095
p04043
u161134623
1598938225
Python
Python (3.8.2)
py
Accepted
27
9104
202
l = list(map(int, input().split())) seven = 0 five = 0 for i in l: 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,209,504
s549436502
p04043
u642012866
1598917706
Python
Python (3.8.2)
py
Accepted
24
8944
85
if "".join(sorted(input().split())) == "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,209,505
s928678736
p04043
u940652437
1598916990
Python
Python (3.8.2)
py
Accepted
28
8800
100
a,b,c=map(int,input().split()) if(a+b+c==17 and a*b*c==25*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,209,506
s366053040
p04043
u909716307
1598914202
Python
Python (3.8.2)
py
Accepted
31
9032
89
l=list(map(int,input().split())) print('YES'if l.count(5)==2 and l.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,209,507
s121826747
p04043
u347397127
1598835621
Python
Python (3.8.2)
py
Accepted
22
9036
115
a,b,c=map(int,input().split()) if a+b+c==17 and max(a,b,c)==7 and min(a,b,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,209,508
s491184307
p04043
u980753441
1598832029
Python
Python (3.8.2)
py
Accepted
24
8952
77
s = input() print('YES' if s.count('5') == 2 and s.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,209,509
s578374161
p04043
u210545407
1598830477
Python
Python (3.8.2)
py
Accepted
23
9040
120
data=list(map(int, 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,209,510
s373453388
p04043
u210545407
1598830176
Python
Python (3.8.2)
py
Accepted
27
8972
134
A, B, C=list(map(int, input().split(" "))) if ([A, B, C].count(5)==2) and ([A, B, C].count(7)==1): print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,511
s474088217
p04043
u804800128
1598825750
Python
Python (3.8.2)
py
Accepted
29
9028
195
import sys input = sys.stdin.readline def main(): I = list( map( int , input().split() ) ) I = sorted( I ) if I == [5,5,7]: 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,209,512
s001063141
p04043
u282813849
1598810795
Python
Python (3.8.2)
py
Accepted
28
8976
101
lst = [int(a) for a in input().split()] if [5,5,7] == sorted(lst): print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,513
s886984252
p04043
u468431843
1598808181
Python
Python (3.8.2)
py
Accepted
24
9020
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,209,514
s178862160
p04043
u122111917
1598806799
Python
Python (3.8.2)
py
Accepted
30
8996
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,209,515
s059391039
p04043
u050912188
1598800755
Python
Python (3.8.2)
py
Accepted
24
8980
90
a = input() if a.count("5") == 2 and a.count("7") == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,209,516