Submission #1015560

# Submission time Handle Problem Language Result Execution time Memory
1015560 2024-07-06T14:07:09 Z jairRS Counting Mushrooms (IOI20_mushrooms) C++17
0 / 100
0 ms 344 KB
#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;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Answer is not correct.
2 Halted 0 ms 0 KB -