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:一诡异现象忘大牛们解释!!

Posted by ljfljf2006 at 2009-08-09 17:30:28 on Problem 3278
In Reply To:Re:一诡异现象忘大牛们解释!! Posted by:lsw200838201 at 2009-08-05 20:04:00
if(a[ji*2]==0&&(ji*2)<100001)
{
	a[ji*2]=a[ji]+1;
	q.push(ji*2);
}
这里a[ji*2]会可能越界。。。你可以把数组a开大点就可以用第二组代码。。。。。

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