Untitled
unknown
c_cpp
2 years ago
203 B
3
Indexable
using namespace std; #include <iostream> int main() { long long int n; cin >> n; if (n % 2 == 0) { cout << n / 2; } if (n % 2 != 0) { cout << (n / 2) - (((n / 2) * 2) + 1); } }
Editor is loading...
Leave a Comment