Submission #303948

#TimeUsernameProblemLanguageResultExecution timeMemory
303948llakiCounting Mushrooms (IOI20_mushrooms)C++17
10 / 100
256 ms256 KiB
#include "mushrooms.h" int count_mushrooms(int n) { std::vector<int> m; int ans = 1; for (int i = 1; i < n; i++) { m = {0, i}; int res = use_machine(m); if (res == 0) ans++; } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...