Submission #1015562

#TimeUsernameProblemLanguageResultExecution timeMemory
1015562jairRSCounting Mushrooms (IOI20_mushrooms)C++17
10 / 100
139 ms596 KiB
#include "mushrooms.h"
#include <iostream>
using namespace std;

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

	return ans + 1;
}
#Verdict Execution timeMemoryGrader output
Fetching results...