
数论
pretend_fal
In me the tiger sniffs the rose.
展开
-
素数筛
好像有叫做线性素数筛的东西,而且我不知道我的是不是;至于为怎么写这篇文章,其实就是背不过,然后以后复习用;鉴于以上目的,我就直接上代码了,挺好背的,背过就好了;———————————biu biu biu————————————-#include<iostream>#include<cstdio>#include<algorithm>#define II int#define R regis原创 2017-09-24 07:46:26 · 336 阅读 · 0 评论 -
gcd&exgcd
其实这个东西可以背板子的;所以我打算直接上板子:———————————–begin———————————–gcdII gcd(R II a,R II b){ while (b) { R II c=b; b=a%b; a=c; } return a;}——————————–fen a~ fen a~ fen ge xian——————————原创 2017-09-24 16:50:40 · 605 阅读 · 0 评论