| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
内存计算怎么算的啊我用的全部内存如下:
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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator