This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <iostream>
#include <vector>
#include <string.h>
using namespace std;
int main() {
long long N;
cin >> N;
bool odd = true;
if (N % 2 == 0)
odd = false;
if (odd)
cout << N / 2 << endl;
else {
cout << N - 1 << endl;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |