제출 #303569

#제출 시각아이디문제언어결과실행 시간메모리
303569tutis버섯 세기 (IOI20_mushrooms)C++17
10 / 100
281 ms664 KiB
#include "mushrooms.h"
#include <bits/stdc++.h>
using namespace std;
int count_mushrooms(int n) {
	vector<int>A, B;
	A.push_back(0);
	for (int i = 1; i < n; i++)
	{
		if (use_machine({0, i}) == 0)
			A.push_back(i);
		else
			B.push_back(i);
	}
	return (int)A.size();
}
#Verdict Execution timeMemoryGrader output
Fetching results...