摘要:
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 阅读全文
摘要:
hdu1852 Beijing2008 非常好的题目,题解见注释。 #include<bits/stdc++.h> using namespace std; typedef long long ll; ll n,k; #define debug(x) cout<<#x<<':'<<x<<endl; 阅读全文
摘要:
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 阅读全文