Untitled

mail@pastecode.io avatar
unknown
plain_text
17 days ago
153 B
0
Indexable
Never
#include <iostream>

using namespace std;

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