제출 #305910

#제출 시각아이디문제언어결과실행 시간메모리
305910myungwoo버섯 세기 (IOI20_mushrooms)C++17
10 / 100
262 ms764 KiB
#include <bits/stdc++.h>
#include "mushrooms.h"
using namespace std;

int count_mushrooms(int N)
{
	// Step 1: Check type of mushroom one by one
	vector<int> arr[2] = {{0}, {}};
	for (int i=1;i<N;i++)
		arr[use_machine({0, i})].push_back(i);
	return arr[0].size();
}
#Verdict Execution timeMemoryGrader output
Fetching results...