# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
602444 | almothana05 | Art Collections (BOI22_art) | C++17 | 1641 ms | 752 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 "art.h"
#include "bits/stdc++.h"
using namespace std;
vector<int>num, jet , bev;
void solve(int menge) {
int numm , cmp , er ,zw;
bev.push_back(menge);
for(int i = menge ; i > 0 ; i--){
num.push_back(i);
}
int comp = publish(num);
num.clear();
for(int k = menge - 1 ; k > 0 ; k--){
num.clear();
num.push_back(k);
for(int i = menge ; i > 0 ; i--){
if(i != k){
num.push_back(i);
}
}
cmp = publish(num) - comp;
numm = menge - k;
er = (numm + cmp) / 2;
zw = er - cmp;
for(int i = 0 ; i < zw ; i++){
jet.push_back(bev[i]);
}
jet.push_back(k);
for(int i = zw ; i < bev.size() ; i++){
jet.push_back(bev[i]);
}
bev = jet;
jet.clear();
}
reverse(bev.begin() , bev.end());
answer(bev);
}
Compilation message (stderr)
# | 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... |