# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
346046 | teehandsome | Counting Mushrooms (IOI20_mushrooms) | C++14 | 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 "mushrooms.h"
#include <bits/stdc++.h>
using namespace std;
int count_mushrooms(int n) {
int ans=1;
vector<int> temp;
for(int i=1;i<n;i++) {
temp.push_back(0); temp.push_back(i);
// int res=use_machine(temp);
// if(!res) ans++;
}
temp.push_back(0);
int res=use_machine(res);
int total=(2*(n-1));
int rem=total-res;
return ans/2;
}