![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM
curthang
这个作者很懒,什么都没留下…
展开
-
(质数筛选法)1181 质数中的质数
1181 质数中的质数(质数筛法) 题目来源: 51Node ,题号 1181 收藏 关注如果一个质数,在质数列表中的编号也是质数,那么就称之为质数中的质数。例如:3 5分别是排第2和第3的质数,所以他们是质数中的质数。现在给出一个数N,求>=N的最小的质数中的质数是多少(可以考虑用质数筛法来做)。Input输入一个数N(N <= 10^6)Output输出>=N的最小的质数中的...原创 2018-04-08 16:38:13 · 285 阅读 · 1 评论 -
Ignatius and the Princess IV (ACM练习题)
"OK, you are not too bad, em... But you can never pass the next test." feng5166 says. "I will tell you an odd number N, and then N integers. There will be a special integer among them, you have to tel...原创 2018-05-02 20:32:17 · 176 阅读 · 0 评论