摘要:
1.奇怪的越界问题 a*b%mod 依然可能会越界 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int inf = 0x3f3f3f3f; const int mod = 1e9+7; int ma 阅读全文
摘要:
牛客裸题 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int inf = 0x3f3f3f3f; const int maxn = 1e5+5; inline int ls(int p){retur 阅读全文
摘要:
[递推关系的建立] [矩阵快速幂模板] #include<bits/stdc++.h> using namespace std; typedef long long ll; const int inf = 0x3f3f3f3f; const int mod = 1e9+7; const int N 阅读全文