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
s814385634
p04043
u363438602
1554775714
Python
Python (3.4.3)
py
Accepted
17
2940
112
a,b,c=map(int,input().split()) list=[a,b,c] list.sort() if list==[5,5,7]: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,817
s421816624
p04043
u923712635
1554764520
Python
Python (3.4.3)
py
Accepted
17
2940
109
S = [int(x) for x in 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,211,818
s917913716
p04043
u319818856
1554761926
Python
Python (3.4.3)
py
Accepted
17
2940
233
def iroha_and_haiku(A: int, B: int, C: int) -> bool: return [5, 5, 7] == sorted([A, B, C]) if __name__ == "__main__": A, B, C = map(int, input().split()) yes = iroha_and_haiku(A, B, C) print('YES' if yes 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,211,819
s911613997
p04043
u455696302
1554732724
Python
Python (3.4.3)
py
Accepted
17
2940
116
N = [int(i) for i in input().split()] if N.count(5) == 2 and N.count(7) == 1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,820
s388268741
p04043
u894694822
1554686743
Python
Python (3.4.3)
py
Accepted
18
2940
107
List = input().split() if List.count("5") == 2 and List.count("7") == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,821
s517329420
p04043
u861223045
1554686077
Python
Python (3.4.3)
py
Accepted
18
2940
112
a = input().split() a = [int(i) for i in a] a = sorted(a) 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,211,822
s699758772
p04043
u956866689
1554674500
Python
Python (3.4.3)
py
Accepted
18
2940
127
# -*- coding:utf-8 -*- 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,211,823
s452383571
p04043
u457960175
1554672948
Python
Python (3.4.3)
py
Accepted
20
2940
79
if input() 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,211,824
s077289180
p04043
u288040231
1554668035
Python
Python (3.4.3)
py
Accepted
19
2940
72
print('YES') if input() in ('7 5 5', '5 7 5', '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,211,825
s440603468
p04043
u297756089
1554657163
Python
Python (3.4.3)
py
Accepted
17
3060
162
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 a==c==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,211,826
s893077605
p04043
u299730702
1554647488
Python
Python (3.4.3)
py
Accepted
17
2940
215
A, B, C = map(int, input().split()) cnt_5 = 0 cnt_7 = 0 for x in [A, B, C]: if x == 5: cnt_5 += 1 if x == 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,211,827
s153061273
p04043
u256868077
1554644365
Python
Python (3.4.3)
py
Accepted
17
3060
221
a=list(map(int,input().split())) count5=0 count7=0 for i in range(0,3): if a[i]==5: count5 += 1 elif a[i]==7: count7 += 1 else: i += 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,211,828
s033869889
p04043
u363610900
1554620069
Python
Python (3.4.3)
py
Accepted
18
2940
106
nums = list(map(int, input().split())) print('YES' if nums.count(5) == 2 and nums.count(7) == 1 else 'NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,829
s881196720
p04043
u483151310
1554611257
Python
Python (3.4.3)
py
Accepted
17
2940
235
A, B, C = map(int, input().split()) arr = [A, B, C] fives = 0 sevens = 0 for num in arr: if num == 5: fives += 1 if num == 7: sevens += 1 if fives == 2 and sevens == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,830
s179770717
p04043
u003928116
1554596652
Python
Python (3.4.3)
py
Accepted
17
2940
170
a,b,c=map(int,input().split()) if a==b==5 and c==7: print("YES") elif a==c==5 and b==7: print("YES") elif b==c==5 and a==7: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,831
s076220440
p04043
u844005364
1554595342
Python
Python (3.4.3)
py
Accepted
17
2940
86
n = input().split() print("YES" if n.count("5") == 2 and n.count("7") == 1 else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,832
s011302531
p04043
u091051505
1554558450
Python
Python (3.4.3)
py
Accepted
17
3064
120
a = [int(i) for i in input().split()] if ((a.count(5) == 2) & (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,211,833
s931033632
p04043
u055941944
1554499322
Python
Python (3.4.3)
py
Accepted
18
2940
128
# -*- coding utf-8 -*- x = list(map(int,input().split())) 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,211,834
s661692790
p04043
u121732701
1554436686
Python
Python (3.4.3)
py
Accepted
17
2940
123
A, B, C = map(int, input().split()) list = [A, B, C] list.sort() if list == [5,5,7]: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,835
s686914573
p04043
u616522759
1554410649
Python
Python (3.4.3)
py
Accepted
17
2940
136
haiku = list(input().split()) haiku = [int(i) for i in haiku] haiku.sort() if haiku == [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,211,836
s338468980
p04043
u037430802
1554407887
Python
Python (3.4.3)
py
Accepted
18
2940
96
s = input() if s == "5 5 7" or s == "5 7 5" or s == "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,211,837
s106379845
p04043
u989326345
1554393183
Python
Python (3.4.3)
py
Accepted
17
2940
101
s=str(input()) n5=s.count('5') n7=s.count('7') if n5==2 and 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,211,838
s112687857
p04043
u038450469
1554343699
Python
Python (3.4.3)
py
Accepted
17
2940
86
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,211,839
s871485367
p04043
u807070737
1554336018
Python
Python (3.4.3)
py
Accepted
18
2940
233
A = list(map(int,input().split(" "))) five_cnt = 0 seven_cnt = 0 for i in A : if i == 5: five_cnt += 1 if i == 7: seven_cnt += 1 if five_cnt == 2 and seven_cnt == 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,211,840
s473388995
p04043
u303037478
1554266334
Python
Python (3.4.3)
py
Accepted
17
2940
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,211,841
s346908015
p04043
u225415456
1554247228
Python
Python (3.4.3)
py
Accepted
18
2940
112
a = [int(x) for x in input().split()] b = a.count(5) c = a.count(7) print("YES" if b == 2 and c ==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,211,842
s462870798
p04043
u279493135
1554220097
Python
Python (3.4.3)
py
Accepted
17
2940
159
from sys import stdin input = stdin.readline ABC = [int(x) for x in input().rstrip().split()] ABC.sort() if ABC == [5, 5, 7]: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,843
s359252759
p04043
u405947212
1554209256
Python
Python (3.4.3)
py
Accepted
17
2940
111
a = list(map(int,input().split())) if a.count(5) == 2 and a.count(7) == 1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,844
s116358606
p04043
u460745860
1554178100
Python
Python (3.4.3)
py
Accepted
17
2940
103
A = sorted(list(map(int,input().split()))) print('YES' if (sum(A) == 17) and (A[0]==A[1]==5) 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,211,845
s027268756
p04043
u655975843
1554152956
Python
Python (3.4.3)
py
Accepted
17
2940
121
lis = list(map(int, input().split())) if lis.count(5) == 2 and lis.count(7) == 1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,846
s612858500
p04043
u259053514
1554086966
Python
Python (3.4.3)
py
Accepted
17
2940
136
# -*- coding: utf-8 -*- ABC = list(map(int, input().split())) ABC.sort() if ABC == [5, 5, 7]: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,847
s591469407
p04043
u488178971
1554081615
Python
Python (3.4.3)
py
Accepted
17
2940
119
#042 A S = [int(j) for j in 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,211,848
s954211187
p04043
u603745966
1554070336
Python
Python (3.4.3)
py
Accepted
25
3700
713
from functools import reduce def main(): # 一文字のみを読み込み # s = input().rstrip().split(' ') # スペース区切りで標準入力を配列として読み込み # s = input().rstrip().split(' ') # 位置文字ずつ標準入力を配列として読み込み # s = list(input().rstrip()) slist = input().rstrip().split(' ') if slist[0] == '5' and slist [1] == '5' and sl...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,849
s384601261
p04043
u036363750
1554069126
Python
Python (3.4.3)
py
Accepted
18
3060
329
#!/usr/bin/env python3 def main(): a,b,c = map(int, input().split()) # print("a:{},b:{},c:{}".format(a,b,c)) if a+b+c == 17: s = list(set([a,b,c])) # print(s) if (s[0]==5 and s[1]==7) or (s[0]==7 & s[1]==5): print ("YES") else: print ("NO") else: print ("NO") if __name__=='__main_...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,850
s127009859
p04043
u748311048
1554067190
Python
Python (3.4.3)
py
Accepted
18
2940
181
a,b,c=map(int,input().split()) if a==5 and b==7 and c==5: print('YES') elif a==5 and b==5 and c==7: 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,211,851
s896002610
p04043
u167097262
1554059894
Python
Python (3.4.3)
py
Accepted
17
2940
93
a = map(int,input().split()) if sorted(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,211,852
s655708978
p04043
u030360338
1554002473
Python
Python (3.4.3)
py
Accepted
17
2940
194
# -*- coding: utf-8 -*- line = map(int, input().split()) #ans = "YES" if line.count(5) == 2 and line.count(7) == 1 else "NO" if sorted(line) == [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,211,853
s933965810
p04043
u393581926
1554000972
Python
Python (3.4.3)
py
Accepted
17
2940
104
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,211,854
s633233906
p04043
u826557401
1553974902
Python
Python (3.4.3)
py
Accepted
17
2940
140
A, B, C = map(int, input().split()) sample = [A, B, C] if sample.count(5) == 2 and sample.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,211,855
s442131041
p04043
u911575040
1553954002
Python
Python (3.4.3)
py
Accepted
17
2940
98
a=[] a=list(map(int,input().split(' '))) if 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,211,856
s731083865
p04043
u203377003
1553945954
Python
Python (3.4.3)
py
Accepted
18
2940
105
IN = list(map(int, input().split())) if sorted(IN) == [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,211,857
s751180754
p04043
u692632484
1553917539
Python
Python (3.4.3)
py
Accepted
18
2940
139
cnt=[0 for i in range(11)] for i in input().split(): cnt[int(i)]+=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,211,858
s718238997
p04043
u305965165
1553895707
Python
Python (3.4.3)
py
Accepted
18
2940
117
a = [int(i) for i in input().split()] if a.count(5) == 2 and a.count(7) == 1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,859
s141106142
p04043
u721316601
1553894930
Python
Python (3.4.3)
py
Accepted
20
2940
109
ABC = 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,211,860
s572963842
p04043
u141642872
1553892488
Python
Python (3.4.3)
py
Accepted
17
2940
111
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,211,861
s785477123
p04043
u912862653
1553891730
Python
Python (3.4.3)
py
Accepted
18
2940
93
A, B, C = list(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,211,862
s279468208
p04043
u019578976
1553889653
Python
Python (3.4.3)
py
Accepted
17
2940
86
a=list(map(int,input().split())) print("YES"if set(a)=={5,7} and sum(a)==17 else "NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,863
s731070228
p04043
u633355062
1553806472
Python
Python (3.4.3)
py
Accepted
17
2940
103
a=list(map(int,input().split())) if a.count(5)==2 and a.count(7)==1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,864
s560683648
p04043
u246820565
1553660769
Python
Python (3.4.3)
py
Accepted
17
2940
77
a = input().split() print('YES' if '7' in a and a.count('5') == 2 else 'NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,865
s840090896
p04043
u614314290
1553641155
Python
Python (3.4.3)
py
Accepted
17
2940
94
I = list(map(int, input().split())) print("YES" if I.count(5)==2 and I.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,211,866
s709675549
p04043
u795630164
1553640959
Python
Python (3.4.3)
py
Accepted
17
2940
104
a = [int(i) for i in 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,211,867
s103750739
p04043
u993622994
1553636721
Python
Python (3.4.3)
py
Accepted
17
2940
119
# -*- 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,211,868
s451104694
p04043
u714533789
1553612894
Python
Python (3.4.3)
py
Accepted
17
2940
99
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,211,869
s101673718
p04043
u077019541
1553610679
Python
Python (3.4.3)
py
Accepted
17
2940
111
A = list(map(int,input().split())) if A.count(5) == 2 and A.count(7)==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,870
s004197918
p04043
u143318682
1553609861
Python
Python (3.4.3)
py
Accepted
17
2940
126
# -*- coding: utf-8 -*- N = list(map(int, input().split())) if sorted(N) == [5, 5, 7]: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,871
s687848814
p04043
u864900001
1553551743
Python
Python (3.4.3)
py
Accepted
17
2940
132
#42 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,211,872
s095832861
p04043
u180528413
1553482919
Python
Python (3.4.3)
py
Accepted
17
2940
98
A = map(int, input().split(' ')) A_sum = sum(A) if A_sum == 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,211,873
s920506129
p04043
u179719532
1553385885
Python
Python (3.4.3)
py
Accepted
17
2940
127
# coding: UTF-8 l = list(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,211,874
s639128070
p04043
u589668184
1553362632
Python
Python (3.4.3)
py
Accepted
17
2940
110
num = list(map(int,input().split())) if (num[0]*num[1]*num[2] == (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,211,875
s906552081
p04043
u162758522
1553354411
Python
Python (3.4.3)
py
Accepted
17
2940
110
A = list(map(int,input().split())) if A.count(5) == 2 and A.count(7) == 1: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,876
s052149207
p04043
u363610900
1553317716
Python
Python (3.4.3)
py
Accepted
17
2940
138
a, b, c = input().split() nums = sorted([a, b, c]) if nums[0] == 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,211,877
s057009631
p04043
u661707952
1553288340
Python
Python (3.4.3)
py
Accepted
17
2940
241
#!/usr/bin/env python3.4 # -*- coding: utf-8 -*- # abc042_a # input arr = input().split() arr = map(int, arr) haiku = [5, 7, 5] # getans for a in arr: if a in haiku: haiku.remove(a) ans = 'YES' if not haiku else 'NO' # output 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,211,878
s253266980
p04043
u559416752
1553274668
Python
Python (3.4.3)
py
Accepted
18
2940
223
a, b, c = map(int, input().split()) five = 0 seven = 0 check = [a, b, c] for s in check: if s == 5: five += 1 if s == 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,211,879
s027713000
p04043
u267300160
1553211752
Python
Python (3.4.3)
py
Accepted
18
2940
121
num = list(map(int,input().split())) if(5 in num and 7 in num and sum(num) == 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,211,880
s532953530
p04043
u588081069
1553211053
Python
Python (3.4.3)
py
Accepted
17
2940
372
input_str = list(map(int, input().split())) # パターンを上げる # 5 * 5 * 7 で1通りとする(素因数分解しても1通り) # sortして1通りとする # print("YES" if sorted([int(i) for i in input().split()])==[5,5,7] else "NO") if input_str == [7, 5, 5] or input_str == [5, 7, 5] or input_str == [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,211,881
s616007922
p04043
u588081069
1553209500
Python
Python (3.4.3)
py
Accepted
18
2940
156
input_str = ''.join(list(map(str, input()))) if input_str == '7 5 5' or input_str == '5 7 5' or input_str == '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,211,882
s373198252
p04043
u227082700
1553192432
Python
Python (3.4.3)
py
Accepted
17
2940
85
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,211,883
s138953879
p04043
u268516119
1553100278
Python
Python (3.4.3)
py
Accepted
17
2940
88
a,b,c=list(map(int,input().split())) if a*b*c==175: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,884
s988670827
p04043
u268516119
1553099986
Python
Python (3.4.3)
py
Accepted
17
2940
105
haiku=list(map(int,input().split())) haiku.sort() if haiku==[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,211,885
s862446473
p04043
u591779169
1552966747
Python
Python (3.4.3)
py
Accepted
17
2940
102
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,211,886
s495005965
p04043
u465101448
1552960535
Python
Python (3.4.3)
py
Accepted
18
2940
112
a=[int(x) for x in input().split()] if 7 in a: a.remove(7) if a==[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,211,887
s790445394
p04043
u824237520
1552942362
Python
Python (3.4.3)
py
Accepted
17
2940
102
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,211,888
s804715188
p04043
u827241372
1552936185
Python
Python (3.4.3)
py
Accepted
17
2940
228
def main() -> None: A, B, C = map(int, input().split()) l = [A, B, C] l.sort() if l[0] == 5 and l[1] == 5 and l[2] == 7: print("YES") else: print("NO") if __name__ == '__main__': main()
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,889
s407255575
p04043
u518042385
1552870805
Python
Python (3.4.3)
py
Accepted
17
2940
94
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,211,890
s808826355
p04043
u023077142
1552827052
Python
Python (3.4.3)
py
Accepted
17
3064
746
from itertools import combinations, product def gcd(a, b): if a < b: a, b = b, a while b != 0: a, b = b, a % b return a def lcm(a, b): return a * b // gcd(a, b) def get(fmt): ps = input().split() r = [] for p, t in zip(ps, fmt): if t == "i": r.append(...
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,891
s578345765
p04043
u373529207
1552782644
Python
Python (3.4.3)
py
Accepted
17
2940
127
v=list(map(int,input().split())) v = sorted(v) if v[0] is 5 and v[1] is 5 and v[2] is 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,211,892
s818130372
p04043
u598050616
1552757172
Python
Python (3.4.3)
py
Accepted
17
3064
86
abc = list(map(int, input().split())) print("YES" if sorted(abc) == [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,211,893
s852373295
p04043
u119982147
1552753125
Python
Python (3.4.3)
py
Accepted
18
2940
102
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,211,894
s988031600
p04043
u522266410
1552705217
Python
Python (3.4.3)
py
Accepted
17
2940
85
A,B,C = map(int, input().split()) if A*B*C/175==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,895
s365931154
p04043
u568595296
1552686199
Python
Python (3.4.3)
py
Accepted
17
2940
76
print("YES" if sorted([int(i) for i in input().split()])==[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,211,896
s687996490
p04043
u381626581
1552636219
Python
Python (3.4.3)
py
Accepted
18
3060
186
A, B, C = map(int, input().split()) if B < A: A, B = B, A if C < A: A ,C = C, A if C < B: B, C = C, B if A != 5 or B != 5 or C != 7: 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,211,897
s416547093
p04043
u348898379
1552636028
Python
Python (3.4.3)
py
Accepted
17
2940
199
x = input(); cnt5=0; cnt7=0; for i in x: if i == '5': cnt5=cnt5+1 else: if i == '7': cnt7=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,211,898
s829227095
p04043
u358791207
1552620336
Python
Python (3.4.3)
py
Accepted
18
2940
214
a, b, c = map(int, input().split()) if a == 5: if (b == 5 and c == 7) or (c == 5 and b == 7): print("YES") else: print("NO") if a == 7: 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,211,899
s864410676
p04043
u164678731
1552557393
Python
Python (3.4.3)
py
Accepted
17
2940
144
# coding: utf-8 data = list(map(str, 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,211,900
s289254276
p04043
u878138257
1552537737
Python
Python (3.4.3)
py
Accepted
18
2940
118
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,211,901
s935247204
p04043
u285443936
1552530399
Python
Python (3.4.3)
py
Accepted
18
2940
122
A = sorted(list(map(int,input().split()))) if (A[0] == 5) & (A[1] == 5) & (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,211,902
s653524387
p04043
u325264482
1552266703
Python
Python (3.4.3)
py
Accepted
18
2940
115
a = list(map(int, 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,211,903
s492799564
p04043
u020176853
1552266063
Python
Python (3.4.3)
py
Accepted
17
3060
283
A, B, C = map(int, input().split()) flag = False if A == 7: if B == C and (B == 5 or C == 5): flag = True elif B == 7: if A == C and (A == 5 or C == 5): flag = True elif C == 7: if A == B and (A == 5 or B == 5): flag = True print("YES") if flag == True else print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,904
s326990235
p04043
u392029857
1552261985
Python
Python (3.4.3)
py
Accepted
17
2940
114
x = sorted(list(map(int, input().split()))) if (x[0]==x[1]==5) and x[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,211,905
s434347241
p04043
u664652300
1552249263
Python
Python (3.4.3)
py
Accepted
25
2940
106
a=[int(i) for i in input().split()] if a.count(5)==2 and a.count(7)==1: print("YES") else: print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,906
s599478716
p04043
u782654209
1552232395
Python
Python (3.4.3)
py
Accepted
20
2940
98
n = sorted(list(map(int, input().split(' ')))) if n == [5,5,7]: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,907
s754019571
p04043
u380933932
1552215129
Python
Python (3.4.3)
py
Accepted
20
2940
165
#n=int(input()) #li=input().split() li=list(map(int,input().split())) #s=input() ans="NO" li.sort() if li[0]==5 and li[1]==5 and li[2]==7: ans="YES" print(ans)
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,908
s283255285
p04043
u021877437
1552177706
Python
Python (3.4.3)
py
Accepted
18
2940
124
t = list(map(int, input().rstrip().split(' '))) t.sort() print('YES' if (t[0] == 5 and t[1] == 5 and t[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,211,909
s699576747
p04043
u677393869
1552150473
Python
Python (3.4.3)
py
Accepted
17
3060
172
A,B,C=map(int,input().split()) five=0 seven=0 for i in [A,B,C]: if i==5: five+=1 elif 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,211,910
s390355816
p04043
u191635495
1552147467
Python
Python (3.4.3)
py
Accepted
17
3060
208
A, B, C = map(int, input().split()) five = 0 seven = 0 for i in [A,B,C]: 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,211,911
s037487870
p04043
u724742135
1552014268
Python
Python (3.4.3)
py
Accepted
18
2940
163
from sys import stdin l = [int(x) for x in stdin.readline().rstrip().split()] l.sort() if l[0] == 5 and l[1] == 5 and l[2] == 7: print('YES') else: print('NO')
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,912
s907157176
p04043
u357050210
1551933579
Python
Python (3.4.3)
py
Accepted
18
2940
137
a = [int(i) for i in input().split()] a = sorted(a) 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,211,913
s466340985
p04043
u794173881
1551928528
Python
Python (3.4.3)
py
Accepted
19
2940
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,211,914
s689063568
p04043
u189575640
1551898678
Python
Python (3.4.3)
py
Accepted
17
2940
244
ABC = sorted([int(n) for n in input().split()]) # N = int(input()) # a = [int(input()) for _ in range(N)] # S = str(input()) # L = len(S) # T = str(input()) 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,211,915
s132845092
p04043
u865413330
1551842880
Python
Python (3.4.3)
py
Accepted
17
2940
100
l = list(input().split()) print("YES") if (l.count("5") == 2) & (l.count("7") == 1) else print("NO")
p04043
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p> <p>To create a Haik...
5 5 7
YES
1,211,916