Submission #588326

#TimeUsernameProblemLanguageResultExecution timeMemory
588326supercatexCounting Mushrooms (IOI20_mushrooms)C++14
0 / 100
0 ms208 KiB
#include "mushrooms.h" #include <bits/stdc++.h> using namespace std; int count_mushrooms(int n) { vector<int> a, b; a.push_back(0); int res = 1; int i = 1; while (i < n && a.size() < 100) { res += 2 - use_machine(vector<int>{i, 0, i + 1}); i += 2; } return res; }
#Verdict Execution timeMemoryGrader output
Fetching results...