摘要: #include <iostream> #include <vector> using namespace std; // 预处理组合数(适用于较小的数) const int mx = 5; int c[mx][mx]; auto init = []() { for (int i = 0; i < 阅读全文
posted @ 2025-02-25 22:01 Qacter 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; const int MOD = 1000000007; // 模数,通常是大素数 const int MAXN = 100000; // 设定最大值 long long fact[MAXN + 1]; // 阶乘数组 阅读全文
posted @ 2025-02-25 21:53 Qacter 阅读(2) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示