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 zbwzll at 2012-12-29 15:33:18 on Problem 1436
我用的全部内存如下:
const int Y = 8000 * 2;
const int N = 8000+1;
struct segment{
	int y1, y2, x;
};

static short tre[Y<<2];
static char matrix[N][N] = {0};
static segment seg[N] = {0};

数量级应该是matrix的数量级,虽然大了点,也就是16000k,满打满算也不会超过20000k吧,结果说我用了63080K,没可能用这么多的,险些就爆内存了。

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