# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1188941 | edga1 | Art Collections (BOI22_art) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
#include "art.h"
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define pb push_back
#define fastIO ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define MOD 1000000007
void solve(int n){
vector<int> v(n);
iota(v.begin(), v.end(), 1);
int atb=pubish(v);
while(atb!=0){
next_permutation(v.begin(), v.end());
atb=publish(v);
}
answer(v);
}