Advertisement
rengetsu

Codeforces_486A

Jul 31st, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. //Codeforces Round 486A
  2. #include <iostream>
  3. using namespace std;
  4. void funkc(long long int n)
  5. {
  6.     if(n%2==0){cout << n/2;}
  7.     else{cout << -(n+1)/2;}
  8. }
  9. int main()
  10. {
  11.     long long int n;
  12.     cin >> n;
  13.     funkc(n);
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement