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 cathy_0612 at 2008-07-16 22:19:53 on Problem 2632
if(i == m)
			printf("OK\n");
		else if(crash == 0)
			printf("Robot %d crashes into the wall\n", nowr);
		else
			printf("Robot %d crashes into robot %d\n", nowr, crash);

如第一个if后我本来写的是crash == -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