Untitled

Anonymous
plain_text
11/16/2023 5:34 PM
204 B
15
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