Submission #980716

#TimeUsernameProblemLanguageResultExecution timeMemory
980716Vedang1006Counting Mushrooms (IOI20_mushrooms)C++17
10 / 100
159 ms600 KiB
#include "mushrooms.h"
#include <bits/stdc++.h>

using namespace std;

int count_mushrooms(int n)
{
	int result = 1;
	for (int i = 1; i < n; i++)
	{
		vector<int> nums = {0, i};
		if (use_machine(nums) == 0) result += 1;
	}

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