# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1120173 | vjudge1 | Art Collections (BOI22_art) | C++17 | 5 ms | 512 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>
using namespace std;
typedef long long ll;
vector<int> ord;
int cnt, n;
bool cmp(int x, int y) {
vector<int> t = {};
for(int i = 1; i <= n; i++) {
if(i == x || i == y) {
t.push_back(x + y - i);
}
else t.push_back(i);
}
return cnt > publish(t);
}
void solve(int N) {
n = N;
vector<int> p(n);
for(int i = 0; i < n; i++) {
p[i] = i + 1;
}
int cur = publish(p);
cnt = cur;
sort(p.begin(), p.end(), cmp);
answer(p);
}
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... |