# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
432475 | Rouge_Hugo | Counting Mushrooms (IOI20_mushrooms) | C++14 | 212 ms | 256 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<bits/stdc++.h>
#include "mushrooms.h"
#define ll long long
#define fi first
#define se second
#define pb push_back
using namespace std;
vector<int>v;
int count_mushrooms(int n) {
int a=1,b=0;
for(int i=1;i<n;i++)
{
v.clear();v.pb(0);v.pb(i);
if(use_machine(v)==1)b++;
else a++;
}
return a;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |