# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
959460 | Bidoneczek11 | 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>
using namespace std;
#define int long long
#define ll long long
#define ld long double
#define pb push_back
#define nd second
#define st first
#define sz size
#define forr(i, n) for(int i=1;i<=n;i++)
const ll infl=1e18+90;
const int inf=1e9+90;
vector<int> wek;
void solve(int n)
{
for(int i=1;i<=n;i++)
{
wek.pb(i);
}
while(true)
{
int x=publish(wek);
if(x==0)
{
answer(wek);
return;
}
else
{
next_permutation(wek.begin(), wek.end());
}
}
}