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

没A的注意

Posted by 058179 at 2013-06-19 15:59:30 on Problem 1503
这道题可能有前导0,比如009之类的。所以跳出循环的条件要写成
if(!strcmp(str, "0")) break;
另外数组大小开到105就够了,没有楼下所说的情况。

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