| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
prime(n+i)算一次就可以啦In Reply To:各位兄台,TLE的code,看看那能不能优化。 Posted by:RUNSLOWLY at 2008-09-07 14:51:30 if(prime(n+i)==-1)
{
i++;
// printf("*\n");
}
else
if(prime(n+i)==f(n+i))
{
printf("%I64d\n",n+i);
break;
}
else
{
i++;
// printf("*\n");
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator