# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
767151 | canadavid1 | Mechanical Doll (IOI18_doll) | C++14 | 168 ms | 33140 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 "doll.h"
#include <bits/stdc++.h>
using namespace std;
struct Switch
{
bool state;
Switch *l,*r;
int lv=-1,rv=-1;
int num=0;
};
Switch *create_tree(int li,int ri)
{
Switch* a = new Switch();
a->state = false;
if(ri-li > 2)
{
int m = (li+ri)>>1;
a->l = create_tree(li,m);
a->r = create_tree(m,ri);
}
else
{
a->l = nullptr;
a->r = nullptr;
}
return a;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |