Submission #9584

#TimeUsernameProblemLanguageResultExecution timeMemory
9584silasWiring (kriii2_W)C++98
4 / 4
0 ms1672 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...