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

终于明白为什么WA了

Posted by xinling at 2008-07-23 21:41:11 on Problem 2328
拿大家提供的数据试都无济于事,终于知道为什么WA了~
   说到底还是因为自己逻辑不严密~
      提供一小段给迷路中的朋友:
                  scanf("%s%s",buf,reply);
		if(!strcmp(reply,"high")){
			if(value_guess<=high)
				high=value_guess-1;
		}
		else if(!strcmp(reply,"low")){
			if(low<=value_guess)
				low=value_guess+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