CF
alusang
T^T
展开
-
CF 767A
第一遍笨方法模拟过的 #include #include #include using namespace std; const int maxn=1e6+5; struct P { int x; int s; }p[maxn]; int main() { memset(p,0,sizeof(p)); int n; scanf("%d原创 2017-04-16 21:47:51 · 616 阅读 · 0 评论 -
CodeForces-450B-矩阵快速幂
很经典的矩阵快速幂,这个题也可以求循环节 #include <cstring> #include <cstdio> #include <iostream> #include <vector> #include <algorithm> #include <queue> #define INF 0x3f3f3f3f usi...原创 2018-07-20 11:02:34 · 219 阅读 · 0 评论