Submission #1079944

#TimeUsernameProblemLanguageResultExecution timeMemory
1079944Faisal_SaqibCounting Mushrooms (IOI20_mushrooms)C++17
10 / 100
142 ms596 KiB
#include "mushrooms.h" int count_mushrooms(int n) { std::vector<int> m; int ans=0; m.push_back(0); for(int i=1;i<n;i++) { m.push_back(i); int x=use_machine(m); m.pop_back(); if(x==0) ans++; } return ans+1; }
#Verdict Execution timeMemoryGrader output
Fetching results...