# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
722096 | Mardonbekhazratov | Art Collections (BOI22_art) | C++17 | 0 ms | 0 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<bits/stdc++.h>
#include "art.h"
using namespace std;
bool cmp(int a,int b){
vector<int>p(n);
iota(p.begin(),p.end(),1);
vector<int>q=p;
swap(p[a-1],p[b-1]);
return publish(p)<publish(q);
}
void solve(int n){
vector<int>a(n);
iota(a.begin(),a.end(),1);
sort(a.begin(),a.end(),cmp);
}