← Back to List

24356번: ЧАСОВНИК ↗

Solutions

Python 3
112 B | 112 chars
t1,t2,m1,m2=map(int,input().split())
t = t1*60+t2
m = m1*60+m2
a = m-t

if a < 0:
  a += 1440

print(a, a // 30)