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 |
告诉用C的童鞋们,字符串千万不要压线开,要开得大大的啊我是直接在倍数字符串基础上直接循环判断是否与原字符串可重合,也就是把倍数字符串往后延长了。结果一开始开的倍数字符串是char[61],延长之后直接覆盖到原字符串的存储空间上了……把空间改为char[121]就过了…… 有一个血淋淋的教训啊!!!千万不要临界开数组啊!!!一个细节没考虑到就杯具了啊!!! Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator