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>
#define ll int
#define vll vector<ll>
#define pb push_back
#define sz size()
using namespace std;
vll x(400000,0),y(400000,0),c;
vector<vll> v;
void create_circuit(int m, std::vector<int> a) {
int n = a.size();
ll i;
c.resize(m+1,0);
c[0]=a[0];
ll bit=0;
while(n>1){
n/=2;
bit++;
}
c[0]=1;
if(bit==0)c[1]=0;
else c[1]=-1;
for(i=0;i<bit;i++){
x[i]=1;
y[i]=-i-2;
}
y[bit-1]=0;
answer(c, x, y);
}
# | 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... |