# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
411614 | JUANDI321 | Counting Mushrooms (IOI20_mushrooms) | C++17 | 0 ms | 0 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 <iostream>
#include <vector>
using namespace std;
vector<int> x;
int count_mushrooms(int n)
{
long long A = 1, B = 0;
x.push_back(0);
for(int i = 1; i<n; i++)
{
x.push_back(i);
int p = use_machine(x);
if(p==0)A++;
x.pop_back();
}
return A;
}