| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 390355 | MilosMilutinovic | Counting Mushrooms (IOI20_mushrooms) | C++14 | 0 ms | 200 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
/**
* author: milos
* created: 16.04.2021 00:04:13
**/
#include <bits/stdc++.h>
#include "mushrooms.h"
using namespace std;
int count_mushrooms(int n) {
int ans = 1;
for (int i = 1; i < n; i++) {
vector<int> qs;
qs.push_back(0);
qs.push_back(i);
if (i < n - 1) {
qs.push_back(i + 1);
}
int foo = use_machine(qs);
ans += 2 - foo;
if (i < n - 1) {
i++;
}
}
return ans;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
