# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1244491 | qwusha | Counting Mushrooms (IOI20_mushrooms) | C++20 | 0 ms | 0 KiB |
#include "mushrooms.h"
#include <iostream>
#include <bits/stdc++.h>
#define fi first
#define se second
using namespace std;
int inf = 1e9 + 7;
int count_mushroom(int n) {
int cnt = 1;
for (int i = 1; i < n; i++) {
vector<int> q = {0, i};
int x = use_machine(q);
if (x == 0) {
cnt++;
}
}
return cnt;
}