Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:大侠门帮我看看吧! 我都wa n+1次了

Posted by ldxiaoxi at 2010-08-04 21:45:26 on Problem 1152
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator