Submission #1210077

#TimeUsernameProblemLanguageResultExecution timeMemory
1210077That_SalamanderCounting Mushrooms (IOI20_mushrooms)C++20
10 / 100
50 ms404 KiB
#include "mushrooms.h"

using namespace std;

int count_mushrooms(int n) {
	int res = 1;

	for (int i = 1; i < n; i++) {
		if (use_machine({0, i}) == 0) {
			res++;
		}
	}

	return res;
}
#Verdict Execution timeMemoryGrader output
Fetching results...