# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1144186 | mnbvcxz123 | Zalmoxis (BOI18_zalmoxis) | C++20 | 165 ms | 22280 KiB |
#include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define all(a) a.begin(), a.end()
int n, k;
vector<pair<int, int> > ans;
int cur;
vector<int> a;
void f(int x){
if(x < 0) return;
if(cur >= n or a[cur] >= x){
if(cur < n && a[cur] == x){
ans.push_back({x, 0});
cur++;
}else{
ans.push_back({x, 1});
}
}else{
f(x-1);
f(x-1);
}
}
vector<int> add;
void split(int x){
if(k == 0 or x == 0){
add.push_back(x);
}else{
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |