Submission #1183456

#TimeUsernameProblemLanguageResultExecution timeMemory
1183456inesfiCounting Mushrooms (IOI20_mushrooms)C++20
10 / 100
60 ms420 KiB
#include "mushrooms.h" #include<bits/stdc++.h> using namespace std; int count_mushrooms(int n) { int rep=0; for (int i=1;i<n;i++){ rep+=1-use_machine({0,i}); } return rep+1; /*std::vector<int> m; for (int i = 0; i < n; i++) m.push_back(i); int c1 = use_machine(m); m = {0, 1}; int c2 = use_machine(m); return c1+c2;*/ }
#Verdict Execution timeMemoryGrader output
Fetching results...