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

告诉用C的童鞋们,字符串千万不要压线开,要开得大大的啊

Posted by ZhimingWang19931209 at 2012-06-03 23:59:59 on Problem 1047
我是直接在倍数字符串基础上直接循环判断是否与原字符串可重合,也就是把倍数字符串往后延长了。结果一开始开的倍数字符串是char[61],延长之后直接覆盖到原字符串的存储空间上了……把空间改为char[121]就过了……
有一个血淋淋的教训啊!!!千万不要临界开数组啊!!!一个细节没考虑到就杯具了啊!!!

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