2023年4月20日
摘要: #include <iostream> #include <cstring> #include <queue> using namespace std; const int N=2e5+2; #define int long long int n,m,f1[50][2000] ,f2[50][200 阅读全文
posted @ 2023-04-20 22:04 towboat 阅读(13) 评论(0) 推荐(0)
摘要: 求 1∼n 的排列 A 中,满足前 m 个数中,刚好有 K 个数使得 A[ i ]=i 的 AA 的个数。 错位排列 #include<bits/stdc++.h> using namespace std; const int mod=1e9+7; #define int long long int 阅读全文
posted @ 2023-04-20 02:06 towboat 阅读(19) 评论(0) 推荐(0)