# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
377793 | autumn_eel | Counting Mushrooms (IOI20_mushrooms) | C++14 | 260 ms | 508 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 "mushrooms.h"
#include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<int(n);i++)
using namespace std;
typedef long long ll;
int count_mushrooms(int n) {
int cnt=0;
for(int i=1;i<n;i++){
vector<int>v={0,i};
int c=use_machine(v);
if(!c)cnt++;
}
return cnt+1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |