| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 9810 | effserv | Wiring (kriii2_W) | C++98 | 0 ms | 16712 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
/* 문제
*/
// 2014.
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <vector>
#include <queue>
#include <functional>
#include <cstring>
#include <string>
#include <map>
using namespace std;
long long Q[2000000];
map <long long, bool> M;
int main()
{
long long n;
scanf("%lld", &n);
Q[0] = 0;
int ans = 0;
if (n % 2)
{
printf("%lld\n", n / 2);
}
else
printf("%lld\n", n - 1);
return 0;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
