# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
588327 | supercatex | Counting Mushrooms (IOI20_mushrooms) | C++14 | 112 ms | 324 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.
#include "mushrooms.h"
#include <bits/stdc++.h>
using namespace std;
int count_mushrooms(int n)
{
vector<int> a, b;
a.push_back(0);
int res = 1;
int i = 1;
while (i < n) {
if (i + 1 < n)
res += 2 - use_machine(vector<int>{i, 0, i + 1});
else
res += 1 - use_machine(vector<int>{i, 0});
i += 2;
}
return res;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |