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:大侠门帮我看看吧! 我都wa n+1次了In Reply To:Re:大侠门帮我看看吧! 我都wa n+1次了 Posted by:orangeman at 2009-08-02 16:34:11 > sum=sum*i+s2[k];这个地方不对, 越界!! > 改成 > for(k=0;k<j;++k) > sum=(sum*i+s2[k])%(i-1); > if(sum==0) > { > printf ( "%d\n",i ); > break; > } > 试试看! Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator