Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- if n % 2 == 0:
- print(int(n/2))
- else:
- print(int(-1*(n+1)/2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement