Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(open('china.in', 'r').readline())
- half = n // 2
- if n % 2 == 1:
- ans = half
- elif (half - 1) % 2 == 1:
- ans = half - 1
- else:
- ans = half - 2
- open('china.out', 'w').write(str(ans))
Advertisement
Add Comment
Please, Sign In to add comment