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 shide1983 at 2012-12-20 18:36:41 on Problem 1302 and last updated at 2012-12-20 18:39:10
In Reply To:大神们,给看看吧!!!测试数据没问题,提交时WA。跪求指导 Posted by:2010302447 at 2012-07-06 11:20:43
问题出在这句:if(c[m]=='0');
如果code里面有字母,而后面又碰到'0'的话,你的那个sum函数的调用就会有问题。试试"A0"吧。

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