ACM:素数线性筛法(素数打表)

通过一道题来讲一下素数筛法。 (我理解的素数筛法。。不一定对) 原题: https://vjudge.net/contest/205544#problem/H 题目在文章末尾。 在此之前可以先看一篇博客,原文的地址不知道为啥打不开了..网...

Read more

ACM:LCM Walk

A frog has just learned some number theory, and can't wait to show his ability to his girlfriend. Now the frog is sittin...

Read more

模板题集合

本来存在电脑上的...怕有一天电脑突然炸了...所以博客上再备份一份 [队列] priority_queue<int, vector<int>, greater<int> > q; // 从小到大 [最长...

Read more