| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1294435 | m_bezrutchka | 버섯 세기 (IOI20_mushrooms) | C++20 | 62 ms | 400 KiB |
// 10 points, q = n - 1
#include "mushrooms.h"
#include <bits/stdc++.h>
using namespace std;
int count_mushrooms(int n) {
vector<int> t(n);
t[0] = 0;
int ans = 1;
for (int i = 1; i < n; i++) {
t[i] = use_machine({0, i});
if (t[i] == 0) ans++;
}
return ans;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
