Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Codeforces Round 486A
- #include <iostream>
- using namespace std;
- void funkc(long long int n)
- {
- if(n%2==0){cout << n/2;}
- else{cout << -(n+1)/2;}
- }
- int main()
- {
- long long int n;
- cin >> n;
- funkc(n);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement