# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
727857 | Charizard2021 | Art Collections (BOI22_art) | C++17 | 1637 ms | 664 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) {
vector<int> val;
for(int i = 0; i < n; i++) {
vector<int> cur(n);
for(int j = 0; j < n; j++){
cur[j] = (j + i) % n + 1;
}
val.push_back(publish(cur));
}
vector<int> ans(n);
for(int i = 0; i < n; ++i) {
ans[(val[i] - val[(i + 1) % n] + n - 1) / 2] = i + 1;
}
answer(ans);
}
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... |