![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数论
lov_vol
这个作者很懒,什么都没留下…
展开
-
poj 2689 大区间筛素数
题意:求区间L,R,之间距离最远的和最近的相邻素数。 题目链接:点击打开链接 详细见代码: #include #include #include #include #include using namespace std; typedef原创 2016-03-13 18:01:42 · 199 阅读 · 0 评论 -
51nod 可能的路径
1247 可能的路径 在一个无限大的二维网格上,你站在(a,b)点上,下一步你可以移动到(a + b, b), (a, a + b), (a - b, b), 或者 (a, a - b)这4个点。 给出起点坐标(a,b),以及终点坐标(x,y),问你能否从起点移动到终点。如果可以,输出"Yes",否则输出"No"。 例如:(1,1) 到 (2,3),(1,1) -> (2,1) -> (原创 2016-05-12 20:50:42 · 527 阅读 · 0 评论 -
cf 687B Remainders Game (剩余定理)
B. Remainders Game Today Pari and Arya are playing a game called Remainders. Pari chooses two positive integer x and k, and tells Arya k but not x. Arya have to find the value . There a原创 2016-06-30 14:20:05 · 1624 阅读 · 0 评论