# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
346067 | ChampInMyThought | Counting Mushrooms (IOI20_mushrooms) | C++17 | 0 ms | 364 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"
int count_mushrooms(int n) {
using namespace std;
int answer = n;
for(int a=0;a<n;a+=90)
{
vector<int> m={};
for(int i=1;i<=90 && a+i<n;i++)
{
m.push_back(a+i);
m.push_back(0);
}
int result = use_machine(m);
answer -= (result/2 + result%2);
}
return answer;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |