Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:注意N=0的情况 if(n) printf("Number of doors = %ld\n",ans+1) ; else printf("Number of doors = 1\n") ;我开始注意到了但是else语句只输出了1,忘记了打字符串。。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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator