Submission #604904

#TimeUsernameProblemLanguageResultExecution timeMemory
604904HamletPetrosyanCounting Mushrooms (IOI20_mushrooms)C++17
10 / 100
228 ms256 KiB
#include "mushrooms.h"
#include <vector>
using namespace std;

int count_mushrooms(int n) {
	vector<int> m;
	int ret = 1;
	m = {0, 0};
	for(int i = 1; i < n; i++){
		m[1] = i;
		ret += (use_machine(m) == 0);
	}
	return ret;
}
#Verdict Execution timeMemoryGrader output
Fetching results...