submission_id string | problem_id string | status string | code string | input string | output string | problem_description string |
|---|---|---|---|---|---|---|
s989151533 | p04043 | Runtime Error | n, l = map(int, input().split())
sn = []
for _ in range(n+1):
sn.append(input())
sn = sorted(sn)
sn = ''.join(sn)
print(sn) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s432968705 | p04043 | Runtime Error | n, l = map(int, input().split())
sn = []
for _ in range(n):
sn.append(input())
sn = sorted(sn)
sn = ''.join(sn)
print(sn) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s256911978 | p04043 | Runtime Error | a, b, c = map(int, input().split())
if a*b*c = 245:
print('YES')
else:
print('NO')
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s638811645 | p04043 | Runtime Error | N, L = map(int, input().split())
#標準入力からリストの作成
list = []
for _ in range(N):
i = str(input())
list.append(i)
#リストのソート
list_a = sorted(list)
#リストの結合
mojiretu = ''.join(list_a)
print(mojiretu) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s637019568 | p04043 | Runtime Error | N, L = map(int, input().split())
#標準入力からリストの作成
list = []
for _ in range(2, N+2):
i = input()
list.append(i)
#リストの結合
mojiretu = ''.join(list)
print(mojiretu) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s737862364 | p04043 | Runtime Error | a,b,c = map(int, input().split())
flag = 0
if a == 7 & b,c == 5:
flag = 1
elif b == 7 & a,c == 5:
flag = 1
elif c == 7 & a,b == 5:
flag = 1
else:
flag = 0
if flag = 0:
print('No')
else:
print('YES')
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s899975311 | p04043 | Runtime Error | import sys
n,l = map(int,input().split())
s =[]
for i in range(n):
s.append((input()))
s.sort()
for i in range(n):
sys.stdout.write(s[i])
print("")
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s842064189 | p04043 | Runtime Error | ABC = list(map(int(input().split())))
if ABC.count(5) == 2 and ABC.count == 7:
print("YES")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s326893979 | p04043 | Runtime Error | a, b, c = map(int, input().split())
five = 0;
if a == 5:
five = five + 1;
elif a == 7:
seven = seven + 1;
if b == 5:
five = five + 1;
elif b == 7:
seven = seven + 1;
if c == 5:
five = five + 1;
elif c == 7:
seven = seven + 1;
if five == 2 and seven == 1:
print("YES")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s404374393 | p04043 | Runtime Error | H, W, A, B = map(int, input().split())
answer = 0
mod = 1000000007
factorial = [1]
for n in range(1, H+W):
factorial.append(factorial[n-1]*n%mod)
def power(x, y):
if y == 0:
return 1
elif y == 1:
return x % mod
elif y % 2 == 0:
return power(x, y/2)**2%mod
else:
return... | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s706924978 | p04043 | Runtime Error | A=sorted([int(i) for i in input().split()])
if A==[5,5,7]:
print(“YES”)
else:
print(“NO”) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s389995622 | p04043 | Runtime Error | n,l=map(int,input().split())
s=[input() for i in range(n)]
S="".join(sorted(s))
print(S)
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s703162244 | p04043 | Runtime Error | n,l=map(int,input().split())
s=[input() for i in range(n)]
print("".join(sorted(s)))
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s130795606 | p04043 | Runtime Error | n,l=map(int,input().split())
s=[input() for i in range(n)]
s.sort()
print("".join(s)) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s302068856 | p04043 | Runtime Error | n,l=map(int,input().split())
s=[input() for i in range(n)]
s.sort
print("".join(s))
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s186039614 | p04043 | Runtime Error | L, N = list(map(int, input().split()))
S = [input() for i in range(N)]
S.sort()
ans = "";
for j in range(N):
ans += S[j]
print(ans)
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s863043680 | p04043 | Runtime Error | N, L = map(int, input().split())
S = []
for i in range(N):
S.append(input())
S.sort()
S = ''.join(S)
print(S) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s755823037 | p04043 | Runtime Error | flag = False
a = input().split(' ')
for i in range(3):
a[i]=int(a[i])
while True:
for i in range(3):
if a[i] != 5 and a[i] != 7:
print('NO')
frag = True
break
if frag == True:
print(2)
break
if a[0] + a[1] + a[2] == 17:
print('YES')
break
else:
print('NO')
break | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s630198982 | p04043 | Runtime Error | a = input().split(' ')
while True:
for i in renge(3):
if a[i] != 5 or a[i] != 7:
print('NO')
break
if a[0] + a[1] + a[2] == 17:
print('YES')
break
print('NO')
break
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s828747716 | p04043 | Runtime Error | n, k = map(int, input().split())
a = [int(x) for x in input().split()]
while True:
s = str(n)
poss = False
for i in s:
if int(i) in a:
poss = True
break
if not poss:
print(n)
exit(0)
n += 1 | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s653656516 | p04043 | Runtime Error | N,L=map(int,input().split())
s=[input() for i in range(N)]
s=sorted(s)
print("".join(s))
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s058850197 | p04043 | Runtime Error | n,l = map(int, input().split())
string = [input() for i in range(n)]
string.sort()
print("".join(string)) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s778101510 | p04043 | Runtime Error | s=input()
print('YES' if s=='5 5 7'||s=='5 7 5'||s=='7 5 5' else 'NO') | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s150460484 | p04043 | Runtime Error | print(["NO","YES"][eval(input().replace(" ","*"))]) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s692920671 | p04043 | Runtime Error | # -*- coding: utf-8 -*-
A,B,C=map(int,input().split())
S =set("ABC")
T =set("557")
if S & T = ("5","5","7"):
print("YES")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s380161856 | p04043 | Runtime Error | # -*- coding: utf-8 -*-
A,B,C=map(int,input().split())
S =[A,B,C]
T =[5,5,7]
if S = T:
print("YES")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s578847857 | p04043 | Runtime Error | # input
A = map(int, input().split())
ans1 = 0
ans2 = 0
for i in range(len(A)):
if A[i] == 5:
ans1 += 1
if A[i] == 7:
ans2 += 1
if ans1 == 2 and ans2 == 1:
print('YES')
else:
print('NO') | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s095123592 | p04043 | Runtime Error | # input
A = map(int, input().split())
ans1 = 0
ans2 = 0
for i in range(len(A)):
if A[i] == 5:
ans1 += 1
if A[i] == 7:
ans2 += 1
if ans1 == 2 and ans2 == 1:
print('YES')
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s579066715 | p04043 | Runtime Error | a=input()
b=input()
c=input()
w=[a,b,c]
e=w.count('5')
if '5' and '7' not in w:
print ('NO')
elif e==2:
print ('YES')
else:
print ('NO') | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s384235738 | p04043 | Runtime Error | import sys
def solve(a, b, c):
# Uncomment the following if you want to check the input.
# print('a =', a)
# print('b =', b)
# print('c =', c)
def I(a,b,c):
w=[a,b,c]
if 5 and 7 not in w:
print ('NO')
e=w.count(5)
if e==2:
print ('YES')
else:
print ('NO')... | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s279804567 | p04043 | Runtime Error | import sys
def solve(a, b, c):
# Uncomment the following if you want to check the input.
# print('a =', a)
# print('b =', b)
# print('c =', c)
w=[a,b,c]
if 5 and 7 not in w:
return ('NO')
e=w.count(5)
if e==2:
return ('YES')
else:
return ('NO')
def readQues... | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s823638614 | p04043 | Runtime Error | import sys
def solve(a, b, c):
# Uncomment the following if you want to check the input.
# print('a =', a)
# print('b =', b)
# print('c =', c)
w=[a,b,c]
if 5 and 7 not in w:
return ('NO')
e=w.count(5)
if e==2:
return ('YES')
else:
return ('NO')
def readQues... | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s541348048 | p04043 | Runtime Error | def solve(a,b,c):
li = [a,b,c]
cf = 0
cs = 0
for i in li:
if i == 5:
cf +=1
if i==7:
cs +=1
if cf == 2 and cs ==1:
return YES
else:
return NO
def readQuestion():
line = sys.stdin.readline().rstrip()
[str_a, str_b, str_c... | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s173136846 | p04043 | Runtime Error | l = input.split()
if l.count('5')==2 and '7' in l:
print('YES')
else:
print('NO') | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s501032990 | p04043 | Runtime Error | a,b,c=map(int,input().split())
if(((a==5)or(a==7)) and ((b==5)or(b==7)) and ((c==5)or(c==7))):
if(a+B+c==17):
print("YES")
else:
print("NO")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s282045491 | p04043 | Runtime Error | a,b,c=map(int,input().split())
if(((a==5)or(a==7)) and ((b==5)or(b==7)) and ((c==5)or(c==7))):
ifa+B+c==17:
print("YES")
else:
print("NO")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s790011490 | p04043 | Runtime Error | a,b,c=map(int,input().split())
if(((a==5)or(a==7)) and ((b==5)or(b==7)) and ((c==5)or(c==7))):
ifa+B+c==17:
print(YES)
else:
print(NO)
else:
print(NO) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s195074100 | p04043 | Runtime Error | text = input().split()
if len(text[0]) + len(text[1]) + len(text[2]) != 17:
print("NO")
elif len(text[0]) != 5 || len(text[0]) != 7:
print("NO")
elif len(text[1]) != 5 || len(text[1]) != 7:
print("NO")
else:
print("YES") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s140402063 | p04043 | Runtime Error | a=input()
b=[int(i) for i in a]
if(b[0]==5 and b[1]==5 and b[2]==7):
print("YES")
elif(b[1]==5 and b[2]==5 and b[0]==7)
print("YES")
elif(b[2]==5 and b[0]==5 and b[1]==7)
print("YES")
else:
print("NO")
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s003100930 | p04043 | Runtime Error | n, l = map(int, input().split())
l = []
i = 0
l = [input() for i in range(n)]
result = sorted(l)
s = ''.join(result)
# for i in range(n):
print(s)
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s008493045 | p04043 | Runtime Error | X={int(input()),int(input()),int(input())}
if X in [{5,5,7},{5,7,5},{7,5,5}]:
print("YES")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s850942154 | p04043 | Runtime Error | a,b,c= map(int,input().split())
if a==5:
if b==5:
if c==7:
return print("YES")
else:
return print("NO")
elif b==7:
if c==5:
return print("YES")
else:
return print("NO")
elif a==7:
... | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s924839619 | p04043 | Runtime Error | a = map(int,input().split())
a.sort()
if a[0] == 5:
if a[1] == 7:
if a[2] == 5:
print("YES")
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s672488797 | p04043 | Runtime Error | num = list(map(int, input().strip(" ")))
five = 0;
seven = 0;
for i in range(3):
if (num[i]==5):
five++;
elif (num[i] == 7):
seven++;
if (five == 2 and seven == 1):
print("Yes")
else:
print("no")
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s436166956 | p04043 | Runtime Error | a = input().strip(" ")
five = 0;
seven = 0;
for i in range(3):
if (a[i]==5):
five++;
elif (a[i] == 7):
seven++;
if (five == 2 and seven == 1):
print("Yes")
else:
print("no") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s478917935 | p04043 | Runtime Error | A, B, C = map(int, raw_input().split())
if (A != 5 and A!=7):
print('NO')
if (B != 5 and B!=7):
print('NO')
if (C != 5 and C!=7):
print('NO')
if(A + B + C != 17):
print('NO')
else:
print('YES')
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s927845359 | p04043 | Runtime Error | A = int(input())
B = int(input())
C = int(input())
if A+B+C == 17 and A*B*C == 175:
print('YES')
else:
print('NO') | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s566470617 | p04043 | Runtime Error | n,k=map(int,input().split());d=input().split()
while 1:
for c in str(n):
if c in d:break
else:
print(n)
exit()
n += 1 | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s569240875 | p04043 | Runtime Error | l = sort(list(map(int,input().split())))
if l==[5,5,7]:
print('YES')
else:
print('NO') | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s620056098 | p04043 | Runtime Error | #coding: utf-8
s = input()
print(["NO", "YES"][s.count("5")==2 * s.count("7")==1]
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s112559277 | p04043 | Runtime Error | N,x=map(int,input().split())
a=list(map(int, input().split()))
a.sort()
m=0
i=0
if a[0]>x:
print(0)
else:
while m<=x and i<N:
m += a[i]
i +=1
if i==N and m!=x:
i -=1
print(i)
else:
print(i) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s557817881 | p04043 | Runtime Error | #include <iostream>
#include <math.h>
#include <vector>
#include <map>
#include <stack>
#include <queue>
#include <set>
#include <algorithm>
#include <iomanip>
#include <string.h>
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define ALL(a) (a).begin(),(a).end()
typedef long long lint;
us... | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s662751815 | p04043 | Runtime Error | P = list(input().split())
if (P.count('5') == 2 and P.count('7') == 1):
print('YES')
else:
prit('NO') | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s583491419 | p04043 | Runtime Error | num1 = int(input("整数値を入力してください>"))
while num1<1 or num1>10:
print("1~10の整数値を入力してください")
num1 = int(input("整数値を入力してください>"))
num2 = int(input("整数値を入力してください>"))
while num2<1 or num2>10:
print("1~10の整数値を入力してください")
num2 = int(input("整数値を入力してください>"))
num3 = int(input("整数値を入力してください>"))
while num3<1 or num3>10:
... | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s261662744 | p04043 | Runtime Error | num1 = int(input("整数値を入力してください>"))
num2 = int(input("整数値を入力してください>"))
num3 = int(input("整数値を入力してください>"))
if num1 == 7 :
if num2 == num3 and num2 == 5 :
print("YES")
else :
print("NO")
elif num2 == 7 :
if num1 == num3 and num1 == 5 :
print("YES")
else :
print("NO")
elif ... | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s275924353 | p04043 | Runtime Error | /7 7/cNO
cYES | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s061959290 | p04043 | Runtime Error | print("YES"if input().count(7)==1else"NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s263763621 | p04043 | Runtime Error | a, b, c = list(map(int, input().split()))
if (a + b + c == 17) && (a * b * c == 5 * 5 * 7):
print("YES")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s551610583 | p04043 | Runtime Error | a, b, c = list(map(int, input().split()))
if a + b + c == 17 && a * b * c == 5 * 5 * 7:
print("YES")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s570598832 | p04043 | Runtime Error | a, b, c = map(int, input().split())
if a + b + c == 17 && a * b * c == 5 * 5 * 7:
print("YES")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s079432435 | p04043 | Runtime Error | print('YNEOS'[input()%18!=17::2]) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s207696800 | p04043 | Runtime Error | a = map(int, input().split())
if a.sort() == [5,5,7]:
print('Yes')
else:
print('No') | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s064708378 | p04043 | Runtime Error | import itertools
n, k = map(int, input().split())
array = {x for x in input().split()}
num_array = {str(x) for x in range(10)}
like_num = array^num_array
res = float("inf")
for i in range(1, 100000):
tmp = set(list(str(i)))
if tmp.issubset(like_num):
if n <= i < res:
res = i
print(res) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s925365608 | p04043 | Runtime Error | #-*-coding:utf-8-*-
def main():
arry = list(map(int, input().split))
if arry.count(5) == 2 and arry.count(7) == 1:
print('YES')
else:
print('NO')
if __name__ == '__main__':
main() | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s266058420 | p04043 | Runtime Error | print("YES" if sorted(input().split())==["5","5","7"] else "NO"] | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s077585990 | p04043 | Runtime Error | a,b,c =map(int(input().split()))
L=[]
L.append(a)
L.append(b)
L.append(c)
if L.count(5)==2 and L.count(7)==1 :
print("YES")
else :
print("NO")
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s403011799 | p04043 | Runtime Error | abc = list(map(int, input()))
print("Yes" if sorted(abc) == [5, 5, 7] else "No") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s578460995 | p04043 | Runtime Error | a, b, c = map(int,input().split())
if a+b+c=17:
print('YES')
else:
print('NO')
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s743570408 | p04043 | Runtime Error | A,B,C = (int(i) for i in input().split())
Aaddition = A+B+C
if Addition != 17:
haiku = False
else:
if ((A==5 or A==7) and (B==5 or B==7) and (C==5 or C==7)):
haiku = True
else:
haiku = False
if haiku:
print("YES")
else:
print("NO")
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s705083953 | p04043 | Runtime Error | A,B,C = (int(i) for i in input().split())
Aaddition = A+B+C
if Addition != 17:
haiku = False
else:
if((A==5 or A==7) and (B==5 or B==7) and (C==5 or C==7) ):
haiku = True
else:
haiku = False
if haiku:
print("YES")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s112816728 | p04043 | Runtime Error | 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")
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s144079398 | p04043 | Runtime Error | h, w, lower_bound, left_bound = map(int, input().split())
grid = [[0 for i in range(w)] for j in range(h)]
lower_i = h - lower_bound
left_i = left_bound
for i in range(lower_i, len(grid)):
for j in range(0, left_i):
grid[i][j] = 1
def count_path(row, col, grid, memo):
if memo[row][col] != -1:
return mem... | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s194189552 | p04043 | Runtime Error | n, k = map(int, input().split())
d = list(map(int, input().split()))
for i in range(10*n+2):
if i >= n:
s = str(i)
for j in range(len(s)):
if int(s[j]) in d:
break
print(i)
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s591017204 | p04043 | Runtime Error | n, k = map(int, input().split())
d_list = list(map(int, input().split()))
num_list = [0,1,2,3,4,5,6,7,8,9]
for d in d_list:
num_list.remove(d)
final_price = ''
def is_dislike_number(number, dislike_list):
if number in dislike_list:
return True
else:
return False
for i, num in enumerate(str(n)):
num ... | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s072358870 | p04043 | Runtime Error | ans=list(map(int,input().split()))
dic=[]
for x in ans:
if(x!=5 or x!=7):
print("NO")
break
else:
dic[str(x)]=dic.get(str(x),0)+1
if(dic["5"]!=2 and dic["7"]!=1):
print("NO")
else:
print("YES")
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s746841833 | p04043 | Runtime Error | ans=list(map(int,input().split()))
dic=[]
for x in ans:
if(x!=5 or x!=7):
print("NO")
break
else:
dic[str(x)]=dic.get(x,0)+1
if(dic["5"]!=2 and dic["7"]!=1):
print("NO")
else:
print("YES")
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s730960569 | p04043 | Runtime Error | s=[int(i) for i in input.split()]
if len(s)==3 and s.count("5")==2 and s.count("7")==1:
print("YES")
else:
print("NO")
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s924639032 | p04043 | Runtime Error | sorted_lst=sorted(list(map(int,input().split())))
if so_lst[0]==5 and so_lst[1] == 5 and so_lst[2]==7:
print("YES")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s278359553 | p04043 | Runtime Error | print(["YES","NO"][bool(len(list(multiset(map(int,input().split()))-multiset([5,5,7]))))]) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s552241081 | p04043 | Runtime Error | print(["YES","NO"][bool(len(list(multiset(input().split())-multiset([5,5,7]))))]) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s331137166 | p04043 | Runtime Error | print(["YES","NO"][bool(len(list(multiset(input.split())-multiset([5,5,7]))))]) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s476017744 | p04043 | Runtime Error | print(["YES","NO"][bool(len([set(input.split())-set([5,5,7])]))]) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s168520123 | p04043 | Runtime Error | s = input()
if s.count("7") == 2 and s.count("5") == 1:
print("YES")
else:
print("NO) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s219297984 | p04043 | Runtime Error | l = map(int, raw_input().split())
a = 0
b = 0
for i in len(l):
if l[i] == 5:
a = a + 1
elif l[i] == 7:
b = b + 1
if (a==2 or b ==1):
print("Yes")
else:
print("No")
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s495421219 | p04043 | Runtime Error | da = list(map(int,input(),split()))
a = 0
k = 0
for i in range(3):
if da[i] == 5:
a += 1
elif da[i] == 7:
k += 1
if a == 2 and k == 1:
print("YES")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s494375363 | p04043 | Runtime Error | ls = input().strip().split()
return (ls.count('7') == 1) and (ls.count('5')==2) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s127857225 | p04043 | Runtime Error | N, K = map(int, input().split())
D = list(map(int, input().split()))
shiharai=N
l = [int(x) for x in list(str(N))]
c=len(l)
for i in range(len(l)):
while l[i] in D:
shiharai+=1
l = [int(x) for x in list(str(shiharai))]
if len(l)!=c:
for i in range(len(l)):
while l[i] in D:
sh... | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s462329904 | p04043 | Runtime Error | import sys
import defaultdict
args = sys.argv
dd = defaultdict(int)
for arg in args:
dd[arg] += 1
if dd[5] == 2 and dd[7] == 1:
print('YES')
else:
print('NO')
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s145047307 | p04043 | Runtime Error | print('YES' if sorted(input()) == [*' 557'] else 'NO') | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s851452243 | p04043 | Runtime Error | print('YES' if sorted(input()) == [*' 557'] else 'No') | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s650644783 | p04043 | Runtime Error | N= list(map(int,input().split()))
GO=0
SHICHI=0
For i in N:
if i== 5: GO +=1
elif i==7: SHICHI+=1
if GO==2 and SHICHI==1:print("YES")
else:print("NO")
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s564461192 | p04043 | Runtime Error | N= list(map(int,input().split()))
GO=0
SHICHI=0
For i in N:
if i== 5: GO +=1
elif i==7: SHICHI+=1
if GO==2 and SHICHI==1:print("YES")
else: print("NO")
| 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s137349010 | p04043 | Runtime Error | l = map(int, raw_input().split())
if l.count(5) == 2:
if l.count(7) ==1:
print('YES')
else:
print('NO') | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s292148552 | p04043 | Runtime Error | a, b, c = int(input())
d = [a,b,c]
if d.count(5) == 2:
if d.count(7) == 1:
print('Yes')
else:
print('No') | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s994871667 | p04043 | Runtime Error | num_list = input().split(" ")
num_list = map(num_list, int)
sorted_list = num_list.sorted()
if sorted_list == [5, 5, 7]:
print("YES")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s473040181 | p04043 | Runtime Error | num_list = int(input().split(" "))
sorted_list = num_list.sorted()
if sorted_list == [5, 5, 7]:
print("YES")
else:
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s345347843 | p04043 | Runtime Error | N, L = map(int, input().split())
S = ["" for i in range(N)]
for i in range(N):
S[i] = input()
S.sort()
result = ""
for i in range(N):
result += S[i]
print(result) | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s742700487 | p04043 | Runtime Error | a,b,c =map(int,input().split())
if a == 5 && b==5 && c==7:
print("YES")
elif a == 5 && b==7 && c==5:
print("YES")
elif a == 7 && b==5 && c==5:
print("YES")
else :
print("NO") | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s624225557 | p04043 | Runtime Error | import sys
debug_mode = True if len(sys.argv) > 1 and sys.argv[1] == "-d" else False
if debug_mode:
import os
inf = open(os.path.basename(__file__).replace(".py", ".in"))
def input():
return inf.readline()
else:
inf = sys.stdin
# ==============================================================
... | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
s777808999 | p04043 | Runtime Error | M = 10**9 + 7
L = 200000
Fm = {}
inverseFm = {}
x = 1
for i in range(L):
Fm[i] = x
x = x * (i + 1) % M
def inverseFm(x):
result = pow(Fm[x], M - 2, M)
return result
def C(n, r):
result = Fm[n] * inverseFm(r) * inverseFm(n - r) % M
return result
def solve(H, W, A, B):
result = 0
f... | 5 5 7
| YES
| <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Iroha loves <em>Haiku</em>. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with <var>5</var>, <var>7</var> and <var>5</var> syllables, in this order.</p>
<p>To create a Haik... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.