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 hawk at 2004-11-20 00:12:39 on Problem 2075
In Reply To:为什么数组开的比较小的时候会超时,而开大的反而不会是0MS Posted by:hujk2008 at 2004-11-20 00:09:44
因为c++是不检查数组越界的,所以你越界的时候
如果那个区域还是你程序的,那么就直接改了那个值(如果你是赋值)
这样比如他改的是循环变量的值,或者其他和循环相关的值,导致死循环
> 开始的时候我开了100* 100 超时了,按道理应是RunTime Error.

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