#include #include #include #include using namespace std; typedef long long ll; typedef unsigned long long ull; void sample(){ vector> vvi = vector>(20, vector(10, 0)); // vvi[20][10] vector>> vvvi = vector>>(30, vector>(20, vector(10, 0))); // vvvi[30][20][10] vector v = {3,2,1}; sort(v.begin(), v.end()); do { // pass } while(next_permutation(v.begin(), v.end())); for(auto x: v){ cout<>n; vector al = vector(n+1); vector bl = vector(n+1); for(int i=0;i>al[i]; } for(int i=0;i>bl[i]; } ull res = 0; for(int i=0;i