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的同学可以过来看下!

Posted by showred at 2010-07-21 16:15:43 on Problem 3278
这题数据实在是太阴险了……不过也可能是我经验不足所以没有料到。这题虽然规定了坐标在0到100000之间,也就是说数组最大开到200000多一点就差不多了,但是它的测试数据当中一定有可以产生比200000大得多数字的数据,所以用vis数组标记某个坐标是否被访问过的同学一定要注意了,在给你的vis数组做标记之前,一定要先检查一下当前的这个数字是不是大于200000,如果大于就不要标记了,直接舍弃掉,这样数组就不会越界了。
就这么简单,却让我RE了四五次……囧死了……

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