摘要:
继续存档 早上来补了一下昨天的题,不过肯定这两天的没法完全补起来 T1: 经典思路:关于位运算的题讨论每一位的贡献 #include<iostream> #include<cstdio> using namespace std; int t,mod=1e9+7;; long long l,r,all 阅读全文
摘要:
题意:给出n,m(n,m<=10^9),求GCD(Fn,Fm) F为斐波那契数组 GCD(Fn,Fm)=FGCD(n,m) 矩阵快速幂加速求F。 #include<iostream> #include<cstdio> using namespace std; int n,m,mod=1e8; int 阅读全文