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 |
就一点不同,结果一个TLE一个32msfor(i=2;i<=a/2;i++) if(a%i==0 && isPrime(a/i)) return a/i; 32ms……………… for(i=a/2;i>=2;i--) if(a%i==0 && isPrime(i)) return i; TLE Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator