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):
n, m = map(int, input().split())
stu = []
check = []
for i in range(n):
    stu.append(list(map(int, input().split())))

for i in range(m):
    check.append(list(map(int, input().split())))


ans = []

for i in range(n):
    dist = []
    for j in range(m):
        tmp = abs(stu[i][0] - check[j][0]) + abs(stu[i][1] - check[j][1])
        dist.append(tmp)
    mi = dist.index(min(dist))
    ans.append(mi)


for i in range(len(ans)):
    print(ans[i] + 1)


n, m = map(int, input().split())
stu = []
check = []
for i in range(n):
    stu.append(list(map(int, input().split())))

for i in range(m):
    check.append(list(map(int, input().split())))


ans = []

for i in range(n):
    dist = []
    for j in range(m):
        tmp = abs(stu[i][0] - check[j][0]) + abs(stu[i][1] - check[j][1])
        dist.append(tmp)
    mi = dist.index(min(dist))
    ans.append(mi)


for i in range(len(ans)):
    print(ans[i] + 1)

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

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

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):
# -*- coding: utf-8 -*-

import sys
import os

N, M = list(map(int, input().split()))
students = []
checkpoints = []

for i in range(N):
    a, b = list(map(int, input().split()))
    students.append([a, b])

for i in range(M):
    a, b = list(map(int, input().split()))
    checkpoints.append([a, b])

for student in students:
    min_dist = float('inf')
    min_i = None
    for i, checkpoint in enumerate(checkpoints):
        manhattan_dist = abs(checkpoint[0] - student[0]) + abs(checkpoint[1] - student[1])
        if manhattan_dist < min_dist:
            min_dist = manhattan_dist
            min_i = i
    print(min_i + 1)


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

import sys
import os

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

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,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())

if (a + b) < 25:
  print(a + b)

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


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

if (a + b) < 25:
  print(a + b)

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

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,inpuy().split())
print((a+b)%24)

print((int(input())+int(input()))%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):
from itertools import combinations
N,A,B = [int(i) for i in input().split()]

v = [int(i) for i in input().split()]
v.sort()

if v[-A] != v[-A-1]:
    print(sum(v[-A:]) / A)
    print(1)
elif v[-1] :
    
    
    cnt = 0
    bigger = 0
    for i in range(N):
        if v[A] < v[i]:
            bigger += 1
        if v[i] == v[A]:
            cnt += 1

    ans = 0
    mini = min(B, cnt+bigger)
    for i in range(A,mini):
        ans += len(list(combinations(range(cnt), i - bigger)))

    print(sum(v[-A:]) / A)
    print(ans)

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

hour = (A + B) % 24

print(hour)

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())

printf((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):
if __name__ == "__main__":
    times = [int(time) for time in input().split()]
    print((A+B)%24)

if __name__ == "__main__":
    times = [int(time) for time in input().split()]
    A = times[0]
    B = times[1]
    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):
# -*- coding: utf-8 -*-


def main():
    a, b = [int(e) for e in input().split()]
    answer = (a + b) % 23
    return answer


print((main())


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


def main():
    a, b = [int(e) for e in input().split()]
    answer = (a + b) % 24
    return answer


print(main())


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):
a,b=map(int,input().split())
print(max(a+b,a+b-24)

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().split())

if a + b == 24:
    print(0)
else:
    print((a + b) // 24)

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

print((a + b) // 24)

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())
t=a+b
print(t if t>= 24 else t-24)

(t if t < 24 else t-24)

a,b=map(int,input().split())
t=a+b
print(t if t < 24 else t-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):
def ncr(x,y):
	ans=1
	q=x-y
	while x>y:
		ans*=x
		x=x-1
	
	while q>1:
		ans=ans/q
		q=q-1
	
	return ans

x=input().split()
n=int(x[0])
a=int(x[1])
b=int(x[2])
v=[0]*n
x = input().split()
ind=0
M={1:0}
M2={1:0}
for i in x:
	v[ind]=int(i)
	if int(i) in M:
		M[v[ind]]+=1
	else:
		M[v[ind]]=1
	ind+=1
v.sort(reverse=True)

cnt=0
ind=0
m=0
while cnt<a:
	cnt+=1
	m=((cnt-1)*m+v[ind])/cnt
	if v[ind] in M2:
		M2[v[ind]]+=1
	else:
		M2[v[ind]]=1
	ind+=1
while cnt<b:
	if (cnt*m+v[ind])/(cnt+1)<m-0.5:
		break
	else:
		cnt+=1;
		if v[ind] in M2:
			M2[v[ind]]+=1
		else:
			M2[v[ind]]=1
		ind+=1
print(m)
maxw=cnt;
ways=0;
for i in range(cnt,a-1,-1):
	if v[ind-1] not in M2:
			M2[v[ind]]=0
	if v[ind-1] not in M:
			M[v[ind-1]]=0
	ways+=ncr(M[v[ind-1]],M2[v[ind-1]])
	
	M2[v[ind-1]]-=1

print(int(ways))
	

x=input().split()
ans=int(x[0])+int(x[1])
print(int(ans%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=input()
a=a+b
if a-24>=0:
  print(a-24)
else:
  print(a)

a=input()
a=a.split(" ")
b=int(a[1])
a=int(a[0])
a=a+b
if a-24>=0:
  print(a-24)
else:
  print(a)

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+B)

lst = input().split(" ")
A =int(lst[0])
B =int(lst[1])
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 :
      ans=ans-24
      
    print(ans)

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

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

ans=a+b

if ans>=24
  ans=ans-24
  
print(ans)

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

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

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(24 % a + b)

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())
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().strip())
print((A+B)%24)

A,B = map(int, input().strip().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 = int(input())
B = int(input())
print((A+B)%24)

A,B=[int(i) for i 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())
if a + b > 23:
    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: 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())
sum = A+B

if sum >= 24:
    print(sum-24)
else:
    print(sum)

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

if sum >= 24:
    print(sum-24)
else:
    print(sum)

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 bisect

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

count=0
for i in range(N):
    a_cand = bisect.bisect_right(A,B[i]-1)
    c_cand = N-bisect.bisect_right(C,B[i])
    count += a_cand*c_cand
print(count)


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())

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((a+b)%24+1)

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):
import numpy as np
N, M = map(int, input().split())
list_coStu = []
list_coChe = []
for i in range(N):
    list_coStu.append(list(map(int, input().split())))
for i in range(M):
    list_coChe.append(list(map(int, input().split())))

#calc distance

for iS in range(len(list_coStu)):
    coStu = np.array(list_coStu[iS])
    min_iC = 0
    d = 4 * 10**8 + 1
    for iC in range(len(list_coChe)):
        coChe = np.array(list_coChe[iC])
        dif = coChe - coStu
        dist = np.sum(np.abs(dif))
        if dist < d:
            min_iC = iC
            d = dist
    print(min_iC + 1)


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):
def calcManhattanDistance(student, checkpoint):
    return abs(student[0] - checkpoint[0]) + abs(student[1] - checkpoint[1])


if __name__ == "__main__":
    # input process
    N, M = map(int, input().split())
    students = [list(map(int, input().split())) for i in range(N)]
    checkpoints = [list(map(int, input().split())) for i in range(M)]

    # calculation process
    for student in students:
        distance_list = []

        for checkpoint in checkpoints:
            distance_list.append(calcManhattanDistance(student, checkpoint))

        # print the first index(+1) of minimum value
        minval = min(distance_list)
        print(distance_list.index(minval) + 1)

    # END

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):
import math
n = int(input())
nn = int(math.sqrt(n))
for i in range(nn,0,-1):
    if n%i==0:
        print(len(str(n//i)))
        break


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+12)%24)

a,b=map(int,input().split())
print((a+b+12-12)%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())
student = [list(map(int, input().split())) for _ in range(N)]
cp = [list(map(int, input().split())) for _ in range(M)]

idou = []
for a, b in student:
  idousaki = -1
  nearest = 1000000000
  for i, x, y in enumerate(cp):
    d = abs(x-a) + abs(y-b)
    if d < nearest:
      nearest = d
      idousaki = i+1
      
  idou.append(idousaki)
  
for i in idou:
  print(i)


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())

if (24-A) >= 12:
    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: 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 = len(str(n))
for i in range(1, int(n**(1/2))+1):
  if n%i == 0:
    ans = min(ans, max(len(str(i)), len(str(n//i))))
print(ans)

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())
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().slipt())
print((A+B) % 24)

A, B = map(int, input().slipt())
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(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: 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,r=map(int,input().split())
print((n+r)//24)

n,r=map(int,input().split())
print((n+r)%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:
    print(A+B)
elif A == 0 and B == 0:
    print(0)
elif A != 0 and B==0:
    print(0)
elif A > B:
    print((A+B-24)

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):
l = map(int, raw_input().split())
print((l[0] + l[1]) % 24)

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

#include <stdio.h>

int abs(int j)
{
    return (j>0) ? j : -j;
}

int main()
{
    int N, M, i, j;
    int a[50], b[50], c[50], d[50],;
    int p[50] = {0};

    scanf("%d %d", &N, &M);
    
    for(i=0; i<N; i++)
    {
         scanf("%d %d", &a[i], &b[i]);
    }
    
    for(j=0; j<M; j++)
    {
         scanf("%d %d", &c[j], &d[j]);
    }
    
    for(i=0; i<N; i++)
    {
         for(j=0; j<M; j++)
         {
             if(abs(a[i] - c[j]) + abs(b[i] - d[j]) < abs(a[i] - c[p[i]]) + abs(b[i] - d[p[i]])
             {
                 p[i] = j;
             }
         }
         printf("%d\n", p[i]);
    }
}

L = [int(i) for i in input().split(' ')]
print((L[0] + L[1]) % 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(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 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

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**18

for i in range(1, int(N**0.5)+1):
    if N % i == 0:
        b = N//i
        ans = min(ans, max( len(str(i)),  len(str(b))))
print(ans)

A,B=map(int, input().split())
print(A+B) if (A+B) < 24 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(.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 = [for(i) for i in input().split()]
if A + B > 24:
  print(A + B -24)
else:
  print(A+B)

A,B = [int(i) for i in 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()
if a+b >= 24:
	print ((a + b) - 24)
else:
  	print (a + b)

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

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


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


a , b = input().split()

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


a , b = 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

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 = int(input()).split()

print((A+B)%24)

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

print((A+B)%24)

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

print((A+B)%24)

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):
print(eval(input().replace(" ","+"))%12)

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 = map(int.input().split())
c = a+b
if(c>=24):
  print(c-24):
else:
  print(c)

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


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

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 = input(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 = 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):
import math
N=int( input())
for r in range (int(math.sqrt(N)),0,-1):
  if N%r==0:
    count=1
    l=N/r
    for i in range (0,10):
      l=l/10
      if l<1:
        print(count)
        break
      count+=1
    break

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

n,m=list(map(int, input().split()))
print((n+m)%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) % 23)

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):
def digits(num):
    return len(str(num))

N = int(input())
min_d = digits(N)
for i in list(range(2, N, 1)):
    if (N % i == 0):
        min_d = min(digits(i), min_d)

print(min_d)


l = input().split()
A = l[0]
B = l[1]
C = int(A) + int(B)
time = C % 24

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(),split())
if a+b > 23:
  print(24-a+b)
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):
x, y= list(map(int, input().split()))
#a,b,c = list(input().split())
if x+y　< 24:
    print(x+y)
else:
    print(x+y-24)

x, y= list(map(int, input().split()))
#a,b,c = list(input().split())
if x+y < 24:
    print(x+y)
else:
    print(x+y-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
def digit(X):
    d = 0
    while X:
        X //= 10
        d += 1
    return d

def F(A, B):
    return max(digit(A), digit(B))

N = int(input())

min_F = 20
max_div = round(math.sqrt(N))
for i in range(1, max_div):
    if N % i == 0:
        f = F(i, N/i)
        if f < min_F:
            min_F = f
print(min_F)



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())
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)%24)


A B = map(int, input().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):
l = input().split()
A = l[0]
B = l[1]
T = A + B
if T < 24:
	print(T)
else:
	print(T-24)

l = input().split()
A = int(l[0])
B = int(l[1])

T = int(A + B)
if T < 24:
	print(T)
else:
	print(T - 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 = list(map(int, input().split()))
print(int((a[0] + a[1]) / 24))

a = list(map(int, input().split()))
print(int((a[0] + a[1]) % 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):
time_input = input()
time = time_input.split()

A = time[0]
B = time[1]

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

time_input = input()
time = time_input.split()

A = int(time[0])
B = int(time[1])

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().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)
else:
  print((A + B) - 24)

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

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):
A, B = 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

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(map, input().split())

h = a + b

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

a, b = map(int, input().split())
 
h = a + b
 
if h < 24:
  print(h)
else:
  print(h - 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):
N, M = list(map(int, input().split()))

a = []
c = []
for i in range(0, N + M):
    s = list(map(int, input().split()))
    if  i < N:
        a.append(s)
    else:
        c.append(s)

for i in range(0, N):
    min_idx = 0
    min_dis = 999999999999
    for j in range(0, M):
        dis = abs(a[i][0] - c[j][0]) + abs(a[i][1] - c[j][1])
        if min_dis > dis:
            min_dis = dis
            min_idx = j + 1
    print(str(min_idx))

N, S = list(map(int, input().split()))
s = N + S
if s >= 24:
    s = s - 24
print(str(s))

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(list(map(int, input().split())))//24)

print(sum(list(map(int, input().split())))%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):
def read_int_list():
    return list(int(i) for i in input().split())
x,y = read_int_list()
print((x+y)%12)

def read_int_list():
    return list(int(i) for i in input().split())
    
x,y = read_int_list()
print((x+y)%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())

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((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):
import sys
a = sys.stdin.readline()
a,b = a.strip().split(" ")
print((int(a)-int(b))/24)

print(A+B/24)

import sys
a = sys.stdin.readline()
a,b = a.strip().split(" ")
print((int(a)+int(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):
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):
N=int(input())
n=len(str(N))
m=(n//2)
def wari(x):
    array=[]
    if m==0:
        for j in range(9,0,-1):
            if N%j==0:
                c=max(len(str(N//j)),len(str(j)))
                array.append(c)
                break
        
    for i in range(m+1):
        if i==0:
            for j in range(9,0,-1):
                if N%j==0:
                    c=max(len(str(N//j)),len(str(j)))
                    array.append(c)
                    break
        else:
            for j in range((10**(i+1))-1,(10**i)-1,-1):
                if N%j==0:
                    c=max(len(str(N//j)),len(str(j)))
                    array.append(c)
                    break
    return min(array)
print(wari(N))

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 = int(input())
B = int(input())

ans1 = A + B


if ans1 >= 24:
    ans2 = ans1 - 24
    print(ans2)
else:
    print(ans1)
    
    
    

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

ans1 = A + B


if ans1 >= 24:
    ans2 = ans1 - 24
    print(ans2)
else:
    print(ans1)
    
    
    


Verdicts: Runtime Error

Accepted