# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
831355 | Trumling | 버섯 세기 (IOI20_mushrooms) | C++14 | 0 ms | 208 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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++)
{
m[0]=i;
m[2]=i+1;
int c1 = use_machine(m);
c2+=2-c1;
}
return c2;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |