Submission #9307

#TimeUsernameProblemLanguageResultExecution timeMemory
9307ainu7Wiring (kriii2_W)C++98
4 / 4
0 ms1672 KiB
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <sstream>
#include <set>
using namespace std;

int main()
{
  long long N;
  cin >> N;
  if (N%2) N/=2; else N--;
  cout << N << endl;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...