Advertisement
Guest User

School Olympics

a guest
Oct 23rd, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. H=int(input())
  2. A=int(input())
  3. B=int(input())
  4. answer=H-A+B
  5. if answer>24:
  6. answer=answer-24
  7. if answer<0:
  8. answer=answer+24
  9. if answer==24:
  10. answer=0
  11. print(answer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement