| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1353119 | eri16 | Art Collections (BOI22_art) | C++20 | 489 ms | 500 KiB |
#include "art.h"
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define fi first
#define se second
void solve(int N){
vector <pair<int,int>> ans;
for (int i=1; i<=N; i++){
vector <int> v;
int e,b;
for (int j=1; j<=N; j++){if (i!=j){v.pb(j);}}
v.pb(i);
e=publish(v);
v.clear();
v.pb(i);
for (int j=1; j<=N; j++){if (i!=j){v.pb(j);}}
b=publish(v);
ans.pb({b-e,i});
}
sort(ans.begin(),ans.end());
vector <int> v(N);
for (int i=0; i<N; i++){v[i]=ans[i].se;}
answer(v);
}| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
