| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1362868 | cowkim | Counting Mushrooms (IOI20_mushrooms) | C++20 | 19 ms | 400 KiB |
#include "mushrooms.h"
int count_mushrooms(int n) {
int count = 1;
for(int i = 1; i< n; i+= 2){
if(i+1 == n) count += 1 - use_machine({i,0});
else count += 2 - use_machine({i+1,0,i});
}
return count;
}
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
