Submission #1292739

#TimeUsernameProblemLanguageResultExecution timeMemory
1292739SofiatpcCounting Mushrooms (IOI20_mushrooms)C++20
10 / 100
67 ms400 KiB
#include "mushrooms.h"
#include <bits/stdc++.h>

using namespace std;

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