# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1055579 | Trent | 버섯 세기 (IOI20_mushrooms) | C++17 | 113 ms | 508 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "mushrooms.h"
#include "bits/stdc++.h"
using namespace std;
#define forR(i, x) for(int i = 0; i < (x); ++i)
#define REP(i, a, b) for(int i = (a); i < (b); ++i)
#define all(x) x.begin(), x.end()
typedef long long ll;
typedef vector<ll> vll;
int count_mushrooms(int n) {
int tot = 1;
REP(i, 1, n) {
vector<int> thing = {0, i};
int res = use_machine(thing);
if(res == 0) ++tot;
}
return tot;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |