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

表达不清楚,不好意思,看下这段程序

Posted by sunmc at 2005-10-13 21:43:39 on Problem 2643
In Reply To:单case的话标志清不清无所谓吧 Posted by:frkstyc at 2005-10-13 21:32:56
对面上面这组数据,我的输出是tie,但答案明显是z
	for(i=0; i<k; i++)
	{
		if(d[i]>j)
		{
			j=d[i];
			q=i;
              flag=0;////没有这句话都能过
		}
		else if (d[i]==j)
			   flag=1;		
	}

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