Advertisement
zakisu

Soal B 16-12-2019

Dec 16th, 2019
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. n = int(input())
  2. if n % 2 == 0:
  3. print(int(n/2))
  4. else:
  5. print(int(-1*(n+1)/2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement