# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
636765 | tabr | Mechanical Doll (IOI18_doll) | C++17 | 0 ms | 0 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>
using namespace std;
#ifdef tabr
#include "library/debug.cpp"
#else
#define debug(...)
#endif
#ifdef tabr
void answer(vector<int> c, vector<int> x, vector<int> y) {
debug(c);
debug(x);
debug(y);
}
#else
#include "doll.h"
#endif
void create_curcuit(int m, vector<int> a) {
a.emplace_back(0);
int n = (int) a.size() - 1;
int l = 31 - __builtin_clz(n);
vector<int> x(l + 1), y(l + 1);
for (int i = l; i >= 0; i--) {
int v = l - i;
if (i == 0) {
x[v] = 0;
} else {
x[v] = v + 1;
}