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:为什么在函数里设一个1000*1000的int数组会RE,把它放到全局变量之后AC呢

Posted by luosiyong at 2009-10-05 19:51:45 on Problem 2838
In Reply To:为什么在函数里设一个1000*1000的int数组会RE,把它放到全局变量之后AC呢 Posted by:zaker at 2009-10-05 18:41:24
函数内部的变量在栈区,而栈区的空间是有限的。
全局变量放在堆区(程序区)那里空间比栈空间大很多。

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