Submission #604903

#TimeUsernameProblemLanguageResultExecution timeMemory
604903HamletPetrosyanCounting Mushrooms (IOI20_mushrooms)C++17
0 / 100
0 ms208 KiB
#include "mushrooms.h"
#include <vector>
using namespace std;

int count_mushrooms(int n) {
	vector<int> m;
	int ret = 0;
	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...