# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
721587 | 2023-04-11T05:02:23 Z | Mr_Husanboy | Art Collections (BOI22_art) | C++17 | 1 ms | 336 KB |
#include "art.h" #include<bits/stdc++.h> #define all(a) (a).begin(), (a).end() template<typename T> int len(T &a){ return a.size(); } using namespace std; void solve(int n) { vector<vector<bool>> comp(n, vector<bool> (n)); for(int i = 1; i <= n; i ++){ for(int j = i + 1; j <= n; j ++){ vector<int> p = {i,j}; for(int k = 1; k <= n; k ++){ if(k != i && k != j) p.push_back(k); } int y = publish(p); swap(p[0], p[1]); int x = publish(p); if(y < x){ comp[i][j] = 1; }else comp[j][i] = 1; } } vector<int> v(n); iota(all(v), 1); sort(all(v), [&](int a, int b){ return comp[a - 1][b - 1]; }); answer(v); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 336 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 336 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 336 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 336 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 336 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 336 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |