码迷,mamicode.com
首页 >  
搜索关键字:hdu2161    ( 2个结果
HDU2161
解题思路:判断素数模板题。 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn = 16005; 6 int vis[maxn]; 7 8 void Init() 9 {10 memset(vis...
分类:其他好文   时间:2015-11-21 15:55:30    阅读次数:306
hdu 2161 Primes 筛法求素数 大水题
Problem Description Write a program to read in a list of integers and determine whether or not each number is prime. A number, n, is prime if its only divisors are 1 and n. For this problem, the numbers 1 and 2 are not considered primes. Input Each inp...
分类:其他好文   时间:2015-03-13 14:24:56    阅读次数:130
2条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!