Skip to content

Instantly share code, notes, and snippets.

@renuka-fernando
Created November 7, 2018 17:59
Show Gist options
  • Save renuka-fernando/d47d812548fb5669786ee5ce7664a630 to your computer and use it in GitHub Desktop.
Save renuka-fernando/d47d812548fb5669786ee5ce7664a630 to your computer and use it in GitHub Desktop.
solution of clock delay for hackgen tool
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