03 2022 档案
摘要:#include <bits/stdc++.h> #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define endl "\n" using namespace std; typedef long long LL; co
阅读全文
摘要:状态表示$f[i][j][l][sum]$ 从前$i$个选,且第$i$个数为$j$,加上j后的递减序列的长度为$l$,以及当前所有数的总和为$sum$的方案数 状态转移 \[ if (j >= k) \quad f[i][j][1][sum + j] = (f[i][j][1][sum + j] +
阅读全文
摘要:#include <bits/stdc++.h> #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define endl "\n" #define IT set<node>::iterator using namespac
阅读全文
摘要:#include <bits/stdc++.h> #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define endl "\n" #define LL long long using namespace std; con
阅读全文