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