제출 #804609

#제출 시각아이디문제언어결과실행 시간메모리
804609PixelCat버섯 세기 (IOI20_mushrooms)C++14
10 / 100
179 ms256 KiB
#include "mushrooms.h"

#ifdef NYAOWO
#include "stub.cpp"
#endif

#include <bits/stdc++.h>
#define For(i, a, b) for(int i = a; i <= b; i++)
#define Forr(i, a, b) for(int i = a; i >= b; i--)
#define F first
#define S second
#define all(x) x.begin(), x.end()
#define sz(x) ((int)x.size())
#define eb emplace_back
// #define int LL
using namespace std;
using i32 = int32_t;
using LL = long long;
using pii = pair<int, int>;

int count_mushrooms(int n) {
	int cnt = 1;
	For(i, 1, n - 1) {
		cnt += 1 - use_machine({0, i});
	}
	return cnt;
	// 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 c1+c2;
}
#Verdict Execution timeMemoryGrader output
Fetching results...