# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
950825 | Mr_Ph | 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 "art.h"
#include<bits/stdc++.h>
using namespace std;
void solve(int n) {
vector<int>arr;
for(int i=1;i<=n;i++)
arr.push_back(i);
do
{
int x=publish(arr);
if(!x)return arr;
} while (next_permutation(arr.begin(),arr.end()));
}