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:哪位大哥帮忙看下有什么问题,怎么就是WA呢……

Posted by azazasyb at 2009-09-18 18:38:59 on Problem 1503
In Reply To:哪位大哥帮忙看下有什么问题,怎么就是WA呢…… Posted by:azazasyb at 2009-09-18 18:35:20
啊哈, 问题解决啦~~

关键在于不能用
if ( str[0] == '0' )
    break;
控制结束输入,改成
if ( str[0] == '0' && str.length() == 1 )
	break;
后就可以AC啦~~


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