Python3 代码
a, b, c, d = input().split()
a = eval(a)
b = eval(b)
c = eval(c)
d = eval(d)
if a == c and b == d:
print("O JOGO DUROU 24 HORA(S) E 0 MINUTO(S)")
else:
if a > c:
hours = 24 + c - a
else:
hours = c - a
if b > d:
if hours - 1 < 0:
hours = 23
minutes = 60 + d - b
else:
minutes = 60 + d - b
hours -= 1
else:
minutes = d - b
print("O JOGO DUROU",hours,"HORA(S) E",minutes,"MINUTO(S)")