Submission #346065

#TimeUsernameProblemLanguageResultExecution timeMemory
346065athensclubCounting Mushrooms (IOI20_mushrooms)C++14
0 / 100
0 ms364 KiB
#include "mushrooms.h" #include <vector> int count_mushrooms(int n) { 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 c2 == 1 ? 1 + c1 / 2 : n - (1 + c1 / 2); }
#Verdict Execution timeMemoryGrader output
Fetching results...