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 |
为什么RE?bool isp(long long x) { if(x==2) return true; long long k=sqrt(x*1.0),i; for(i=2;i<=k;i++) if(x%i==0) return false; return true; // for(i=0;prime[i]<=k;i++) // if(x%prime[i]==0) // return false; // return true; } 用打的表判断就RE Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator