Submission #1247025

#TimeUsernameProblemLanguageResultExecution timeMemory
1247025nikulidCounting Mushrooms (IOI20_mushrooms)C++20
10 / 100
50 ms404 KiB
#include "mushrooms.h" using namespace std; int count_mushrooms(int n) { vector<int> m = {0}; int answer=1; for (int i = 1; i < n; i++){ m.push_back(i); if(!use_machine(m)){ answer++; } m={0}; } return answer; }
#Verdict Execution timeMemoryGrader output
Fetching results...