#include "bits/stdc++.h"
#include "mushrooms.h"
#define sz(x) (int)size(x)
#define all(x) begin(x), end(x)
#define rall(x) rbegin(x), rend(x)
using namespace std;
using ll = long long;
using pii = pair<int, int>;
const char nl = '\n';
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3f;
int count_mushrooms(int n) {
int ans = 0;
for (int i = 1; i < n; i++) {
vector<int> v;
v.push_back(0);
v.push_back(i);
if (use_machine(v) == 0)
ans++;
}
return ans + 1;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |