| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1359546 | FZ_Laabidi | Counting Mushrooms (IOI20_mushrooms) | C++20 | 0 ms | 0 KiB |
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;
}