| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 331853 | pggp | Counting Mushrooms (IOI20_mushrooms) | C++14 | 262 ms | 492 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 <bits/stdc++.h>
#include "mushrooms.h"
using namespace std;
vector < bool > mushrooms;
int use_machine(vector < int > x);
int count_mushrooms(int n){
int res = 1;
for (int i = 1; i < n; ++i)
{
vector < int > v;
v.push_back(0);
v.push_back(i);
res += 1 - use_machine(v);
}
return res;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
