TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

if list1_0 < 8:
    print("Yay!")
if list1_1 < 8:
    print("Yay!")
else:
    print(":(")

list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

if list1_0 < 8 or list1_1 < 8:
    print(":(")
else:
    print("Yay!")

list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

if list1_0 > 8 or list1_1 > 8:
    print(":(")
else:
    print("Yay!")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a,b=map(int,input().split())
print("yay" if a<=8 and b<=8 else ":(")

d, n = map(int, input().split())
if d==0:
    ans=n
    if n==100:
        n=101
else:
    ans=(100**d)*n
    if n==100:
        ans=100**d*101

print(ans)


a,b=map(int,input().split())
print("Yay" if a<=8 and b<=8 else ":(")

a=int(input())
b=int(input())
print("yay" if a<=8 and b<=8 else ":(")

a,b=map(int,input().split())
if a+b<=16:
	print("yay" if a<=8 and a>=1 and b>=1 and b<=8 else ":(")

a,b=map(int,input().split())
print("Yay!" if a<=8 and b<=8 else ":(")


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A, B = [int(x) for x in input().split(' ')]

if A >= 8 or B >= 8:
    print('Yay!')
else:
    print(':(')

A, B = [int(x) for x in input().split(' ')]

if A > 8 or B > 8:
    print(':(')
else:
    print('Yay!')

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A,B=map(int,input().split())
if 16-(A+B)>=2 or A==B==8:
    print('Yay!')
if A>9 or B>9:
    print(':(')
else:
    print(':(')

A,B=map(int,input().split())
if 16-(A+B)>2:
    print('Yay!')
if A==B==8:
    print('Yay!')
else:
    print(':(')


A,B=map(int,input().split())
if A<=8 and B<=8:
    print('Yay!')

else:
    print(':(')


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a,b = map(int,input())
if a > 8 or b > 8:
    print(":(")
else:
    print("Yay!")

a = int(input())
b = int(input())
if a > 8 or b > 8:
    print(":(")
else:
    print("Yay!")

a,b = map(int,input().split())
if a > 8 or b > 8:
    print(":(")
else:
    print("Yay!")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
#coding:utf-8

A,B = list(map(int, input().split()))

if A > 8 or B > 8:
    print(":(")
else:
    print("Yey!")

#coding:utf-8

A,B = list(map(int, input().split()))

if A <= 8 and B <= 8:
    print("Yey!")
else:
    print(":(")


#coding:utf-8

A,B = list(map(int, input().split()))

space = 16 - min(A,B)

if space >= 2 * (max(A,B)-min(A,B)):
    print('Yey!')
else:
    print(':(')

#coding:utf-8

A,B = list(map(int, input().split()))

if A > 8 or B > 8:
    print(':(')
else:
    print('Yey!')

#coding:utf-8

A,B = list(map(int, input().split()))

if A <= 8 and B <= 8:
    print('Yey!')
else:
    print(':(')

#coding:utf-8

A,B = list(map(int, input().split()))

if A > 8 or B > 8:
    print(":(")
else:
    print("Yay!")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a = int(input())
b = int(input())
if a <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')

a, b = map(int, input().split())
if a <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')

Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a,b = map(int, input().split())
if a<= 8 and b <= 8:
  print("Yay!")
else:
print(":(")

a,b = map(int, input().split())
if a<= 8 and b <= 8:
  print("Yay!")
else:
  print(":(")


Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
d, n = map(int, input().split())
if d != 0 and d != 1 and d != 2:
    print("Invalid numbers are entered.")
elif n <= 0 or n >= 101:
    print("Invalid numbers are entered.")
else:
    list = []
    for i in range(100):
        list.append(100**d * (i + 1))
    print(list[n - 1])


a, b = map(int, input().split())
if a <= 0 or a >= 17:
    print("Invalud numbers are entered.")
elif a + b >= 17:
    print("Invalud numbers are entered.")
elif a >= 9 or b >= 9:
    print(":(")
else:
    print("Yay!")

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
import sys


def solve(n):
    if  a <= 8 and b <= 8 :
        return 'yay'
    else:
        return ':('


def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

import sys

def solve(n):
    if  a <= 8 and b <= 8 :
        return 'yay'
    else:
        return ':('
def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

import sys

def solve(a,b):
    if  a <= 8 and b <= 8 :
        return 'yay'
    else:
        return ':('
def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

import sys

def solve(a, b):
    if  a <= 8 and b <= 8 :
        return 'yay'
    else:
        return ':('
    
def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

import sys

def solve(a, b):
    if  a <= 8 and b <= 8 :
        return 'Yay!'
    else:
        return ':('
    
def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A - Happy Birthday!

x, y = map(int, input().split())
if x <= 8 and y <= 8:
    print("Yay!")
else:
    print(":(")


Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A, B = map(int, input().split(' '))

if (A <= 8) and (B <= 8):
    print("Yey!")
else:
    print(":(")


A, B = map(int, input().split(' '))

if (A <= 8) and (B <= 8):
    print("Yay!")
else:
    print(":(")

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a,b=input().split()
a=int(a)
b=int(b)

if a <= 8 and b <= 8:
    print('YES')

else:
    print(':(')


a,b=input().split()
a=int(a)
b=int(b)

if a <= 8 and b <= 8:
    print('Yay!')

else:
    print(':(')


Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A = int(input())
B = int(input())
if A<=8 and B<=8:
  print('Yay!')
else:
  print(':(')

A = int(input())
B = int(input())
if A<=8 and B<=8:
  print('Yay!')
else:
  print(':(')

A,B = map(int, input().split())
if A<=8 and B<=8:
  print('Yay!')
else:
  print(':(')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
num = list(map(int,input()
.split()))
if num[0]>num[1]:
    bignum = num[0]
else :
    bignum = num[1]

if  bignum <= 8:
    print('Yey!')
else :
    print(':(')

num = list(map(int,input()
.split()))
if num[0]>num[1]:
    bignum = num[0]
else :
    bignum = num[1]

if  bignum <= 8:
    print('Yey!')
else :
    print(':(')

num = list(map(int,input()
.split()))
if num[0]>num[1]:
    bignum = num[0]
else :
    bignum = num[1]

if  bignum <= 8:
    print('Yay!')
else :
    print(':(')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
D, N = map(int, input().split())

ans = N * (100 ** D)

if N == 100:
	ans += 100 ** D

print(ans)

A, B = map(int, input().split())
if max(A, B) <= 8:
    print('Yay!')
else:
    print(':(')

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A=int(input())
B=int(input())

if A>8 or B>8:
  print(":(")
else:
  print("Yay!")

A=int(input())
B=int(input())

if A>8 or B>8 or A<0 or B<0:
  print(":(")
else:
  print("Yay!")

a=int(input())
b=int(input())

if a>8 or b>8 or a<0 or b<0:
  print(":(")
else:
  print("Yay!")

a,b=map(int,input().split())

if a>8 or b>8 or a<0 or b<0:
  print(":(")
else:
  print("Yay!")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A, B = map(int, input().split())

if A>=8 and B>=8:
  print("Yay!")
else:
  print(":(")

A, B = map(int, input().split())

if A<=8 and B<=8:
  print("Yay!")
else:
  print(":(")

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a,b=map(int,input())
if a < 9 and b < 9:
  print('Yay!')
else:
  print(':(')

a,b=map(int,input().split())
if a < 9 and b < 9:
  print('Yay!')
else:
  print(':(')


Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
D,N=list(map(int, input().split()))
b=10**D
a=b*N
print(a)

A,B= map(int, input().split())
if A<=8 and B<=8;
    print('Yay!')
else:
    print(':(')

A,B= map(int, input().split())
if A<=8 and B<=8:
    print(Yay!)
else:
    print(:()

D,N=list(map(int, input().split()))
print(10**D*N)

A,B= map(int, input().split())
if A<=8 and B<=8:
    print('Yay!')
else:
    print(':(')

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
s = input().strip()
ss = s.split()
d = int(ss[0])
n = int(ss[1])
i = 1
while 1:
	x = i
	c = 0
	while x % 100 == 0:
		x //= 100
		c += 1
	if c == d:
		n -= 1
		if n == 0:
			print(i)
			break
	i += 1


s = input().strip()
ss = s.split()
a = int(ss[0])
b = int(ss[1])
if a > 8 or b > 8:
  print(":(")
else:
  print("Yay!")

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a,b=map(int,input().split())
if a==0:
  print(b)
elif a==1:
  if b==100:
    print((100**a)*(b+1))
  else:
    print((100**a)*b)
else:
  if b==100:
    print((100**a)*(b+1))
  else:
    print((100**a)*b)

A, B = map(int, input().split())
print("Yay!" if A<=8 and B<=8 else ":(")

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a, b = map(int, input().split())

if a <= 8 and b <= 8:
  print('Yay')
else:
  print(':(')

a, b = map(int, input().split())

if a <= 8 and b <= 8:
  print('Yay!')
else:
  print(':(')

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a = int(input())
b = int(input())

if a > 8 or b > 8:
    print(':(')
else:
    print('Yay!')


a = int(input())
b = int(input())

if a > 8 or b > 8:
    print(':(')
else:
    print('Yay!')

a, b = list(map(int, input().split()))
 
if a > 8 or b > 8:
    print(':(')
else:
    print('Yay!')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a,b = map(int,input().split())

flg = 1 

if (a <= 8) and (b <= 8):
    flg = 0
else:
        flg = 1
        
if flg == 0:
    print("Yey!")
else:
    print(":(")

a,b = map(int,input().split())

flg = 1 

if (a <= 8) and (b <= 8):
    flg = 0
else:
        flg = 1
        
if flg == 0:
    print("Yay!")
else:
    print(":(")

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
#coding:utf-8
import itertools
import numpy as np

N,M = map(int,input().split())
cakeList = [list(map(int,input().split())) for i in range(N)]
cakeList = np.array(cakeList)
numList = [i for i in range(N)]


maxv = 0
if M < N/2:
    combi = list(itertools.combinations(numList,M))
    for indexs in combi:
        cakes = [cakeList[i] for i in indexs]
        cakes = np.array(cakes)
        total = [abs(np.sum(cakes[:,i])) for i in range(3)]
        total = sum(total)
        maxv = max(total,maxv)
    print(maxv)


else:
    M = N - M
    combi = list(itertools.combinations(numList,M))
    BDP = [np.sum(cakeList[:,i]) for i in range(3)]
    for indexs in combi:
        cakes = [cakeList[i] for i in indexs]
        cakes = np.array(cakes)
        total = [abs(BDP[i] - np.sum(cakes[:,i])) for i in range(3)]
        total = sum(total)
        maxv = max(maxv,total)
    print(maxv)


#coding:utf-8
A,B = map(int, input().split())

if A <= 8 and B <= 8:
    print("Yay!")

else:
    print(":(")


Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a,b=int(input())
print("Yay!" if a<=8 and b<=8 else ":(")

a,b=map(int,input().split())
print("Yay!" if a<=8 and b<=8 else ":(")

Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a = int(input())
b = int(input())
if a<9 and b<9: print("Yey!")
else: print(":(")

a,b = (int(input()))
if a<9 and b<9: print("Yay!")
else: print(":(")

a,b = (int(i) for i in input().split())
if a<9 and b<9: print("Yay!")
else: print(":(")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
ip = input().split()
usdata = []
D = int(ip[0])
N = int(ip[1])
flag = 0

b_number = 100 ** D
a_number = b_number * N
tester = a_number % 100 ** (D + 1)

if tester == 0:
    a_number += 100 ** D

print(a_number)

ip = input().split()
usdata = []
usdata.append(int(ip[0]))
usdata.append(int(ip[1]))
flag = 0

for i in usdata:
    if i >= 9:
        flag = 1
    else:
        pass

if flag == 1:
    print(":(")
else:
    print("Yay!")


Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a = int(input())
b = int(input())

if a+b <= 16:
    print("Yay!")
else:
    print(":(")


a,b = map(int,input().split())

if a+b <= 16 and a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")

Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A,B = map(int,input().split())
if A < 9 and B < 9:
    print('Yay')
else:
    print(':(')

A,B = map(int,input().split())
if A < 9 and B < 9:
    print('Yay!')
else:
    print(':(')

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a, b = map(int, input().split())
if a > 8 or b >8:
  print("Yay!")
else:
  print(":(")

a, b = map(int, input().split())
if a > 8 or b >8:
  print(":(")
else:
  print("Yay!")


Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a, b = int(input())
if a <= 8 and b <= 8:
  print("Yay!")
else:
  print(":(")

a, b = map(int,input().split())
if a <= 8 and b <= 8:
  print("Yay!")
else:
  print(":(")

Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a,b = map(int, input().split())

if a >= 9 or b >= 9:
    print(":(")
else:
    print("Yes")

a,b = map(int, input().split())

if a >= 9 or b >= 9:
    print(":(")
else:
    print("Yay!")

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a, b = map(int, input().split())

if max(a,b) > 8:
    print("Yay!")
else:
    print(":(")

a, b = map(int, input().split())

if max(a,b) <= 8:
    print("Yay!")
else:
    print(":(")

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A, B = map(int, input().split())
print("Yay!" if A <= 8 and B <= 8)


A, B = map(int, input().split())
print("Yay!" if A <= 8 and B <= 8 else ":(")


Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A, B = [int(x) for x in input().split(" ")]
if max(A, B) > 8:
  print(":(")
else:
  print("Yey!")

def readints():
    return [int(x) for x in input().split()]

A, B = readints()

if max(A, B) > 8:
    print(":(")
else:
    print("Yay!")


Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A, B = map(int, input().split())
if max(A, B) > 8:
  print('Yay!')
else:
  print(':(')

A, B = map(int, input().split())
if max(A, B) > 8:
  print('Yay!')
else:
  print(':(')

A, B = map(int, input().split())
if max(A, B) <= 8:
  print('Yay!')
else:
  print(':(')


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a,b = map(int,input().split())
if a<9 and b<9:
  print("Yes")
else:
  print("No")

a,b = map(int,input().split())
print("Yay!") if a<9 and b<9 else print(":(")

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A,B = map(int,input().split())
if A <= 8 & B <= 8:
    print("Yay!")
else:
    print(":(")


A,B = map(int,input().split())
if A <= 8 and B <= 8:
    print("Yay!")
else:
    print(":(")


Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
import sys


def solve(a,b):
    if a >= 9 or b >= 9:
        return ':c'
    else:
        return 'yay!'

def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

import sys


def solve(a,b):
    if a >= 9 or b >= 9:
        return ':('
    else:
        return 'Yay!'

def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
D, N = map(int, input().split())
if N < 100:
    print(N * 100 ** D)
else:
    print(101 * 100 ** D)

a, b = map(int, input().split())
if a <= 8 and b <= 8:
  print("Yay!")
else:
  print(":(")

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A,B = map(int,input().split())

if (A <= 8 )and (B <= 8):
  print("Yey!")
else:
  print(":(")

A,B = map(int,input().split())

if A <= 8 and B <= 8:
  print("Yey!")
else:
  print(":(")

A,B = map(int,input().split())

if A <= 8 and B <= 8:
  print("Yay!")
else:
  print(":(")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
D,N=map(int,open(0).read().split());print((N+N//100)*(100**D))

A,B=map(int,open(0).read().split());print('Yay!' if A<=8 and B<=8 else ':(')

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A, B = map(int,input().split())

if A < 9 and b < 9:
        print('Yay!')
else:
        print(':(')

D, N = map(int,input().split())

n = 1

for i in range(1, D+1):
        n *= 100
if N == 100:
        N = 101
print(n * N)

A, B = map(int,input().split())

if A < 9 and B < 9:
        print('Yay!')
else:
        print(':(')

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A, B = list(map(int, input()))
if A<9 and B<9:
    print('Yay!')
else:
    print(':(')


A, B = list(map(int, input().split()))
if A<9 and B<9:
    print('Yay!')
else:
    print(':(')


Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a, b = map(int, input().split())
if a <= 8 or b <= 8:
  print("Yay!")
elif:
  print(":(")


a, b = map(int, input().split())
if a > 8 or b > 8:
  print(":(")
elif:
  print("Yay!")


a, b = map(int, input().split())
if a <= 8 and b <= 8:
  print("Yay!")
elif:
  print(":(")


a, b = int(input().split())
if a > 8 or b > 8:
  print(":(")
elif:
  print("Yay!")

a, b = map(int, input().split())
if a <= 8 and b <= 8:
  print("Yay!")
else:
  print(":(")


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
import numpy as np
d, n = list(map(int, input().split()))

print(pow(100, d)*n)

a, b = list(map(int, input().split()))

if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")


Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a,b=list(map(int,input().split()))
if a<=8 and b<=8:
  print('Yay!')
esle :
  print(':(')

a,b=list(map(int,input().split()))
if a<=8 and b<=8:
  print('Yay!')
else :
  print(':(')

Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
d,n = map(int,input().split())

if n == 100:
    a = 99
else:
    a = n

m = 100 ** d
print(a * m)

d,n = map(int,input().split())

if n == 100:
    a = 101
else:
    a = n

m = 100 ** d
print(a * m)

a,b = map(int,input().split())

if a > 8 or b > 8:
    print(':(')
else:
    print('Yay!')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A = int(input())
B = int(input())

if A <= 8 and B <= 8:
    print('Yay!')
else:
    print(':(')

A, B = map(int, input().split())

if A <= 8 and B <= 8:
    print('Yay!')
else:
    print(':(')

Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a, b = map(int, input().split())

if a <= 8 & b <= 8:
    print("Yay!")
else:
    print(":(")

a, b = map(int, input().split())
print(a, b)
if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")

a, b = map(int, input().split())
if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a = list(map(int,input()))
if a[0]<=8 and a[1]<=8:
  print("Yay!")
else:
  print(":(")

a = list(map(int,input()))
print("Yay!") if a[0]<=8 and a[1]<=8 else print(":(")

input()
print(sum([bin(i)[::-1].index('1') for i in map(int,input().split())]))

if max(map(int,input().split()))<=8:
  print("Yay!")
else:
  print(":(")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
#-*-coding:utf-8-*-

def main():
    
    A, B = map(int, input().split())

    if A > 8 or B > 8:
        print(':(')
    else:
        print('Yay')
    
if __name__ == '__main__':
    main()

#-*-coding:utf-8-*-

def main():
    
    A, B = map(int, input().split())

    if A > 8 or B > 8:
        print(':(')
    else:
        print('Yay!')
    
if __name__ == '__main__':
    main()

Verdicts: Wrong Answer

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a,b=map(int,input().split());print("Y:a(y !"[a>8or8<b::2])

a,b=map(int,input().split());print("Y:a(y !"[a>8 or 8<b::2])

Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A,B=map(int,input().split)
if A>8 or B>8:
  print(":(")
else:
  print("Yay!")

D,N=map(int,input()split())

if N<100:
  print(100**D*N)
else:
  print(100**D*101)


D,N=map(int.input()split())

if N<100:
  print(pow(100,D)*N)
else:
  print(pow(100,D)*101)

A,B=map(int,input().split)
if (A>8) or (B>8):
  print(":(")
else:
  print("Yay!")

D,N=map(int,input()split())

if N<100:
  print(pow(100,D)*N)
else:
  print(pow(100,D)*101)


A,B=map(int,input().split())
if (A>8) or (B>8):
  print(":(")
else:
  print("Yay!")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
A, B = map(int, input().split())

if a <= 8 and b <= 8:
  print('Yay!')
else:
  print(':(')


Copy
Copy
A, B = map(int, input().split())
 
if A <= 8 and B <= 8:
  print('Yay!')
else:
  print(':(')

A, B = map(int, input().split())
 
if A <= 8 and B <= 8:
  print('Yay!')
else:
  print(':(')

Verdicts: Runtime Error

Runtime Error

Accepted