Submission #312659

#TimeUsernameProblemLanguageResultExecution timeMemory
312659pere_gilCounting Mushrooms (IOI20_mushrooms)C++14
0 / 100
1 ms256 KiB
#include "mushrooms.h" #include "bits/stdc++.h" int count_mushrooms(int n) { std::vector<int> m; int res=0; for (int i = 1; i < n; i++){ m.push_back(0); m.push_back(1); if(use_machine(m)==0) res++; m.clear(); } return res; }
#Verdict Execution timeMemoryGrader output
Fetching results...