# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
636917 | DJeniUp | Art Collections (BOI22_art) | C++17 | 1412 ms | 608 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;
typedef int ll;
#define pb push_back
ll n,x,y,res[4007];
vector<ll>a,b;
void solve(int N) {
n=N;
for(int i=1;i<=n;i++){
a.pb(i);
}
x=publish(a);
for(int i=1;i<=n;i++){
b.clear();
for(int j=1;j<n;j++){
b.pb(a[j]);
}
b.pb(a[0]);
y=publish(b);
res[(x-y+n-1)/2+1]=i;
swap(a,b);
swap(x,y);
}
a.clear();
for(int i=1;i<=n;i++){
a.pb(res[i]);
}
answer(a);
return ;
}
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... |