# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
137643 | bensonlzl | Mechanical Doll (IOI18_doll) | C++14 | 2 ms | 204 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;
typedef pair<int,int> pi;
int mlevel;
int cnt = 1;
int pow2[25];
int bigN;
int sequence[200005];
vector<int> X, Y;
struct switcher{
switcher *left = nullptr, *right = nullptr;
int level, id, lnode, rnode, state = 0;
switcher(int n, int lv, int offset){
id = cnt;
cnt++;
if (lv == 0){
if (n == 2){
lnode = 1;
rnode = 1;
}
else{
lnode = 1;
rnode = -1;
Compilation message (stderr)
# | 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... |