# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
304162 | 2020-09-21T03:49:04 Z | juggernaut | Counting Mushrooms (IOI20_mushrooms) | C++14 | 0 ms | 256 KB |
#include"mushrooms.h" #include<bits/stdc++.h> using namespace std; int count_mushrooms(int n){ int res=0,i; for(i=1;i<n;i++)res+=use_machine({0,i}); return min(res,n-res); }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 256 KB | Output is correct |
2 | Incorrect | 0 ms | 256 KB | Answer is not correct. |
3 | Halted | 0 ms | 0 KB | - |