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:注意N=0的情况 if(n) printf("Number of doors = %ld\n",ans+1) ; else printf("Number of doors = 1\n") ;我开始注意到了但是else语句只输出了1,忘记了打字符串。。

Posted by Arios at 2009-07-25 19:18:11 on Problem 1066
In Reply To:注意N=0的情况 if(n) printf("Number of doors = %ld\n",ans+1) ; else printf("Number of doors = 1\n") ;我开始注意到了但是else语句只输出了1,忘记了打字符串。。 Posted by:IceKingdom at 2009-04-28 23:47:10
题目说了The input will consist of one case.所以应该不会出n==0吧- -

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