# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1234033 | madamadam3 | Counting Mushrooms (IOI20_mushrooms) | C++20 | 50 ms | 420 KiB |
#include "mushrooms.h"
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#define dbg(x) (cout << (x))
#else
#define dbg(x)
#endif
using vi =vector<int>;
#define pb push_back
#define FOR(i, a, b) for (int i = a; i < b; i++)
int count_mushrooms(int n) {
int tl_a = 1;
FOR(i, 1, n) {
tl_a += 1 - use_machine(vi({0, i}));
}
return tl_a;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |