Problem:


Score : 100 points

Problem Statement

Print the K-th element of the following sequence of length 32:

1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51

Constraints

1 \leq K \leq 32

All values in input are integers.

Input

Input is given from Standard Input in the following format:

K

Output

Print the K-th element.

Sample Input 1

6

Sample Output 1

2

The 6-th element is 2.

Sample Input 2

27

Sample Output 2

5

The 27-th element is 5.



Sample input:
6


Sample output:
2

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
if a + b >= c:
    print('No')
elif a**0.5+b**0.5-c**0.5 < 1e-100:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
alp = ["a","b","c","d","e","f","g","h","i","j"]
N = int(input())
ans_list = []
for i in range(N):
    ans_list.append([])
for i in range(N):
    if i == 0:
        ans_list[i].append(["a",1])
    else:
        for j in range(len(ans_list[i-1])):
            for l in range(ans_list[i-1][j][1]+1):
                temp = ans_list[i-1][j][0] + alp[l]
                if l == ans_list[i-1][j][1]:
                    chk = ans_list[i-1][j][1]+1
                else:
                    chk = ans_list[i-1][j][1]
                ans_list[i].append([temp,chk])
for i in range(len(ans_list[N-1])):
    print(ans_list[N-1][i][0])

Submission status: Runtime Error

Solution code:
from decimal import *

getcontext().prec = 20
a,b,c = map(int,input().split())
a = int(Decimal(a))
b = int(Decimal(b))
c = int(Decimal(c))
if a*b < 1/4 * (c-a-b)**2:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
import math
 
datas = input().split(" ")
 
a = int(datas[0])
b = int(datas[1])
c = int(datas[2])
 
if(math.sqrt(a)*math.sqrt(b)+a+b < c):
  print( "Yes" )
else:
  print( "No" )

Submission status: Runtime Error

Solution code:
arr=[1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]

K=input()
print(arr[int(K)])

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())

if c-a-b>=0:
    if 4*a*b<(c-a-b)**2:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Runtime Error

Solution code:
x, y = map(int, input().split())
a = x*y/2
if (x%2 != 0) and (y%2 != 0):
    a += 1
print(int(a))

Submission status: Runtime Error

Solution code:
k=int(input())
if k==4 or k==6 or k==9 or k==10 or k==14 or k==21 or k==22 or k==25 or k==26:
  print(2)
elif k==8 or k==12 or k==18 or k==20 or k==27:
  print(5)
elif k==16:
  print(14)
elif k==24:
  print(15)
elif k==32:
  print(51):
else:
  print(1)

Submission status: Runtime Error

Solution code:
# coding: utf-8
import math
H,W = list(map(int,input().split()))
ans = H/2
ans *= W
print(math.ceil(ans))

Submission status: Runtime Error

Solution code:
x, y = map(int, input().split())
a = x*y/2
if (x%2 != 1) and (y%2 != 1):
    a += 1
print(int(a))

Submission status: Runtime Error

Solution code:
a = int(input())
k = [5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
print(k[a-1])

Submission status: Runtime Error

Solution code:
def nroot(a, n, x=1.0, eps=1e-10000000000):
    while abs(a - x**n) > eps:
        x = ( (n-1)*x + a/(x**(n-1)) ) / n
    return x

a,b,c =map(int,input().split())
d=nroot(a,2)
e=nroot(b,2)
f=nroot(c,2)

if d+e<f:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
H,W =map(int,input().split())
if H==1 or W==1:
  print(1)
elif H%2==0:
  print(W*H//2)
else:
  if W%2==1:
    print(W*(H//2)+W//2+1)
  else:
    print(W*(H//2)+W//2)

Submission status: Runtime Error

Solution code:
from math import sqrt
a,b,c=map(int,input().split())
if sqrt(a)+sqrt(b)<sqrt(c):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
K = int(input())
list = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
print(list[K+1])

Submission status: Runtime Error

Solution code:
import math
H,W = input().split()
H=int(H)
W=int(W)
if H%2==0:
  ans=(H*W)/2
else:
  ans=((H-1)*W/2)+math.ceil(W/2)
  
print('{:.19g}'.format(ans))

Submission status: Runtime Error

Solution code:
while True:
    Lists = [1, 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
    x = int(input())
    print(Lists[x])

Submission status: Runtime Error

Solution code:
n = list(map(int,input().split()))

a = n[0]
aa = a*a
b = n[1]
bb = b*b
c = n[2]
cc = c*c

if aa+bb < cc :

	print("Yes")
  
else :

	print("No")

Submission status: Runtime Error

Solution code:
elements = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
K = raw_input()
th = K-1
print(elements[th])

Submission status: Runtime Error

Solution code:
elements = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
K = input()
th = K-1
print(elements[th])

Submission status: Runtime Error

Solution code:
import math
from decimal import *

a,b,c=map(Decimal,input().split())

A=math.sqrt(a)
B=math.sqrt(b)
C=math.sqrt(c)


if   A+B<C:
    print("Yes")
else :
    print("No")

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
 
if (c-a-b)<=0:
  import sys
  print("No")
  sys.exit()
if 4*a*b < (c-a-b)*(c-a-b):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())

N1 = min(H, W)
N2 = max(H, W)

if N1 % 2 == 0:
  count = (N1 * N2) // 2
else:
  count = (N1 * (N1 -1) + N1 + 1) // 2
  if (N2 - N1) % 2 == 0:
    count += (N1 * (N2 - N1)) // 2
  else:
    count += (N1 * (N2 - N1 - 1) + N1 - 1) // 2

print(count)

Submission status: Runtime Error

Solution code:
import numpy as np

a, b, c = map(int, input().split())
print("Yes" if np.sqrt(a) + np.sqrt(b) < np.sqrt(c) else "No")

Submission status: Runtime Error

Solution code:
import math
a, b, c = map(int, input().split())
root_ab = int(math.sqrt(a)) + int(math.sqrt(b))
root_c = int(math.sqrt(c))
if root_ab < root_c:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
import math
from decimal import *

a,b,c=map(Decimal,input().split())

A=math.sqrt(a)
B=math.sqrt(b)
C=math.sqrt(c)


if   A+B<C:
    print("Yes")
else :
    print("No")

Submission status: Runtime Error

Solution code:
def ceildiv(a, b):
    return -(-a // b)

h, w = map(int, input().split())

if (h==1 or w==1):
    print(1)
else:
    print(ceildiv(h,2)*ceildiv(w,2) + (ceildiv(h,2)-1)*(ceildiv(w,2)-1))

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())

x = c - b - a
if a * b * 4 < x * x:
	print("Yes")
else:
  	print("No")

Submission status: Runtime Error

Solution code:
def ceildiv(a, b):
    return -(-a // b)

int h, w = map(int, input().split())

if (h==1 or w==1):
    print(1)
else:
    print(ceildiv(h,2)*ceildiv(w,2) + (ceildiv(h,2)-1)*(ceildiv(w,2)-1))

Submission status: Runtime Error

Solution code:
h, w = map(int, input().split())
a=0
b=0
c=0
for i in range(h):
    if i%2==0:
        a=a+1
for j in range(w):
    if j%2==1:
        b=b+1
c=a+b
print(c)

Submission status: Runtime Error

Solution code:
x, y = map(int, input().split())
a = x*y/2
if not a%2 == 0:
    a += 1
print(int(a))

Submission status: Runtime Error

Solution code:
h, w = map(int, input().split())
res = 0
if w == 1 or h == 1:
  res = 1
elif h % 2 == 1:
  if w % 2 == 0:
    res = w//2 * (h//2) + w//2 * (h // 2 + 1)
  else:
    res = w//2 * (h//2) + (w//2 +1) * (h // 2 + 1) 
else:
    if w % 2 == 0:
      res = w * (h // 2)
    else:
      res = (w//2) * (h//2) + (w//2 + 1) * (h//2)
  
print(res)

Submission status: Runtime Error

Solution code:
h, w = map(int, input().split())

if w == 1 or h == 1:
  print(1)
  exit()

res = 0
if h % 2 == 1:
  if w % 2 == 0:
    res = w//2 * (h//2) + w//2 * (h // 2 + 1)
  else:
    res = w//2 * (h//2) + (w//2 +1) * (h // 2 + 1) 
else:
    if w % 2 == 0:
      res = w * (h // 2)
    else:
      res = (w//2) * (h//2) + (w//2 + 1) * (h//2)
  
print(res)

Submission status: Runtime Error

Solution code:
h,w=map(int,input().split())
cnt=0
 
if w%2==0:
  print((w//2)*h)
elif w%2!=0 and w!=1:
  if h%2==0:
    print(w*(h//2))
  else:
    print(w*((h-1)//2)+(w+1)//2)
elif w==1:
  print(1)

Submission status: Runtime Error

Solution code:
K = int(input())

l = "1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51".split(",")

A = [x.strip() for x in l]
print(l[K+1])

Submission status: Runtime Error

Solution code:
datas = input().split(" ")

h = int(datas[0])
w = int(datas[1])


if( h==1 ):
  print(1)
elif( w== 1):
  print(1)
elif( h % 2 == 0  and w % 2 == 0):
  print( h * w//2 )
elif( h % 2 == 0 ):
  print( (h * (w-1))//2 + h // 2  )
elif( w % 2 == 0):
  print( (w * (h-1))//2 + w // 2  )
else:
  print( ((h-1) * (w-1))//2 + (h-1) // 2 + w // 2 +1  )

Submission status: Runtime Error

Solution code:
a = [int(x) for x in input().split(" ")]
if a[1] <= 0:
  print(0)
  exit()
kisu = a[0] // 2 if a[0] % 2 == 0 else a[0] // 2 + 1
gusu = a[0] // 2
yokokisu = a[1] // 2 if a[1] % 2 == 0 else a[1] // 2 + 1
yokogusu = a[1] // 2
ans = kisu * yokokisu + gusu * yokogusu
print(ans)

Submission status: Runtime Error

Solution code:

H , W = input().split()
W = int(W)
H = int(H)
ans = int(0)

#Wが偶数なら(W//2)*H
#W.Hが奇数なら((W+1)//2)*((H+1)//2) + ((W - 1)//2*(H - 1)//2)
#Wが奇数Hが偶数(W+1)//2*(H//2) + ((W - 1)//2)*(H//2)

if(W == 1 or H == 1):
    ans = 1
elif(W%2 == 0):
    ans = (W//2)*H
elif(W%2 == 1 and H%2==1):
    ans = (((W+1)//2)*((H+1)//2)) + (((W - 1)//2)*((H - 1)//2))
elif(W%2 == 1 and H%2 ==0):
    ans = (((W+1)//2)*(H//2)) + (((W - 1)//2)*(H//2))
print(ans)

Submission status: Runtime Error

Solution code:
a, b, c = map(int,input().split())

if (a + b - c) * (a + b - c) > 4 * a * b:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
th = K-1
print(elements[th])

Submission status: Runtime Error

Solution code:
K = int(input())
list = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
F = K +1
print(list[F])

Submission status: Runtime Error

Solution code:
import math
N = list(map(int,input().strip().split()))
sqrtA = math.sqrt(N[0])
sqrtB = math.sqrt(N[1])
sqrtC = math.sqrt(N[2])
def fl(x):
    digits = 10
    form = '%.'+str(digits-1)+'e'
    return float((form % x))

if fl(sqrtA) + fl(sqrtB) < fl(sqrtC):
    print("Yes")
if fl(sqrtA) + fl(sqrtB) >= fl(sqrtC):
    print("No")

Submission status: Runtime Error

Solution code:
import math
a, b, c = map(int, input().split())
a_sqrt = math.sqrt(a)
b_sqrt = math.sqrt(b)
c_sqrt = math.sqrt(c)

a_sqrt = round(a_sqrt,-13)
b_sqrt = round(b_sqrt,-13)
c_sqrt = round(c_sqrt,-13)

if (a_sqrt+b_sqrt) < c_sqrt:
	print('Yes')
else:
	print('No')

Submission status: Runtime Error

Solution code:
elements = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
th = K-1
print(elements[th])

Submission status: Runtime Error

Solution code:
import math
a,b,c = list(map(int, input().split()))
if ((math.sqrt(a) + math.sqrt(b)) < math.sqrt(c)):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
from math import sqrt
from decimal import *

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

  getcontext().prec = 20
  
  a = int(Decimal(A).sqrt())
  b = int(Decimal(B).sqrt())
  c = int(Decimal(C).sqrt())

  if a + b < c:
    print('Yes')
  else:
    print('No')

if __name__ == "__main__":
  main()

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-

H, W = map(int, input().split())

if H%2 == 0:
    ans = H//2 * W

else:
    ans = ((H//2)+1)*W - (W//2)

print(ans)

Submission status: Runtime Error

Solution code:
h,w=map(int,(input().split()))
r=0
for i in range(h):
    if i % 2 == 0:
        r+=(w+1)//2
    else:
        r+= w//2
print(r)

Submission status: Runtime Error

Solution code:
h, w = input().split()
n = int(h) * int(w)
a = n//2
if h==1 or w==1:
  print(1)
  
elif n%2==1:
  print(a+1)
  
else:
  print(a)

Submission status: Runtime Error

Solution code:
d = input().split(' ')
a = int(d[0])
b = int(d[1])
c = int(d[2])
s = c**0.5 - ((a**0.5) + (b**0.5))
if(s > 0):
  print("Yes")
else:
  print("No)

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())

if a**0.5+b**0.5<c**0.5:
  print ('Yes')
else:
  print ('No')

Submission status: Runtime Error

Solution code:
d = input().split(' ')
a = int(d[0])
b = int(d[1])
c = int(d[2])
s = c**0.5 - ((a**0.5) + (b**0.5))
if(s > 0):
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
A  = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]


K  = input()
k = int(K)

print(A[k+1])

Submission status: Runtime Error

Solution code:
import math
d = input().split(' ')
a = int(d[0])
b = int(d[1])
c = int(d[2])
s = c**0.5 - ((a**0.5) + (b**0.5))
if(s > 0):
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
import math
a, b, c = map(int, input().split())

if (4 * math.sqrt(a * b)) < (c - a - b):
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
K = int(input())
W = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
K = k + 1
print(W[K])

Submission status: Runtime Error

Solution code:
x=list(map(int,input().split()))
y=int(input())
print(x)

Submission status: Runtime Error

Solution code:
import math
a, b, c = map(int, input().split())

if 4 * math.sqrt(a * b) < c - a - b:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
line = raw_input()
#print(line)
line = line.split(' ')
a = int(line[0])
b = int(line[1])

x = (a + 1) // 2
y = a // 2

print(x * ((b + 1) // 2) + y * (b // 2))

Submission status: Runtime Error

Solution code:
K = int(input())
R = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]

print(R[K])

Submission status: Runtime Error

Solution code:
import math
HW = input().split()
H = int(HW[0])
W = int(HW[1])
print(math.ceil(H*W/2))

Submission status: Runtime Error

Solution code:
H,W = map(int, input().split())


h = 0
w = 0
w1 = w2 = 0
if W % 2 == 1:#横が奇数
    w = int(W /2) + 1
    if H % 2 == 1:#縦が奇数
        h = int(H / 2) + 1
        w1 = h * w
        w2 = (w-1) * (h-1)
        print(w1 + w2)
    else:#縦が偶数
        h = int(H / 2)
        w1 = w * h
        w2 = (w-1) * h
        print(w1 + w2)
        
        
else:#横が偶数
    w = int(W / 2)
    print(w * H)

Submission status: Runtime Error

Solution code:
import math
 
h,w = list(map(int, input().split()))
 
 
 
if h%2==1 and w%2==1:
 
    a = (h//2) * w
    b = math.ceil(w/2)

 
    print(a+b)
else:
 
    print(h*w//2)

Submission status: Runtime Error

Solution code:
import math
HW = input().split()
H = int(HW[0])
W = int(HW[1])
print(math.ceil(H*W/2))

Submission status: Runtime Error

Solution code:
elements = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
th = K-1
print(elements[th])

Submission status: Runtime Error

Solution code:
value = input().split()
rows = int(value[0])
colmuns = int(value[1])
OddColNum = colmuns // 2 
EvenColNum = OddColNum
if (colmuns % 2) != 0:
  OddColNum = OddColNum + 1
if (colmuns == 1):
  OddColNum = 1

OddRowCount = rows // 2
EvenRowCount = rows // 2
if (OddRowCount % 2) != 0 and rows != 1:
  OddRowCount = OddRowCount + 1
if (rows == 1):
  OddRowCount = 1

print(OddColNum)
print(EvenColNum)
print(OddRowCount)
print(EvenRowCount)
counts = OddRowCount * OddColNum + EvenColNum * EvenRowCount
print(counts)

Submission status: Runtime Error

Solution code:
K -= 1
for i, val in enumerate(elements):
    if i is K:
        print(val)
        break

Submission status: Runtime Error

Solution code:
1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51

for i, val in enumerate(elements):
    if i is K:
        print(val)
        break

Submission status: Runtime Error

Solution code:
import math
HW = input().split()
H = int(HW[0])
W = int(HW[1])
print(math.ceil(H*W/2))

Submission status: Runtime Error

Solution code:
a, b, c = map(float, input().split())

if 4 * a * b < (c - a - b) ** 2:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
H,W = map(int,input().split())
if H%2 != 0:
  H= H+1
if W%2 != 0:
  W=W+1
print(int(H*W/2))

Submission status: Runtime Error

Solution code:
import math
a, b = map(int,input().split())
min = math.floor(a / 0.08)
max = math.ceil((a+1)/0.08)
ans = 0
for i in range(min, max):
    if math.floor(i * 0.08) == a and math.floor(i*0.1) == b:
        ans = i
        break
if ans == 0:
    print("-1")
else:
    print(ans)

Submission status: Runtime Error

Solution code:
import math
a,b,c = map(int, input().split())

if(a>=c or b>=c):
  print("No")
else:
  r=round(math.sqrt(a),1000000000) + round(math.sqrt(b),1000000000)
  s=round(math.sqrt(c),1000000000)

  if(r<s):
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
k = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
print(k[input()-1])

Submission status: Runtime Error

Solution code:
import math
a, b, c =map(int, input().split())
r = (c - a - b)/2
l = a * b
if r <= 0:
    print('No')
    exit()
ans = l*l < r * r

print('Yes' if ans else 'No')

Submission status: Runtime Error

Solution code:
from math import sqrt
a,b,c =(map(int,input().split()))
left = a+ b + 2*sqrt(a*b)
right = c
if left < right:
    print('Yes')
else :
    print('No')

Submission status: Runtime Error

Solution code:
import math

def A():
    a=int(input())
    b=int(input())
    c=int(input())
    A=math.sqrt(a)
    B=math.sqrt(b)
    C=math.sqrt(c)
    if A+B<C:
        print("Yes")
    else:
        print("No")

if __name__=='__main__':
    A()

Submission status: Runtime Error

Solution code:
a,b,c = map(float,input().split())

if ((a**0.5) + (b**0.5))<(c**0.5):
  print("Yes")
else:
  print('No')

Submission status: Runtime Error

Solution code:
import math

def A():
    a=int(input())
    b=int(input())
    c=int(input())
    A=math.sqrt(a)
    B=math.sqrt(b)
    C=math.sqrt(c)
    if A+B<C:
        print("Yes")
    else:
        print("No")

if __init__=='__main__':
    A()

Submission status: Runtime Error

Solution code:
l = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
k = int (input())
 
print(l[k+1])

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
if (c-a-b)**2 > 4*a*b:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
list = [1,1,1,2,1,2,1,5,2,2,1,5,1,2,1,14,1,5,1,5,2,2,1,15,2,2,5,4,1,4,1,51]
firstInputText = input()
print(textList[int(firstInputText) - 1])

Submission status: Runtime Error

Solution code:
k = int(i) for i in input().split()
l = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
print(l[k])

Submission status: Runtime Error

Solution code:
from math import sqrt

a, b, c = map(int, input().split())
A = sqrt(c) - (sqrt(a) + sqrt(b))
B = 0.0

if abs(A - B) <= max(1e-09 * max(abs(A), abs(B)), 0.0):

    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
test_list=[1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
index=int(input())
print(test_list[index]+1)

Submission status: Runtime Error

Solution code:
H,W=map(int,input().split())
if (H*W)%2==0:
    B=int((H*W)/2)
    print (B)
else:
    if (H+W)%2==0:
        C=int((H*W+1)/2)
        print (C)
    else:
        D=int((H*W-1)/2)
        print(D)

Submission status: Runtime Error

Solution code:
x = int(input())
x_list = 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51
print(y[x])

Submission status: Runtime Error

Solution code:
arr = input().split()
h=int(arr[0])
w=int(arr[1])

if w%2!=0:
    if h%2!=0:
        ans=(w+1)//2*(h+1)//2+(w-1)//2*(h-1)//2
    else:
        ans=(w+1)//2*h//2+(w-1)//2*h//2
else:
    ans=w//2*h
print(ans)

Submission status: Runtime Error

Solution code:
test_list=[1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
index=int(input())
print(test_list[index])

Submission status: Runtime Error

Solution code:
i = list(map(int, input().split()))
HH = i[0]
WW = i[1]
atai = HH*WW
amari=divmod(atai,2)
ans = int(atai/2) + amari[1]
print (ans)

Submission status: Runtime Error

Solution code:
[H,W]=map(int,input().split())
if (H*W)%2==0:
    B=int((H*W)/2)
    print (B)
else:
    if (H+W)%2==0:
        C=int((H*W+1)/2)
        print (C)
    else:
        D=int((H*W-1)/2)
        print(D)

Submission status: Runtime Error

Solution code:
l = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
k = int (input())

print(l[k])

Submission status: Runtime Error

Solution code:
i = list(map(int, input().split()))
HH = i[0]
WW = i[1]
atai = HH*WW
#ans = int(atai/2) + (atai % 2)
amari=divmod(atai,2)
ans = int(atai/2) + amari[1]
print (ans)

Submission status: Runtime Error

Solution code:
import sys
import math
import numpy as np
a = list(map(np.float128,input().split()))
if(np.sqrt(a[0]) + np.sqrt(a[1]) < np.sqrt(a[2])):print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
import math
h, w = map(int, input().split())

if h == 1 or w == 1:
  print(1)
elif h % 2 == 0 or w % 2 ==0:
  print(int((h * w) // 2))
else:
  print(int(math.ceil((h * w) // 2)))

Submission status: Runtime Error

Solution code:
my_list = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
K = input()
K = int(K)
print(my_list[K])

Submission status: Runtime Error

Solution code:
import math
a,b,c=map(int,input().split())
print("Yes" if math.sqrt(a)+math.sqrt(b)<math.sqrt(c) else "No")

Submission status: Runtime Error

Solution code:
text = "1,1,1,2,1,2,1,5,2,2,1,5,1,2,1,14,1,5,1,5,2,2,1,15,2,2,5,4,1,4,1,51"
textList = text.split(",")
firstInputText = input()
print(textList[int(firstInputText) - 1])
secondInputText = input()
print(textList[int(secondInputText) - 1])

Submission status: Runtime Error

Solution code:
K =int(input())
A =[1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
print(A[K])

Submission status: Runtime Error

Solution code:
list_1 = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
k = int(input())
print(list_1[k])

Submission status: Runtime Error

Solution code:
a = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
index = input()
print(a[index-1])

Submission status: Runtime Error

Solution code:
import math
in_list = list(input().split())
a = float(in_list[0])
b = float(in_list[1])
c = float(in_list[2])
if (math.sqrt(a) + math.sqrt(b)) < math.sqrt(c):
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
a = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
k = int(input())
print(a[k])

Submission status: Runtime Error

Solution code:
[H,W]=map(int,input().split())
if (H*W)%2==0:
    print (int((H*W)/2))
else:
    if (H+W)%2==0:
        print (int((H*W+1)/2))
    else:
        print(int((H*W-1)/2))

Submission status: Runtime Error

Solution code:
number = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
 
print(number[K-1])

Submission status: Runtime Error

Solution code:
elements = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]

th = K-1
print(elements[th])

Submission status: Runtime Error

Solution code:
import math
a,b,c=input().split();
if (math.sqrt(float(a)) + math.sqrt(float(b))) <= math.sqrt(float(c)):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
l = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
k = input()
println(l[k])

Submission status: Runtime Error

Solution code:
my_list = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
N = input()
N = int(N)
print(my_list[N])

Submission status: Runtime Error

Solution code:
from math import sqrt
a, b, c = map(int,input().split())
if 4*a*b < (c - a - b)**2: print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
from decimal import *
a,b,c=map(int,input().split())
a=Decimal(a)
b=Decimal(b)
c=Decimal(c)
if a.sqrt() + b.sqrt()< c.sqrt():
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
# coding: utf-8
word=[1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
n = int(input())
print(word[n])

Submission status: Runtime Error

Solution code:
K = input()
list = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
print(list[K+1])

Submission status: Runtime Error

Solution code:
a = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
index = int(input().split())
print(a[index-1])

Submission status: Runtime Error

Solution code:
number = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
 
print(number[k-1])

Submission status: Runtime Error

Solution code:
import math
a,b,c=input().split();
if math.sqrt(float(a) + float(b)) < math.sqrt(float(c)):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
h, w = map(int, input().split())

if h * w % 2 == 0:
    ans = h * w / 2
else:
    ans = h * w // 2 + 1

if h == 1 or w == 1:
    ans = 1

print(int(ans))

Submission status: Runtime Error

Solution code:
K = input()
list = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
print(list[K])

Submission status: Runtime Error

Solution code:
H , W = map(int, input().split())
S = H * W

if S % 2 == 0:
    print(S//2)
else:
    print(S//2+1)

Submission status: Runtime Error

Solution code:
h, W = map(int,input().split())
if h % 2 != 0:
    if W % 2 != 0:
        ans = ((h-1)*W//2)+(W//2+1)
else:
    ans = (h*W)//2
print(ans)

Submission status: Runtime Error

Solution code:
elements = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]

if K < 16:
    th = K-1
    print(elements[th])
else:
    th = -(32-K)-1
    print(elements[th])

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3 ## -*- python -*-
import math

t = input().split()
a = int(t[0])
b = int(t[1])
c = int(t[2])

ans = "No"
if math.sqrt(a)+math.sqrt(b) < math.sqrt(c):
    ans = "Yes"
print(ans)

Submission status: Runtime Error

Solution code:
k[]={1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}
s=input()
print(k[s-1])

Submission status: Runtime Error

Solution code:
h,w=map(int,input().split())
if (h==1 and w!=1) or (h!=1 and w==1):
    print(1)
else:
    m=h*w
    print((m+2-1)//2)

Submission status: Runtime Error

Solution code:
import math
a,b,c = map(int, input().split())

ans = 'No'

ans = 'Yes' if a+b+2*math.sqrt(a*b)<c else ans
print(ans)

Submission status: Runtime Error

Solution code:
[a,b,c]=[int(inp) for inp in input().split()]
if (c - a - b) ** 2 - 4 * a * b > 0:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
# coding: utf-8

h, w = map(int, input().split())

m = (h * w)

if m % 2 == 0:
    print(int(m / 2))
else:
    print(int(m / 2) + 1)

Submission status: Runtime Error

Solution code:
import math

h,w = list(map(int,input().split()))
x = (h*w)
if h ==1 or h == 1:
	print(1)
else:
	y = int(x /2)
	if x%2 == 0:
		print(y)
	else:
		print(y+1)

Submission status: Runtime Error

Solution code:
Input_list = list(input())

print(Input_list[int(input())-1])

Submission status: Runtime Error

Solution code:
n = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
 
print(n[k-1])

Submission status: Runtime Error

Solution code:
n, m = map(int, input().split())
if n == 1 or m == 1:
    print(1)
else:
    r = (n * m) // 2
    if (n * m) % 2 == 0:
        print(r)
    else:
        print(r+1)

Submission status: Runtime Error

Solution code:
import math
a,b,c=map(int, input().split()) 
if a < 0 or b < 0 or c < 0:
  print('Yes')
else:
  if (math.sqrt(a) + math.sqrt(b)) < math.sqrt(c):
    print('Yes')
  else:
    print('No')

Submission status: Runtime Error

Solution code:
import math

s = input().split()

a = int(s[0])
b = int(s[1])
c = int(s[2])

if math.sqrt(a) + math.sqrt(b) < math.sqrt(c) :
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
a = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
b = int(input())
print(a[b])

Submission status: Runtime Error

Solution code:
import math

s = input().split()

a = int(s[0])
b = int(s[1])
c = int(s[2])

if math.sqrt(a) + math.sqrt(b) < math.sqrt(c) :
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
import math

s = input().split()

a = int(s[0])
b = int(s[1])
c = int(s[2])

if math.sqrt(a) + math.sqrt(b) < math.sqrt(c) :
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
K = input()
x = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
print(x[K-1])

Submission status: Runtime Error

Solution code:
import math

s = input().split()

a = int(s[0])
b = int(s[1])
c = int(s[2])

if (a + b + 2* math.sqrt(a*b) ) < c :
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
num = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
a = int(input())
print(num[a])

Submission status: Runtime Error

Solution code:
elements = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]

if K < 16:
    print(elements[K-1])
else:
    print(elements[-(32-K)-1])

Submission status: Runtime Error

Solution code:
K = int(input())
arr = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]

print(arr[K])

Submission status: Runtime Error

Solution code:
import random
list = []
for i in range(31):
  list.append(random.randint(0,10000))
K = int(input())
print(list[K-1])

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
if 4 * a * b < (c - a - b) * (c - a - b):
	print("Yes")
else:
	print("No")

Submission status: Runtime Error

Solution code:
import random
list = []
for i in range(31):
  list.append(random.randint(0,10000))
print(list)
K = int(input())
print(list[K-1])

Submission status: Runtime Error

Solution code:
array = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
k = int(input())
print(str(array[k + 1]))

Submission status: Runtime Error

Solution code:
from math import sqrt
a, b, c = map(int,input().split())
if a + b + 2*sqrt(a*b) < c: print("Yes")
else: print("No")