| n=1 | |
| while n: | |
| data = [int(x) for x in input().split()] | |
| if data[0]==0 and data[1]==0 and data[2]==0 and data[3]==0: | |
| break | |
| if data[0]> data[2] or (data[0]==data[2] and data[1]>data[3]): | |
| time = (60-data[1]) + (23-data[0]+data[2])*60 + data[3] | |
| else: | |
| time = (60-data[1]) + (data[2]-data[0]-1)*60 + data[3] | |
| print(time) | |
| del data[:] |
10 December 2017
uva 11677 - Alarm Clock
Subscribe to:
Post Comments (Atom)
-
/* ** Md. Nazmul Hasan Shahjalal University of Science & Technology,Sylhet. hasan08sust@gmail.com ** */ # include < iostream ...
-
from sys import stdin scan = lambda : stdin.readline() def gcd (a , b): if b== 0 : return a return gcd(b , a%b) while Tr...
No comments:
Post a Comment