제출 #1292743

#제출 시각아이디문제언어결과실행 시간메모리
1292743kahoulCounting Mushrooms (IOI20_mushrooms)C++20
0 / 100
0 ms332 KiB
#include "mushrooms.h"
using namespace std;

int count_mushrooms(int n) {
	int resp = 0;

	for (int i = 1; i <= n; i += 2) {
		vector<int> m = {i, 0, i + 1};
		resp +=  2 - use_machine(m);
	}

	return resp;
}
#Verdict Execution timeMemoryGrader output
Fetching results...