# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
310118 | peti1234 | Counting Mushrooms (IOI20_mushrooms) | C++17 | 9 ms | 512 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"
using namespace std;
vector<int> a, b, sz, s;
int sa, sb, pos, ert, x, adb;
bool v[20002];
void pb(int x) {
sz.push_back(x);
}
void ap(int x) {
a.push_back(x);
}
void bp(int x) {
b.push_back(x);
}
void cl() {
sz.clear();
}
void add(int a) {
if (x%2) bp(a);
else ap(a);
}
void fadd(int a) {
if (x%2) ap(a);
else bp(a);
}
int kerd() {
return use_machine(sz);
}
void ek(int a) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |