摘要:
#include <iostream> #include <vector> using namespace std; // 预处理组合数(适用于较小的数) const int mx = 5; int c[mx][mx]; auto init = []() { for (int i = 0; i < 阅读全文
摘要:
#include <iostream> using namespace std; const int MOD = 1000000007; // 模数,通常是大素数 const int MAXN = 100000; // 设定最大值 long long fact[MAXN + 1]; // 阶乘数组 阅读全文