摘要: T1 $\sum_{i=1}^N \sum_{j=1}^M [(i,j)=1]$ $f(d)=\sum_{i=1}^N \sum_{j=1}^M [(i,j)=d]$ $g(d)=\sum_{i=1}^N \sum_{i=1}^M [d|(i,j)]=\lfloor \frac{N}{d} \rfl 阅读全文
posted @ 2018-11-27 21:15 A·H 阅读(604) 评论(0) 推荐(1) 编辑
摘要: 线性筛 线段树 矩阵快速幂 Gauss cpp include"cstdio" include"cstring" include"iostream" include"algorithm" using namespace std; const int MAXN=105; const double ep 阅读全文
posted @ 2018-11-27 17:26 A·H 阅读(203) 评论(0) 推荐(2) 编辑