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 |
255长度绝对可信!gets函数返回的字符串包括了换行符和结尾的'\0'。换行符最长的情况就是"\r\n"两个字节,再加上'\0'一共是三个字节。亲测,将数组开到255+3=258字节,AC。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator