Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # jogo de par ou impar
- # obi 2016
- # nivel junior f1
- # https://olimpiada.ic.unicamp.br/pratique/pj/2016/f1/jogo/
- p = int(input())
- a = int(input())
- b = int(input())
- if p == 0:
- if (a + b) % 2 == 0:
- print(0)
- else:
- print(1)
- else:
- if (a + b) % 2 == 0:
- print(1)
- else:
- print(0)
Advertisement
Add Comment
Please, Sign In to add comment