제출 #977478

#제출 시각아이디문제언어결과실행 시간메모리
977478HappyCapybaraCounting Mushrooms (IOI20_mushrooms)C++17
0 / 100
0 ms344 KiB
#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 timeMemoryGrader output
Fetching results...