Created
November 7, 2018 17:59
-
-
Save renuka-fernando/d47d812548fb5669786ee5ce7664a630 to your computer and use it in GitHub Desktop.
solution of clock delay for hackgen tool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
q = int(input()) | |
for i in range(q): | |
h1, m1, h2, m2 = map(int, input().split()) | |
k = int(input()) | |
delay = (h1 + k - h2) * 60 + m1 - m2 | |
print(delay) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment