Problem:
 Score : 100 points    Problem Statement 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.      Constraints  0 \leq A,B \leq 23  A and B are integers.         Input The input is given from Standard Input in the following format:  A  B       Output Print the hour of the starting time of the contest in 24-hour time.        Sample Input 1 9 12      Sample Output 1 21  In this input, the current time is 9 o'clock, and 12 hours later it will be 21 o'clock in 24-hour time.       Sample Input 2 19 0      Sample Output 2 19  The contest has just started.       Sample Input 3 23 2      Sample Output 3 1  The contest will begin at 1 o'clock the next day.

Solution (Python):
import sys

def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline

def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    input_raw = read_func()
    top_str = input_raw.strip().split()
    [A, B] = [int(top_str[0]), int(top_str[1])]
    T = (A + B) % 24
    print T

if __name__ == '__main__':
    main()

Solution (Python):


import sys

def main(argv):
    for line in sys.stdin:
        a, b = map(lambda x: int(x), line.split(" ", 2))
        print (a + b) % 24

if __name__ == "__main__":
    main(sys.argv)

Solution (Python):
if __name__ == '__main__':
    a, b = map(int, input().split())
    diff = (a + b) % 24
    print(diff)

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

hour = (A + B) % 24

print(hour)

Solution (Python):
A,B = map(int,input().split())
C = (A + B) % 24
print(C)

Solution (Python):
b = input()
[c,d] =b.split()
print((int(c)+int(d))%24)

Solution (Python):
a, b = map(int, raw_input().split())
print (a + b) % 24

Solution (Python):
[a,b]=[int(i) for i in input().split()]
print((a+b)%24)

Solution (Python):
from sys import stdin
a,b = map(int,stdin.readline().split())
print (a+b)%24

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

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

ans = (A + B) % 24

print(ans)

Solution (Python):
def remtime(inStr):
	[now, diff] = inStr.split()
	print((int(now) + int(diff)) % 24)

remtime(input())

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

ans = (a+b)%24

print(ans)

Solution (Python):
if __name__ == '__main__':
    a,b = map(int, input().split())
    print ((a + b) % 24)

Solution (Python):
A, B = map(int, raw_input().split())
print (A+B)%24

Solution (Python):

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

Solution (Python):

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

c = (a+b)%24
print(c)

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

Solution (Python):
ab = list(map(int, input().split()))

A = ab[0]
B = ab[1]

C = A+B
if C >= 24:
    C -= 24

print(C)

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

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

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

Solution (Python):
a,b=[int(i) for i in input().split()]
if a+b>=24:
    print(a+b-24)
else : print(a+b)

Solution (Python):
a,b=map(int,raw_input().split())
print (a+b)%24

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

Solution (Python):
print sum(map(int, raw_input().split()))%24

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

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

Solution (Python):
[a, b] = map(int,  input().split())
print((a + b) % 24)

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

print((a + b) % 24)

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

A+=B
if A>=24:
	A-=24

print(A)

Solution (Python):
A, B = map(int, raw_input().split())

print (A + B) % 24

Solution (Python):
a,b = map(int,input().split(' '))
print((a+b)%24)

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

ans = (A + B) % 24
print(ans)

Solution (Python):
a, b = map(int, raw_input().split())

print (a+b)%24

Solution (Python):
a,b=map(int,raw_input().split())
print (a+b)%24

Solution (Python):
A, B = map(int, raw_input().split())
print (A + B) % 24

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

Solution (Python):
a, b = map(int, raw_input().split())
print (a + b) % 24

Solution (Python):
a, b = map(int, raw_input().split())
print (a+b)%24

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()


def main():
    a,b = LI()

    return (a+b)%24



print(main())

Solution (Python):
import sys

stdin = sys.stdin


def na(): return map(int, stdin.readline().split())


def ns(): return stdin.readline().strip()


a,b = na()
print((a+b)%24)