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 |
没A的注意这道题可能有前导0,比如009之类的。所以跳出循环的条件要写成 if(!strcmp(str, "0")) break; 另外数组大小开到105就够了,没有楼下所说的情况。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator