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

看我最后给你的回复

Posted by hawk at 2003-12-10 16:41:03 on Problem 1006
In Reply To:请指教! Posted by:wqfcr at 2003-12-10 16:36:56
题目没告诉你多少组,你自做主张申请了50个
如果测试数据超过50(而且是必然的),那么你程序就访问了其他内存,那么产生任何错误都有可能。
在这里就是a[i]不在有意义,所以可能很久都不等于-1,所以i就比正常大很多。那么你就会比正常的输出多很多。
所以output limit exceed,明白了?

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