Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- H=int(input())
- A=int(input())
- B=int(input())
- answer=H-A+B
- if answer>24:
- answer=answer-24
- if answer<0:
- answer=answer+24
- if answer==24:
- answer=0
- print(answer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement