HDU 1216 Assistance Required
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1216最开始题意理解错误,以为是求第n个素数,结果没通过样例。理解题意后模拟就可以了,但是需要估计第3000个数有多大。百度发现小于10e5的素数有9592个,所以猜测这道题要求的第3000个数不超过10e5。 1 #include<stdio.h> 2 #include<iostream> 3 #include<string.h> 4 #include<stdlib.h> 5 #include<math.h> 6 #include<map&g
阅读全文
posted @ 2012-11-23 13:36
浙公网安备 33010602011771号