# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1047005 | nightfal | Counting Mushrooms (IOI20_mushrooms) | C++17 | 119 ms | 600 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <vector>
#include <iostream>
using namespace std;
int use_machine(std::vector<int> x);
int count_mushrooms(int n) {
std::vector<int> m;
for (int i = 0; i < n; i++)
m.push_back(i);
int total = 0;
for(int i=1; i<n; i++)
total += use_machine({m[0],m[i]});
return n-total;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |