Submission #1294435

#TimeUsernameProblemLanguageResultExecution timeMemory
1294435m_bezrutchkaCounting Mushrooms (IOI20_mushrooms)C++20
10 / 100
62 ms400 KiB
// 10 points, q = n - 1 #include "mushrooms.h" #include <bits/stdc++.h> using namespace std; int count_mushrooms(int n) { vector<int> t(n); t[0] = 0; int ans = 1; for (int i = 1; i < n; i++) { t[i] = use_machine({0, i}); if (t[i] == 0) ans++; } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...