Untitled

 avatar
unknown
plain_text
a year ago
153 B
3
Indexable
#include <iostream>

using namespace std;

int main() {
	long long n;
	cin >> n;
	if (n % 2 == 0) cout << n / 2;
	else cout << -(n / 2 + 1);
}
Editor is loading...
Leave a Comment