# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
573539 | NintsiChkhaidze | Art Collections (BOI22_art) | C++17 | 1428 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>
#define pb push_back
using namespace std;
void solve(int N) {
vector <int> order;
for (int i=1;i<=N;i++) order.pb(i);
for (int i = 1; i <= N; i++){
vector <int> X,Y;
X.clear(),Y.clear();
Y.pb(i);
for (int j = 1; j < i; j++) X.pb(j),Y.pb(j);
for (int j = i + 1; j <= N; j++) X.pb(j),Y.pb(j);
X.pb(i);
int x = publish(X),y = publish(Y);
int id = (N + 1 - x + y)/2;
order[id-1] = i;
}
answer(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... |