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:600多ms 还能怎么优化??In Reply To:600多ms 还能怎么优化?? Posted by:first at 2006-02-26 00:35:21 敢问高手for(j = 2; j < MAX; j ++) { for(i = 0; i < c ;i ++) { int k = j/sushu[i]; if(j%sushu[i] == 0) { if(k%sushu[i] == 0) phy[j] = phy[k]*sushu[i]; else phy[j] = phy[k]*(sushu[i] - 1); break; } } if(i == c) phy[j] = j - 1; } 是什么意思??? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator