# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1117226 | pokmui9909 | Counting Mushrooms (IOI20_mushrooms) | C++17 | 194 ms | 504 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>
using namespace std;
using ll = long long;
#define x first
#define y second
int count_mushrooms(int N){
ll Ans = 1;
for(ll i = 1; i < N; i += 2){
if(i == N - 1){
Ans += 1 - use_machine((vector<int>){0, i});
} else {
Ans += 2 - use_machine((vector<int>){i, 0, i + 1});
}
}
return Ans;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |