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 WonderStar at 2010-07-13 20:29:57 on Problem 1008
In Reply To:Re:好几次WA了 也看了些测试数据 求大侠指点 Posted by:WonderStar at 2010-07-13 20:27:49
应该是你的char型数组申请的空间小了,不要忘记,在c++中,字符串实际上是char型数组,并且最后一个元素是‘/0’,所以最小的空间应该是7而不是6

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