摘要: P1372 又是一年毕业季 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int mod=998244353; ll n,k; #define debug(x) cout<<#x<<':'<<x<<e 阅读全文
posted @ 2021-02-08 23:07 zx0710 阅读(37) 评论(0) 推荐(0) 编辑
摘要: hdu1852 Beijing2008 非常好的题目,题解见注释。 #include<bits/stdc++.h> using namespace std; typedef long long ll; ll n,k; #define debug(x) cout<<#x<<':'<<x<<endl; 阅读全文
posted @ 2021-02-08 23:05 zx0710 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round #680 (Div. 1) Codeforces Round #680 (Div. 1, based on Moscow Team Olympiad) A.(思维+质因分解) 题解见注释 /* O(n)求1-n逆元:前提:p是素数 inv[i]=(p-p/i)*in 阅读全文
posted @ 2021-02-08 21:35 zx0710 阅读(81) 评论(0) 推荐(0) 编辑