| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1319392 | SmuggingSpun | Counting Mushrooms (IOI20_mushrooms) | C++20 | 40 ms | 400 KiB |
#include "mushrooms.h"
#include<bits/stdc++.h>
using namespace std;
int count_mushrooms(int n){
n--;
int ans = 1;
while(n > 1){
ans += 2 - use_machine({n, 0, n - 1});
n -= 2;
}
if(n == 1){
ans += 1 - use_machine({0, 1});
}
return ans;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
