제출 #306689

#제출 시각아이디문제언어결과실행 시간메모리
306689faustaadp버섯 세기 (IOI20_mushrooms)C++17
10 / 100
253 ms384 KiB
#include "mushrooms.h"
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define mp make_pair
#define fi first
#define se second
const ll NN = 2e3;
ll has = 1;
int count_mushrooms(int n) {
	for(ll i = 1; i < n; i++)
	{
		vector<int> tmp;
		tmp.pb(0);
		tmp.pb(i);
		if(!use_machine(tmp))
			has++;
	}
	return has;
}
#Verdict Execution timeMemoryGrader output
Fetching results...