SHARE
TWEET

School Olympics

a guest Oct 23rd, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top