| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1359547 | FZ_Laabidi | Counting Mushrooms (IOI20_mushrooms) | C++20 | 18 ms | 380 KiB |
#include "mushrooms.h"*
int count_mushrooms(int n) {
int o = 1;
for(int i=1; i<n-1; i+=2){
o+=2;
o-=use_machine({i, 0, i+1});
}
if(n%2==0)o+=(1-use_machine({0, n-1}));
return o;
}Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
