Submission #730098

#TimeUsernameProblemLanguageResultExecution timeMemory
730098danikoynovCounting Mushrooms (IOI20_mushrooms)C++14
10 / 100
224 ms336 KiB
#include "mushrooms.h"
#include<bits/stdc++.h>
using namespace std;

int count_mushrooms(int n) {

	int ans = 1;
    vector < int > vec;
    vec.push_back(0);
    for (int i = 1; i < n; i ++)
    {
        vec.push_back(i);
        ans = ans + (use_machine(vec) == 0);
        vec.pop_back();
    }
	return ans;
}
#Verdict Execution timeMemoryGrader output
Fetching results...