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:哪位大哥帮忙看下有什么问题,怎么就是WA呢……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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator