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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s085202659 | p04043 | u282657760 | 1563239225 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | A, B, C = map(int, input().split())
list_ABC = [A, B, C]
list_ABC.sort()
if list_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,517 |
s158434695 | p04043 | u169711213 | 1563226910 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 93 | i = input()
if i == '5 5 7' or i == '5 7 5' or i == '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,518 |
s458248210 | p04043 | u257332942 | 1563215691 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 237 | i = list(map(int, input().split()))
if i[0] == 5 and i[1] == 5 and i[2] == 7:
print('YES')
elif i[0] == 5 and i[1] == 7 and i[2] == 5:
print('YES')
elif i[0] == 7 and i[1] == 5 and i[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,211,519 |
s280933052 | p04043 | u103341055 | 1563052075 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 135 | num = [int(n) for n in input().rstrip().split()]
if num.count(5) == 2 and num.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,520 |
s662973565 | p04043 | u800258529 | 1562971179 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 67 | print('YNEOS'[sorted(list(map(int, input().split())))!=[5,5,7]::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,211,521 |
s775826279 | p04043 | u800258529 | 1562969381 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 235 | a, b, c=map(int, input().split())
l=[a,b,c]
for i in range(3):
if l[i]==5:
del l[i]
break
s=len(l)
for i in range(s):
if l[i]==5:
del l[i]
break
if l==[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,522 |
s164089420 | p04043 | u265304824 | 1562893100 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 225 | a, b, c = [int(s) for s in input().split(' ')]
cnt5 = 0
cnt7 = 0
for num in [a, b, c]:
if num == 5:
cnt5 += 1
if num == 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,211,523 |
s881352474 | p04043 | u567434159 | 1562888611 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 91 | if list(sorted(map(int, input().split()))) == [5, 5, 7]:
print("YES")
else:
print("NO") | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,524 |
s489097880 | p04043 | u123824541 | 1562809919 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 156 | A = list(map(int, input().split()))
A.sort()
if A[0] == 5:
if A[1] == 5:
if A[2] == 7:
print('YES')
exit()
print('NO') | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,525 |
s538547735 | p04043 | u675073679 | 1562794002 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 155 | nums = list(map(int,input().split()))
nums.sort()
if nums[0] == 5 and nums[1] == 5 and nums[2] == 7:
print("YES")
else:
print("NO") | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,526 |
s896594227 | p04043 | u537782349 | 1562644977 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | 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,527 |
s412050858 | p04043 | u576712004 | 1562628121 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 292 | def main():
s = list(map(int, input().split()))
fives = 0
sevens = 0
for item in s:
if item == 5: fives += 1
if item == 7: sevens += 1
if fives == 2 and sevens == 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,211,528 |
s795440334 | p04043 | u105124953 | 1562533789 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 100 | l = list(map(int, input().split()))
l.sort()
if l == [5,5,7]:
print("YES")
else:
print("NO") | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,529 |
s793823326 | p04043 | u630096262 | 1562471302 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 103 | s = 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,530 |
s214419000 | p04043 | u687044304 | 1562415228 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 320 | # -*- coding:utf-8 -*-
def solve():
ABC = list(map(int, input().split()))
n5 = 0
n7 = 0
for n in ABC:
if n == 5:
n5 += 1
elif n == 7:
n7 += 1
if n5==2 and n7==1:
print("YES")
else:
print("NO")
if __name__ == "__main__":
solve()
| p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,531 |
s249643993 | p04043 | u897835853 | 1562387460 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 197 | f, s = 0, 0
for i in input().split():
intI = int(i)
if (intI == 5):
f += 1
elif (intI == 7):
s += 1
else:
break
print('YES' if (f == 2 and s == 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,532 |
s994891240 | p04043 | u668503853 | 1562386631 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 91 | a=[int(x) for x 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,533 |
s658779630 | p04043 | u173199010 | 1562375653 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | li = list(map(int,input().split()))
li.sort()
res = [5,5,7]
if (li == res):
print('YES')
else:
print('NO') | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>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,534 |
s110631245 | p04043 | u173199010 | 1562369933 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | li = list(map(int,input().split()))
li.sort()
res = [5,5,7]
if (li == res):
print('YES')
else:
print('NO') | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>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,535 |
s012010634 | p04043 | u596059469 | 1562342876 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 363 | def haiku(lst):
w5 = 2
w7 = 1
for h in lst:
if h == '5':
w5 -= 1
if w5 < 0:
return False
elif h == '7':
w7 -= 1
if w7 < 0:
return False
else:
return False
return True
lst = input().sp... | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>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,536 |
s457925734 | p04043 | u516811325 | 1562275715 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 205 | s = [int(i) for i in input().split()]
f5 = 2
f7 = 1
for i in s:
if(i == 5):
f5 -= 1
elif(i == 7):
f7 -= 1
if (f5 == 0 and f7 == 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,211,537 |
s266337085 | p04043 | u888512581 | 1562268892 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 165 | numbers_list = input().split()
count5 = numbers_list.count('5')
count7 = numbers_list.count('7')
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,538 |
s332774179 | p04043 | u950376354 | 1562183568 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 183 | A,B,C = map(int, input().split())
if A==5 and B==5 and C==7:
print('YES')
elif B==5 and C==5 and A==7:
print('YES')
elif C==5 and A==5 and B==7:
print('YES')
else:
print('NO') | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,539 |
s636322242 | p04043 | u829249049 | 1562138046 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 140 | A,B,C=map(int,input().split())
list1=[A,B,C]
list1.sort()
if list1[0]==5 and list1[1]==5 and list1[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,540 |
s964359004 | p04043 | u093500767 | 1562123703 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 162 | a = list(map(int, input().split()))
i5 = 0
i7 = 0
for i in a:
if i==5:
i5+=1
if i==7:
i7+=1
if i5==2 and i7==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,541 |
s151116485 | p04043 | u314050667 | 1562122976 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 107 | 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,211,542 |
s515377989 | p04043 | u265116141 | 1562083368 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 89 | a, b, c = map(int, input().split())
if((a+b+c)-17 == 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,211,543 |
s916858414 | p04043 | u226873514 | 1562082156 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 185 | a = list(map(int, input().split()))
i5 = 0
i7 = 0
for i in a:
if i == 5:
i5 += 1
if i == 7:
i7 += 1
if i5==2 and i7==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,544 |
s999090300 | p04043 | u952467214 | 1562080454 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 118 | 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,211,545 |
s622036897 | p04043 | u473291366 | 1562046208 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 101 | list = input().split()
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,546 |
s836317964 | p04043 | u077025302 | 1562034265 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 111 | l = list(map(int, input().split()))
if(l.count(5)==2 and l.count(7)==1):
print("YES")
else:
print("NO") | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,547 |
s313904671 | p04043 | u375500286 | 1561948264 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 119 |
s=list(map(int,input().split()))
s.sort()
if s[0]==5 and s[1]==5 and s[2]==7 :
print("YES")
else :
print("NO") | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,548 |
s083848292 | p04043 | u970449052 | 1561943836 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 131 | abc=list(map(int,input().split()))
abc=sorted(abc)
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,549 |
s171823625 | p04043 | u288948615 | 1561943788 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 113 | nums = input().split()
if nums.count('5') == 2 and nums.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,550 |
s374897452 | p04043 | u672475305 | 1561902699 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 131 | lst = [int(i) for i in input().split()]
lst.sort()
if lst[0] == lst[1] == 5 and lst[2] == 7:
print('YES')
else:
print('NO') | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,551 |
s052335930 | p04043 | u334260611 | 1561838454 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 237 | S = list(map(int, input().split(' ')))
#print(S)
count_7 = count_5 = 0
for num in S:
if num == 5:
count_5 += 1
elif num == 7:
count_7 += 1
if count_5 == 2 and count_7 == 1:
print('YES')
else:
print('NO') | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,552 |
s293024905 | p04043 | u375823148 | 1561837145 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 141 | a = list(map(int, input().split()))
d = 0
for i in range(3):
if a[i] == 5: d+=1
if a[i] == 7: d+=4
if d==6: print("YES")
else: print("NO") | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>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,553 |
s304181902 | p04043 | u537976628 | 1561775308 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 247 | syllables = list(map(int, input().split()))
cnt5 = 0
cnt7 = 0
for i in syllables:
if i == 5:
cnt5 += 1
elif i == 7:
cnt7 += 1
else:
print('NO')
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,554 |
s632962990 | p04043 | u759412327 | 1561772455 | 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,555 |
s709629782 | p04043 | u556589653 | 1561746019 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 113 | A = list(map(int,input().split()))
if (A.count(5)) == 2 and (A.count(7)) == 1:
print("YES")
else:
print("NO") | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,556 |
s576634658 | p04043 | u229213815 | 1561692753 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 150 | a = input().split(" ")
count_5 = a.count("5")
count_7 = a.count("7")
ans = "NO"
if count_5 == 2:
if count_7 == 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,211,557 |
s645388084 | p04043 | u394794741 | 1561689502 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 242 | listInput = list(map(int,input().split()))
count5=0
count7=0
for i in listInput:
if i==5:
count5+=1
if i==7:
count7+=1
else:
continue
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,558 |
s151705083 | p04043 | u430223993 | 1561635149 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 204 | a,b,c = map(int, input().split())
from collections import defaultdict
dic = defaultdict(lambda : 0)
for i in [a,b,c]:
dic[i] += 1
if dic[5] == 2 and dic[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,559 |
s333977499 | p04043 | u239756332 | 1561604173 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 60 | print('YES' if eval(input().replace(' ','+'))==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,560 |
s371304752 | p04043 | u879077265 | 1561602893 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 209 | 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,561 |
s772166210 | p04043 | u239756332 | 1561600920 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 64 | print('YES' if sorted(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,562 |
s795730258 | p04043 | u239756332 | 1561600473 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 249 | L = [int(i) for i in input().split()]
S = sum(L)
S2 = S - L[0]
S1 = S2 - L[1]
if S != 17:
print('NO')
else:
if S2==10 and S1==5:
print('YES')
elif S2==12 and (S1==5 or S1==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,563 |
s661481607 | p04043 | u373499377 | 1561593900 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 201 | def main():
bunsetsu = list(map(int, input().split()))
bunsetsu.sort()
if bunsetsu == [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,211,564 |
s550206549 | p04043 | u138236903 | 1561578043 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 200 | a = list(map(int, input().split()))
count5 = 0
count7 = 0
for a in a:
if a == 5:
count5 += 1
elif a == 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,211,565 |
s290228748 | p04043 | u349091349 | 1561572298 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 132 | a,b,c=map(int,input().split())
if (a or b or c == 5) and (a or b or c ==7) and (a*b*c ==5*7*5):
print('YES')
else:
print('NO') | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,566 |
s705634969 | p04043 | u296150111 | 1561513089 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 121 | a,b,c=list(map(int,input().split()))
if max(a,b,c)==7 and min(a,b,c)==5 \
and a+b+c==17:
print("YES")
else:
print("NO") | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,567 |
s177387434 | p04043 | u013594089 | 1561512314 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 115 | s=list(map(int,input().split()))
if s == [5,5,7] or s == [7,5,5] or s == [5,7,5]:
print("YES")
else:
print("NO") | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,568 |
s537506815 | p04043 | u293523199 | 1561506837 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 122 | A = list(map(str, 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,569 |
s976201489 | p04043 | u714300041 | 1561485084 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 122 | A, B, C = map(int, input().split())
if A*B*C == 5*5*7 and A >= 5 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,570 |
s611261428 | p04043 | u790812284 | 1561446303 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 132 | a,b,c = map(int, input().split())
if a in [5,7] and a in [5,7] and a in [5,7] and a+b+c ==17:
print("YES")
else:
print("NO") | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,571 |
s257457722 | p04043 | u933341648 | 1561397523 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 66 | print('YES' if sorted(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,572 |
s491806721 | p04043 | u290211456 | 1561361061 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | a = list(input().split())
cnt = 0
for i in range(3):
if a[i] == '5':
cnt += 1
if cnt == 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,573 |
s504356679 | p04043 | u471212175 | 1561335443 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 210 | def X(A,B,C):
if A == 5 or A == 7:
if B == 5 or B == 7:
if C == 5 or C == 7:
if A + B + C == 17:
return "YES"
return "NO"
A,B,C = map(int, input().split())
print(X(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,211,574 |
s848086206 | p04043 | u827141374 | 1561314804 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 118 | abc = [int(x) for x in 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,575 |
s371244246 | p04043 | u450339194 | 1561273704 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 190 | nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()
if sorted(nl()) == [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,576 |
s683549705 | p04043 | u323120917 | 1561259808 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 104 | p=input().rstrip().split(' ')
if p.count('5')==2 and p.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,577 |
s655826538 | p04043 | u924467864 | 1561250430 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 535 | a, b, c = map(int, input().split())
if a == 5:
if b == 5:
if c == 7:
print("YES")
else:
print("NO")
elif b == 7:
if c == 5:
print("YES")
else:
print("NO")
else:
print("NO")
elif a == 7:
if b == 5:
if c == 5:... | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,578 |
s338306252 | p04043 | u580904613 | 1561205225 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 177 | a, b, c = map(int, input().split())
dc = {}
dc[a] = dc.get(a, 0)+1
dc[b] = dc.get(b, 0)+1
dc[c] = dc.get(c, 0)+1
if dc[5] is 2 and dc[7] is 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,579 |
s008253120 | p04043 | u059210959 | 1561179682 | Python | Python (3.4.3) | py | Accepted | 61 | 6732 | 756 | # encoding:utf-8
import copy
import random
import bisect #bisect_left これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(): return [list(map(int, l.split())) for l in... | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>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,580 |
s595994839 | p04043 | u377989038 | 1561162299 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 95 | a, b, c = map(int, input().split())
if a * b * c == 175:
print("YES")
else:
print("NO") | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,581 |
s294913202 | p04043 | u243699903 | 1561151720 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 104 | num = list(map(int, input().split()))
print('YES' if num.count(5) == 2 and num.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,582 |
s769963597 | p04043 | u494927057 | 1561087001 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 116 | 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,583 |
s234588547 | p04043 | u494927057 | 1561083164 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 216 | haiku = list(map(int, input().split()))
cnt_5 = 0
cnt_7 = 0
for s in haiku:
if s == 5:
cnt_5 += 1
elif s == 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,584 |
s956361056 | p04043 | u116670634 | 1561082784 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 180 | a, b, c = map(int, input().split())
if (a == 5 and b == 5 and c == 7)\
or (a == 5 and b == 7 and c == 5)\
or (a == 7 and b == 5 and c == 5):
print("YES")
else:
print("NO")
| p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,585 |
s730618930 | p04043 | u223646582 | 1561056115 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 68 | print('YES' if sorted(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,586 |
s083254455 | p04043 | u998082063 | 1560996531 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 95 | x, y, z = map(int, input().split())
if x + y + z == 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,587 |
s671490692 | p04043 | u244419600 | 1560976591 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 249 | # coding: utf-8
# Your code here!
haiku = input().split()
count_f = 0
count_s = 0
for l in haiku:
if l == "5":
count_f += 1
elif l == "7":
count_s += 1
if count_f == 2 and count_s == 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,588 |
s117254499 | p04043 | u497046426 | 1560837524 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 114 | t = list(map(int, input().split()))
if t.count(5) == 2 and t.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,589 |
s191253707 | p04043 | u648452607 | 1560798865 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 80 | n=[int(_) for _ in input().split()]
print('YES' if sorted(n)==[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,590 |
s151273434 | p04043 | u187516587 | 1560796587 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 194 | p=input().split()
for i in range(3):
p[i]=int(p[i])
f,s=2,1
for i in range(3):
if p[i]==5:
f-=1
elif p[i]==7:
s-=1
if f==s==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,211,591 |
s558539915 | p04043 | u993587645 | 1560707997 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 91 | a = sorted(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,592 |
s491621696 | p04043 | u098677768 | 1560701274 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 163 | i = list(map(int, input().split()))
countFive = i.count(5)
countSeven = i.count(7)
if countFive == 2 and countSeven == 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,593 |
s274643750 | p04043 | u671455949 | 1560646723 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 102 | l = list(map(int, input().split()))
l.sort()
print("YES" if l[0] == l[1] == 5 and l[2] == 7 else "NO") | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,594 |
s800786856 | p04043 | u245870380 | 1560631788 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 87 | s = list(input().split())
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,211,595 |
s871293419 | p04043 | u606045429 | 1560572312 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 117 | L = [int(i) for i in 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,596 |
s919173326 | p04043 | u606045429 | 1560572246 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 104 | L = sorted([int(i) for i in input().split()])
if L == [5, 5, 7]:
print("YES")
else:
print("NO")
| p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,597 |
s668746199 | p04043 | u619785253 | 1560530606 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | moji = list(map(int,input().split()))
#ans = 'NO'
if (moji.count(7) ==1) and (moji.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,598 |
s951730397 | p04043 | u266171694 | 1560445325 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 122 | inputs = list(map(int, input().split()))
if inputs.count(7) == 1 and inputs.count(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,599 |
s153765723 | p04043 | u744563031 | 1560403665 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 101 | ABC=list(map(str, input().split()));print("YES" if ABC.count("7")==1 and ABC.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,600 |
s762954619 | p04043 | u560988566 | 1560389052 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 125 | n = list(map(int, input().split()))
a = n.count(5)
b = n.count(7)
ans = "NO"
if a == 2 and b == 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,211,601 |
s952974589 | p04043 | u329058683 | 1560388666 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | N=list(map(int,input().split()))
N.sort()
if N[0]==5 and N[1]==5 and N[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,602 |
s141944893 | p04043 | u921194336 | 1560358245 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 235 | numbers = list(map(int,input().split()))
counter1 = 0
counter2 = 0
for i in numbers:
if i == 5:
counter1 += 1
if i == 7:
counter2 += 1
if counter1 == 2 and counter2 == 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,603 |
s268164789 | p04043 | u970308980 | 1560310961 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | def abc():
l = ''.join(input().split())
print('YES' if l.replace('5', '') == '7' else 'NO')
abc()
| p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>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,604 |
s607017691 | p04043 | u474423089 | 1560307705 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 189 | def main():
word = list(input().split(' '))
if word.count('7') == 1 and word.count('5') ==2:
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,605 |
s360235254 | p04043 | u539517139 | 1560261649 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 91 | 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,606 |
s330991131 | p04043 | u102461423 | 1560217071 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 89 | ABC=[int(x) for x in input().split()]
ABC.sort()
print('YES' if 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,607 |
s014495336 | p04043 | u371409687 | 1560192175 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 120 | a,b,c=map(int, input().split())
List=sorted([a,b,c], reverse=True)
if List == [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,608 |
s066251544 | p04043 | u155985376 | 1560062251 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 159 | a = [int(i) for i in input().split()]
c,d = 0,0
for i in a:
if i == 5:
c+=1
if i == 7:
d+=1
if c ==2 and d == 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,609 |
s531058447 | p04043 | u242817359 | 1560054894 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 188 | a = input().split(" ")
if (a[0]=="5" and a[1]=="5" and a[2]=="7") or (a[0]=="5" and a[1]=="7" and a[2]=="5") or (a[0]=="7" and a[1]=="5" and a[2]=="5"):
print("YES")
else:
print("NO") | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,610 |
s626930606 | p04043 | u474423089 | 1560051871 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 173 | def main():
l = input().split(' ')
if l.count('5') ==2 and l.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,211,611 |
s167292865 | p04043 | u483896240 | 1560049503 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | # -*- coding: utf-8 -*-
a, b, c = sorted(map(int, input().split()))
if a ==5 and b ==5 and c == 7:
print('YES')
else:
print('NO') | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,612 |
s308378769 | p04043 | u203597140 | 1560040905 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 109 | s = sorted([int(v) for v in input().split()])
if s == [5, 5, 7]:
ans = "YES"
else:
ans = "NO"
print(ans) | p04043 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... | 5 5 7
| YES
| 1,211,613 |
s246134815 | p04043 | u150386598 | 1560036556 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | s = list(map(int, input().split()))
x = s[0]*s[1]*s[2]
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,614 |
s463368797 | p04043 | u203501420 | 1560027979 | Python | Python (2.7.6) | py | Accepted | 10 | 2568 | 211 | a, b, c = map(int, raw_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,211,615 |
s608075228 | p04043 | u400620139 | 1560012680 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 196 | arr = input().split()
cnt_5 = 0
cnt_7 = 0
for a in arr:
if a == '5':
cnt_5+=1
elif a == '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,616 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.