# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
930932 | Alebn | Art Collections (BOI22_art) | C++17 | 1109 ms | 1696 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>
#include "art.h"
using namespace std;
void solve(int n) {
int x, y, temp;
vector<int> a(n), res(n);
for(int i = 0; i < n; i++) a[i] = i + 1;
y = publish(a);
for(int i = 0; i < n; i++) {
x = y;
//cyclc shift
temp = a[n - 1];
for(int i = n - 1; i > 0; i--) a[i] = a[i - 1];
a[0] = temp;
//
y = publish(a);
res[(y - x + n - 1) / 2] = temp;
}
answer(res);
}
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... |