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 |
Re:测试数据没有按题目要求给!害我RUNTIME ERROR了N次,后来把查找改得更容错才过!!In Reply To:测试数据没有按题目要求给!害我RUNTIME ERROR了N次,后来把查找改得更容错才过!! Posted by:tq at 2005-08-05 20:39:19 > 题目上说: > The first line of input file contains integer N (1 <= N <= 50) -- number of rows. Following N lines contain 20 characters each, with characters that are either a letter from 'A' to 'Z' or the dot character (ASCII 46), representing an empty cell. > > 可是测试数据中居然有字母不是'A'~'Z'和'.' > 我再查找字母时,原来是找不是"."的字符,我就认为是字母,结果打死怎么都数组超界. > 后来改成找字母是"A"~"Z"的才好. > > 太烦了,让我查了两个小时. Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator