Submission #977478

# Submission time Handle Problem Language Result Execution time Memory
977478 2024-05-08T03:58:31 Z HappyCapybara Counting Mushrooms (IOI20_mushrooms) C++17
0 / 100
0 ms 344 KB
#include "mushrooms.h"
#include<bits/stdc++.h>
using namespace std;

int count_mushrooms(int n) {
	int cur = 0;
	int res = 0;
	for (int i=0; i<n-1; i++) res += (cur == use_machine({i, i+1}));
	return res;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 344 KB Answer is not correct.
3 Halted 0 ms 0 KB -