Submission #306079

#TimeUsernameProblemLanguageResultExecution timeMemory
306079loliconCounting Mushrooms (IOI20_mushrooms)C++14
10 / 100
326 ms384 KiB
#include <bits/stdc++.h>
#include "mushrooms.h"
using namespace std;

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