# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
727057 | josanneo22 | Art Collections (BOI22_art) | C++17 | 1575 ms | 652 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> responses;
for(int i = 0; i < N; ++i) {
vector<int> order(N);
for(int j = 0; j < N; ++j)
order[j] = (j+i)%N + 1;
responses.push_back(publish(order));
}
vector<int> final_order(N);
for(int i = 0; i < N; ++i) {
final_order[(responses[i]-responses[(i+1)%N] + N - 1) / 2] = i + 1;
}
answer(final_order);
}
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... |