# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
709923 | 2023-03-14T19:57:27 Z | Karpin | Art Collections (BOI22_art) | C++17 | 0 ms | 208 KB |
#include <bits/stdc++.h> #include "art.h" using namespace std; #define ll long long #define vt vector #define ar array void solve(int n){ vt<int> cur; vt<int> real; for (int i = 0; i < n; i++){ real.push_back(0); cur.push_back(i + 1); } int first = publish(cur); for(int i = 0; i < n - 1; i++){ rotate(cur.begin(), cur.begin() + 1, cur.end()); int second = publish(cur); int bom = first - second; bom--; bom += n; bom /= 2; real[bom] = cur[n - 1]; first = second; } answer(real); } // int main(){ // ios::sync_with_stdio(0); // cin.tie(0); // int testcases = 1; // // cin >> testcases; // while(testcases--){ // solve(); // } // return 0; // }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 208 KB | Not correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 208 KB | Not correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 208 KB | Not correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 208 KB | Not correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 208 KB | Not correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 208 KB | Not correct |
2 | Halted | 0 ms | 0 KB | - |