TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
#!/usr/bin/env python3
# input
n, m = map(int, input().split())
persons = []
checks = []
for i in range(n):
    point = tuple(map(int, input().split()))
    persons.append(point)
for i in range(m):
    point = tuple(map(int, input().split()))
    checks.append(point)

# print(persons)
# print(checks)
    
def get_distance(person, check):
    return abs(person[0] - check[0]) + abs(person[1] - check[1])
    
for i in range(n):
    min_distance = 10 ** 10
    min_distance_point_num = -1

    # calculate min distance from n to each m
    for j in range(m):
        distance = get_distance(persons[i], checks[j])
        if distance < min_distance:
            min_distance = distance
            min_distance_point_num = j + 1

    print(min_distance_point_num)


#!/usr/bin/evn python3
# input
n, m = map(int, input().split())
persons = []
checks = []
for i in range(n):
    point = tuple(map(int, input().split()))
    persons.append(point)
for i in range(m):
    point = tuple(map(int, input().split()))
    checks.append(point)

# print(persons)
# print(checks)
    
def get_distance(person, check):
    return abs(person[0] - check[0]) + abs(person[1] - check[1])
    
for i in range(n):
    min_distance = 10 ** 10
    min_distance_point_num = -1

    # calculate min distance from n to each m
    for j in range(m):
        distance = get_distance(persons[i], checks[j])
        if distance < min_distance:
            min_distance = distance
            min_distance_point_num = j + 1

    print(min_distance_point_num)


#!/usr/bin/env python3
a, b = map(int, input().split())
print((a+b) % 24)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
A, B = map(int, input().split())
print(A+B -24*((A+B)//24) if A+B > =24 else A+B)

A, B = map(int, input().split())
print(A+B -24*((A+B)//24) if A+B >=24 else A+B)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
import math

def C(n, r):
	fact = math.factorial
	return fact(n) // fact(r) // fact(n-r)

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

v_sort = sorted(v, reverse=True)

print(sum(v_sort[:A])/A)

a, b = v_sort.count(v_sort[A-1]), v_sort[:A].count(v_sort[A-1])

if v_sort[0] == v_sort[A-1]:
	print(sum([C(a, r) for r in range(A, min(B, a)+1)]))
else:
	print(C(a, b))


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

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

output = (A + B)%24

print(output)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
import math
n = int(input())
nn = int(math.sqrt(n))
while n%nn != 0: nn-=1
ans = len(str(n/nn))
print(ans)

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

ans = (a+b)%24

print(ans)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b = map(int, input().split())
print(str((a+b)%24)+":00")

a,b = map(int, input().split())
print((a+b)%24,":00")

a,b = map(int, input().split())
print((a+b)%24)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

a,b=map(int, input().split())
print((a+b)%24)

Verdicts: Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
A,B = map(int,input().split())
ans = A + B - 24
print(ans)

A,B = map(int,input().split())
if A + B < 24:
  print(A + B)
else:
  print(A + B - 24)


Verdicts: Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
n, m = map(int,input().split())
students = [None]*n
points = [None]*m
students[i] = [tuple(map(int, input.split())) for _ in range(n)]
points[i] = [tuple(map(int, input.split())) for _ in range(m)]

ans = []
for s in students:
  tmp = []
  for p in points:
    tmp.append(abs(s[0] - p[0]) + abs(s[1] - p[1]))
  ans.append(tmp.index(min(tmp)) + 1)
for i in range(n):
  print(ans[i])


A, B = map(int, input().split())
r = (A + B) % 24
print(int(r))

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b=map(int,input().split())
if a+b≧24:
    print(a+b-24)
else:
    print(a+b)

a,b=map(int,input().split())
if (a+b≧24):
    print(a+b-24)
else:
    print(a+b)

a,b=map(int,input().split())
if (a+b>=24):
    print(a+b-24)
else:
    print(a+b)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
A,B=map(int,iput().split())
 
if A+B>=24:
  print(A+B-24)
else:
  print(A+B)

A,B=map(int,iput().splilt())

if A+B>=24:
  print(A+B-24)
else:
  print(A+B)

A,B=map(int,input().split())
 
if A+B>=24:
  print(A+B-24)
else:
  print(A+B)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
def main():
    A, B = tuple(map(int, raw_input().split(' ')))
    print('{}'.format((A+B)%24))


if __name__ == '__main__':
    main()



def main():
    A, B = raw_input()
    print('{}'.format((A+B)%24))


if __name__ == '__main__':
    main()


def main():
    A, B = raw_input().split(' ')
    print('{}'.format((A+B)%24))


if __name__ == '__main__':
    main()


import math

def main():
    N, M = tuple(map(int, input().split(' ')))
    man_list = []
    point_list = []
    for i in range(N):
        man_list.append(tuple(map(int, input().split(' '))))
    for i in range(M):
        point_list.append(tuple(map(int, input().split(' '))))

    result = []
    for i, man in enumerate(man_list):
        a, b = man
        min_ = float('inf')
        for j, point in enumerate(point_list):
            c, d = point
            v = abs(a-c)+ abs(b-d)
            if len(result) < i+1:
                min_ = v
                result.append(j+1)
                continue
            if v < min_:
                result[i] = j+1
                min_ = v


    for r in result:
        print('{}'.format(r))


if __name__ == '__main__':
    main()


def main():
    A, B = tuple(map(int, input().split(' ')))
    print('{}'.format((A+B)%24))


if __name__ == '__main__':
    main()


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b=map(int,input().split())
print(sum(a+b)%24)

print(sum(map(int,input().split()))%24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

a, b = map(int, input().split())
print((a + b)%24)

Verdicts: Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

print((A+B)//24)

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

print((A+B)%24)

Verdicts: Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
print((int(input())+int(input()))%24)

a, b = map(int, input().split())
print((a+b)%24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b = map(int,input())
ans = (a+b)%24
print(ans)

a,b = map(int,input().split())
ans = (a+b)%24
print(ans)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
n, m = map(int, input().split())
s = []
d = []
for i in range(n):
    x, y = map(int, input().split())
    s.append([x, y])
for i in range(m):
    x, y = map(int, input().split())
    d.append([x, y])
for i in s:
    a = m
    c = abs(i[0] - d[0][0]) + abs(i[1] - d[1][1])
    for j in range(1, m):
        c_t = abs(i[0] - d[j][0]) + abs(i[1] - d[j][1])
        if c_t < c:
            c = min(c, c_t)
            a = j
    print(a)


a, b = map(int, input().split())
if a + b >= 24:
    print(a + b - 24)
else:
    print(a + b)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a = sum([int(x) for x in input().split()])
while a < 24:
  a -= 24
print(a)

a = sum([int(x) for x in input().split()])
print(a) if a < 24 else print(a-24)

Verdicts: Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a, b = map(int, input().split())
 
if A+B>=24:
    print(A+B-24)
else:
    print(A+B)



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

if A+B=>24:
    print(A+B-24)
else:
    print(A+B)

A, B = map(int, input().split())
 
if A+B>=24:
    print(A+B-24)
else:
    print(A+B)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

a = []
b = []

for i in range(n):
    tmp1, tmp2 = list(map(int, input().split()))
    a.append(tmp1)
    b.append(tmp2)

c = []
d = []

for i in range(m):
    tmp1, tmp2 = list(map(int, input().split()))
    c.append(tmp1)
    d.append(tmp2)

for i in range(n):
    tmp = abs(a[n] - c[0]) + abs(b[n] - d[0])
    s = 1
    for j in range(m):
        tmp3 = abs(a[i] - c[j]) + abs(b[i] - d[j])
        if tmp3 < tmp:
            tmp = tmp3
            s = j + 1
    print(s)

tmp = input().split()
a, b = int(tmp[0]), int(tmp[1])

s = a + b

if s < 24:
    print(s)
else:
    print(s-24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
import math
N=int(input())
nmax = math.floor(math.sqrt(N))
Bdigimin = 10
for i in range(1,nmax):
	if N % i == 0:
		Bdigi = math.floor(math.log10(N/i))
		if Bdigimin > Bdigi:
			Bdigimin = Bdigi
print(int(Bdigimin+1))


import math
N=int(input())
nmax = math.floor(math.sqrt(N))
Bdigimin = 10
for i in range(1,nmax):
	if N % i == 0:
		Bdigi = math.floor(math.log10(N/i))
		if Bdigimin > Bdigi:
			Bdigimin = Bdigi
print(int(Bdigimin+1))


import math
N=int(input())
nmax = math.floor(math.sqrt(N))
Bdigimin = 10
for i in range(1,nmax):
	if N % i == 0:
		Bdigi = math.floor(math.log10(N/i))
		if Bdigimin > Bdigi:
			Bdigimin = Bdigi
print(int(Bdigimin+1))


import math
N=int(input())
if N==1:
	print(1)
else:
	nmax = math.ceil(math.sqrt(N))
	Bdigimin = 10
	for i in range(nmax):
		if N % (i+1) == 0:
			Bdigi = math.floor(math.log10(N/(i+1)))
			if Bdigimin > Bdigi:
				Bdigimin = Bdigi
	print(int(Bdigimin+1))


import math
N=int(input())
nmax = math.floor(math.sqrt(N))
Bdigimin = 10
for i in range(1,nmax):
	if N % i == 0:
		Bdigi = math.floor(math.log10(N/i))
		if Bdigimin > Bdigi:
			Bdigimin = Bdigi
print(int(Bdigimin+1))


import math
N=int(input())
nmax = math.floor(math.sqrt(N))
Bdigimax = 1
for i in range(1,nmax):
	if N % i == 0:
		Bdigi = math.floor(math.log10(N/i))
		if Bdigimax < Bdigi:
			Bdigimax = Bdigi
print(int(Bdigimax))
		

num = list(map(int, input().split()))
a = num[0] + num[1]
print(int(a%24))


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b = map(int,input().split())
if a+b =< 23:
    print(a+b)
else:
    print(a+b-24)


a,b = map(int,input().split())
if a+b <= 23:
    print(a+b)
else:
    print(a+b-24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a, b = map(int, input())
print((a+b)%24)

a, b = map(int, input().split())
print((a+b)%24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

if a+b>24:
    print((a+b)-24)
else:
    print(a+b)


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

if a+b>=24:
    print((a+b)-24)
else:
    print(a+b)


Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

ans = a+b

if ans > 24:
    ans -=24

print(ans)

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

ans = a+b

if ans > 23:
    ans = ans - 24

print(ans)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

a, b = map(int, input().split())
print((a+b) % 24 )

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
x=sum(list(map(int,input.split())))
if x>=24:
  x-=24
print(x)

x=sum(list(map(int,input().split())))
if x>=24:
  x-=24
print(x)


Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b=input().split()
sum=a+b
print(sum if sum<24 else sum-24)

a,b=map(int,input().split())
sum=a+b
print(sum if sum<24 else sum-24)


Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
n = int(input())
ele = []
i = 1
while i * i <= n:
    if n % i == 0:
        ele.append([len(str(i)),len(str(n // i))])
    i += 1

k = max(ele[0][1],ele[0][0])
for i in range(len(ele)):
    k = min(max(ele[i][0],ele[i][1]),k)
print(k)

a, b = map(int,input().split())
print((a+b)%24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

a,b = map(int,input().split())
print((a+b)%24)

Verdicts: Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a, b = map(int, inpput().split())
print((a + b) % 24)


a, b = map(it, inpput().split())
print((a + b) % 24)

a, b = map(int, input().split())
print((a + b) % 24)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b=map(int,input().split())
if a+b > 24:
  print('24-a-b')
else:
  print('a+b')

a,b=map(int,input().split())
if a+b >= 24:
  print('24-a-b')
else:
  print('a+b')

a,b=map(int,input().split())
if a+b >= 24:
  print((a+b)-24)
else:
  print(a+b)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

a,b=map(int,input().split())
print((a+b)%24)


Verdicts: Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
N = int(input())
ans = 10**10 
ans_ = 10**10

divisors = []
for i in range(1, int(N**0.5)+1):
    if N % i == 0:
        divisors.append(i)
        if i != N // i:
            divisors.append(N//i)
            if len(str(N//i))<=ans:
                ans =N//i
                ans_=i
            
if N ==1:
    ans =1
            
print(max(len(str(ans)),len(str(ans_))))

A,B=map(int,input().split())
time=A+B
if time>=24:
    print (time-24)
else:
    print (time)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b=map(int,input())
if a+b>=24:
    print(a+b-24)
else:
    print(a+b)

a,b=map(int,input().split())
if a+b>=24:
    print(a+b-24)
else:
    print(a+b)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b = map(int,input().splilt())
print((a + b) % 24)

a,b = map(int,input().split())
print((a + b) % 24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
print(sum(map(int,raw_input().split()))%24)

print(sum(map(int,input().split()))%24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

a, b = map(int, input().split())
print((a+b)%24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,m=map(int,input().split())
print((a+b)%24)

a,b=map(int,input().split())
print((a+b)%24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a, b = int(input().split())
print(a)
c = a + b
if c <= 24:
    print(c)
else:
    print(c - 24)

a, b = int(input().split())
c = a + b
if c <= 24:
    print(c)
else:
    print(c - 24)

a, b = map(int, input().split())
c = a + b
if c < 24:
    print(c)
else:
    print(c - 24)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
print(eval(input().replace(' ','+'))//24)

print(eval(input().replace(' ','+'))%24)

Verdicts: Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b = input().split()
if a == "H":
    print(b)
else:
    if b == "H":
        print("D")
    else:
        print("H")

a,b = map(int,input().split())
s = a + b
if s < 24:
    print(s)
else:
    print(s-24)

Verdicts: Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

a, b = map(int, input().split())
if a + b > 24:
    print(a + b - 24)
elif a + b == 24:
    print(0)
else:
    print(a + b)

Verdicts: Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
# -*- coding: utf-8 -*-
import math
N, A, B = map(int, input().split())
V = list(map(int, input().split()))
V.sort(reverse=True)
maxavg = sum(V[:A])/A
print(maxavg)
min = V[A-1]
ltAnum = 0
minnum = 0
for i in range(N):
    if V[i] > min:
        ltAnum = ltAnum + 1
    elif V[i] == min:
        minnum = minnum + 1
    else:
        break
#print(ltAnum)
#print(minnum)

import math
def nCr(n,r):
    f = math.factorial
    return f(n)//f(r)//f(n-r)

c_min = 0
import itertools
if ltAnum > 0:
    c_min = nCr(minnum, A-ltAnum)
if ltAnum == 0:
    for j in range(A, B+1):
        if minnum < j:
            break
        else:
            c_min = c_min + nCr(minnum, j)
print(c_min)


# -*- coding: utf-8 -*-
N, M = map(int, input().split())
students = []
checkpoints = []
for i in range(N):
    students.append(list(map(int, input().split())))
#print(students)
for i in range(M):
    checkpoints.append(list(map(int, input().split())))
#print(checkpoints)
for i in range(N):
    mincp = -1
    mindist = -1
    for j in range(M):
        dist = abs(students[i][0]-checkpoints[j][0]) + abs(students[i][1]-checkpoints[j][1])
        if mincp == -1:
            mincp = j
            mindist = dist
        else:
            if dist < mindist:
                mindist = dist
                mincp = j
    print("%d" % (mincp+1))


# -*- coding: utf-8 -*-
A, B = map(int, input().split())
print("%d" % ((A+B)%24))


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b=map(int,input())
print((a+b)%24)

a,b=map(int,input().split())
print((a+b)%24)


Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b=mp(int,input().split())
if a+b>24:
 print(a+b-24)
else:
 print(a+b)

a,b=map(int,input().split())
if a+b>23:
 print(a+b-24)
else:
 print(a+b)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

res = a+b
if res > 23
    print(res-24)
else:
    print(res)

a, b = (int(i) for i in input().split())
 
res = a+b
if res > 23:
    print(res-24)
else:
    print(res)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
#! coding: UTF-8
N,A,B = list(map(int,input().split(" ")))
V = list(map(int,input().split(" ")))
V.sort(reverse=True)
max_avr = sum(V[:A]) / A
a_num = V.count(V[A-1])
a_pos = V[:A].count(V[A-1])


import math
def nCr(n,r):
    f = math.factorial
    return f(n) // f(r) // f(n-r)

if V[0] == V[A-1]:
    cnt = sum(nCr(a_num,i) for i in range(A,min(B,a_num))) 
else:
    cnt = nCr(a_num,a_pos)
print("{0:.10f}".format(max_avr))
print(int(cnt))


#! coding: UTF-8
N,A,B = list(map(int,input().split(" ")))
V = list(map(int,input().split(" ")))
V.sort(reverse=True)
max_avr = sum(V[:A]) / A
a_num = V.count(V[A-1])
a_pos = V[:A].count(V[A-1])


import math
def nCr(n,r):
    f = math.factorial
    return f(n) // f(r) // f(n-r)

cnt = 0
if V[0] == V[A-1]:
    while a_pos <= B:
        cnt += nCr(a_num,a_pos)
        a_pos += 1
else:
    cnt = nCr(a_num,a_pos)
print("{0:.10f}".format(max_avr))
print(int(cnt))


data = list(map(int,input().split(" ")))
x = sum(data)
if x >= 24:
	print(x%24)
else:
    print(x)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b = map(int,input().split())
if a+b>24:
  print(a+b)
else:
  print(abs(b-a))

a,b = map(int,input().split())
if a+b<24:
  print(a+b)
elif a+b==24:
  print(0)
else:
  print(a+b-24)

Verdicts: Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b=map(int,input().split())
if a+b<24:
  print(a+b)
  else:
    print((a+b)%24)

a,b=map(int,input().split())
if a+b<24:
  print(a+b)
else:
  print((a+b)%24)


Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
from math import factorial

n, a, b = map(int, input().split(" "));
v = list(map(int, input().split(" ")))


def product(iterable):
    prod = 1
    for n in iterable:
        prod *= n
    return prod

def npr(n, r):
    return product(range(n - r + 1, n + 1))

def ncr(n, r):
    if r > n // 2:
        r = n - r
    return npr(n, r) // factorial(r)

v.sort();
revv=list(reversed(v))
print(sum(v[-a:])/a)

revpos=revv.index(v[-a]);
num=v.count(v[-a]);
ans=0;
for i in range(a-revpos, b-revpos+1):
    ans+=ncr(num, i);
print(ans);


a, b = map(int, input().split(" ");
print( (a+b) % 24)

import math;

n, m = map(int, input().split(" "));
ab = [];
for i in range(0, n):
    ab.append(input().split(" "));

cd = [];
for i in range(0, m):
    cd.append(input().split(" "));

for i in range(0, n):
    dist=9999999999999
    nearm=0;
    for j in range(0, m):
         dist2 = math.fabs(int(ab[i][0]) - int(cd[j][0])) + math.fabs(int(ab[i][1]) - int(cd[j][1]));
         if dist2 < dist:
            dist = dist2;
            nearm=j;
    print(nearm + 1);




a, b = map(int, input().split(" "));
print( (a+b) % 24);

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a, b = map(input().split())
print((a+b)%24)

a, b = map(int, input().split())
print((a+b)%24)


Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b=map(int,input().split());print(sum(a,b)%24)

a=map(int,input().split());print(sum(a)%24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
import math
N = int(input())
ans = 10

for i in reversed(range(1,int(math.sqrt(N)) + 1)):
    if N % i == 0:
        A = len(str(i))
        B = len(str(N //  i))
        print (N // i)
        ans = min(ans,max(A,B))

print(ans)


A,B = (map(int, input().split()))
print (A + B if A + B < 24 else A + B - 24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a=input().split()
print(abs(int(a[0])-int(a[1])))

a,b=map(int,input().split())
if a+b >= 24:
    print(a+b-24)
else:
    print(a+b)

Verdicts: Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b=map(int,input().split())
if a+b < 24:
print(a+b)
else : print(24-a-b)

a,b=map(int,input().split())
if a+b < 24:print(a+b)
else : print(abs(24-a-b))

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

A,B=map(int,input().split())
if A+B>=24:
    print(A+B-24)
else:
    print(A+B)


Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
def distance(p1,p2):
    return abs(p1[0]-p2[0])+abs(p1[1]-p2[1])

M,N=[int(x) for x in input().split()]

student=[]
check=[]
for i in range(0,M):
    a,b=[int(x) for x in input().split()]
    student.append((a,b))

for j in range(0,N):
    c,d=[int(x) for x in input().split()]
    check.append((c,d))


for i in range(0,M):
    dist=distance(student[i],check[N-1])
    num=N-1
    for j in range(0,N):
        k=N-j-1
        if dist>=distance(student[i],check[k]):
            dist=distance(student[i],check[k])
            num=k
    print(num+1)


A,B=[int(x) for x in input().split()]
print((A+B)%24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b = map(int, input().split())
 
ans = a + b
if ans < 24:
    print(s)
else:
    print(s - 24)

a,b = int(input().split())
ans = a + b
if ans > 24:
  print(ans - 24)
else:
  print(ans)

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

if ans < 24:
    print(ans)
else:
    print(ans - 24)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
import math
N = int(input())
ans = len(str(N))
for A in range(1, int(math.sqrt(N)) + 1):
	if N % A == 0:
		B = N // A
		ans = min(ans, max(len(str(A)), len(str(B))))
print(ans)

A, B = map(int, input().split())
if A + B > 24:
  print(A + B)
else:
  print(A + B - 24)

A, B = map(int, input().split())
if A + B < 24:
  print(A + B)
else:
  print(A + B - 24)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
print(eval(int,input().replace(" ","+"))%24)

print(sum(map(int,input().split()))%24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b = int(input())
print((a+b)%24)

a,b = map(int,input().split())
print((a+b)%24)


Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
print((int(input())+int(input()))%24)

a, b = [ int(v) for v in input().split() ]
print((a+b)%24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b = map(int,input().split())
print(a+b if a+b >= 24 else (a+b)-24)

a,b = map(int,input().split())
print(a+b if a+b < 24 else (a+b)-24)


Verdicts: Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

A,B=map(int,input().split())
print(int((A+B)%24))

Verdicts: Wrong Answer

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

b = a[0] + a[1]
if b > 24:
  b -= 24
print(b)

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

b = a[0] + a[1]
if b >= 24:
  b -= 24
print(b)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

A, B = map(int, input().split())
print((A + B) % 24)


Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
a,b = map(int,input().split())
print (a+b) if a+b >= 24 else print (a+b-24)


a,b = map(int,input().split())
print (a+b) if a+b >= 24 print (a+b-24)


a,b = map(int,input().split())
print (a+b) if a+b < 24 else print (a+b-24)


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

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

ab_list = []
cd_list = []

for i in range(N):
    ab = list(map(int, input().split()))
    ab_list.append(ab)

for i in range(M):
    cd = list(map(int, input().split()))
    cd_list.append(cd)

for a, b in ab_list:
    num = -1
    min_num = 10 ** 10 + 1
    count = 0
    for c, d in cd_list:
        count += 1
        distance = abs(a-c) + abs(b-d)
        if distance < min_num:
            min_num = distance
            num = count
    print(num)

A, B = map(int, input().split())
if A+B < 24:
   print(A+B)
else:
    print(A+B-24)

Verdicts: Runtime Error

Accepted
Problem: Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to as "21 o'clock".   The current time is A o'clock, and a contest will begin in exactly B hours. When will the contest begin? Answer in 24-hour time.

Submission attempts (in order):
S_list = list(map(int,input("入力：").split()))
ans = S_list[0] + S_list[1]
if  ans <24 :
    result = ans
else:
    result = ans - 24
print(result)

S_list = list(map(int,input().split()))
ans = S_list[0] + S_list[1]
if  ans <24 :
    result = ans
else:
    result = ans - 24
print(result)


Verdicts: Wrong Answer

Accepted