| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 1239804 | SalihSahin | Counting Mushrooms (IOI20_mushrooms) | C++20 | 50 ms | 420 KiB | 
#include "bits/stdc++.h"
#include "mushrooms.h"
using namespace std;
int count_mushrooms(int n) {
   if(n > 0){
      int cnt = 1;
      vector<int> v;
      v.push_back(0);
      for(int j = 1; j < n; j++){
         v.push_back(j);
         int x = use_machine(v);
         if(!x) cnt++;
         v.pop_back();
      }
      return cnt;
   }
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
