제출 #831356

#제출 시각아이디문제언어결과실행 시간메모리
831356TrumlingCounting Mushrooms (IOI20_mushrooms)C++14
0 / 100
0 ms208 KiB
#include "mushrooms.h"
#include<bits/stdc++.h>
using namespace std;

#define F first
#define S second
#define all(x) x.begin(),x.end()
typedef long long ll;
#define pb push_back
#define INF 9999999999999999

int count_mushrooms(int n) {

	vector<int> m(3,0);
	ll c2=1;
	for(int i=1;i<n-1;i+=2)
	{
		m[0]=i;
		m[2]=i+1;
		int c1 = use_machine(m);
		c2+=2-c1;
	}
	return c2;
}
#Verdict Execution timeMemoryGrader output
Fetching results...