제출 #346065

#제출 시각아이디문제언어결과실행 시간메모리
346065athensclub버섯 세기 (IOI20_mushrooms)C++14
0 / 100
0 ms364 KiB
#include "mushrooms.h"
#include <vector>

int count_mushrooms(int n)
{
	std::vector<int> m;
	for (int i = 0; i < n; i++)
		m.push_back(i);
	int c1 = use_machine(m);
	m = {0, 1};
	int c2 = use_machine(m);
	return c2 == 1 ? 1 + c1 / 2 : n - (1 + c1 / 2);
}
#Verdict Execution timeMemoryGrader output
Fetching results...