# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
599084 | alextodoran | Art Collections (BOI22_art) | C++17 | 1643 ms | 620 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.
/**
____ ____ ____ ____ ____
||a |||t |||o |||d |||o ||
||__|||__|||__|||__|||__||
|/__\|/__\|/__\|/__\|/__\|
**/
#include <bits/stdc++.h>
#include "art.h"
using namespace std;
typedef long long ll;
int publish (vector <int> R);
void answer (vector <int> R);
void solve (int N) {
vector <int> R(N);
iota(R.begin(), R.end(), 1);
int old = publish(R);
vector <int> sol(N, N);
for (int i = 2; i <= N; i++) {
R.push_back(R.front());
reverse(R.begin(), R.end());
R.pop_back();
reverse(R.begin(), R.end());
int now = publish(R);
sol[(old - now + (N - 1)) / 2] = R.back();
old = now;
}
answer(sol);
}
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... |