# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
70012 | 3zp | Zalmoxis (BOI18_zalmoxis) | C++14 | 457 ms | 17976 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;
int a[2000009];
int F[2000009];
stack<int> S;
int sf = 0;
void RR(){
while(S.size() > 1){
int x = S.top(); S.pop();
if(S.top() != x){
S.push(x);
return;
}
S.top() ++;
}
}
vector<int> divide(int x, int mx){
if(mx == 0) return {};
if(mx == 1 || x == 0) {
return {x};
}
if((1<<x) <= mx){
vector<int> ans;
for(int i = 0; i < (1<<x); i++)
ans.push_back(0);
return ans;
}
vector<int> ans1 = divide(x - 1, mx - 1),
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |