Submission #1041662

#TimeUsernameProblemLanguageResultExecution timeMemory
1041662ReLiceMechanical Doll (IOI18_doll)C++17
0 / 100
30 ms9820 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...