Submission #1210064

#TimeUsernameProblemLanguageResultExecution timeMemory
1210064avahwCounting Mushrooms (IOI20_mushrooms)C++20
10 / 100
51 ms576 KiB
#include "mushrooms.h" int count_mushrooms(int n) { std::vector<int> m; for (int i = 0; i < n; i++) m.push_back(i); int total = 0; // mushroom 0 is of type a for(int i = 1; i < n; i++){ // test every mushroom against mushroom 0 total += 1^use_machine({0, i}); } return total + 1; }
#Verdict Execution timeMemoryGrader output
Fetching results...