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

Memory Limit Exceed!为什么不能用这样用搜索。内存小的人来看一下

Posted by ACM0003 at 2007-07-22 22:20:18 on Problem 3272
变量如下
int a[5001][5001];//邻接矩阵
int move[5001][5001];//记录一条边的状态
int n,m;
bool visited[5001];//标志数组,深度搜索时用
显然内存超了,但是我再简化,其中int a[5001][5001]和bool visited[5001]这两个数组也不能去掉阿
大家过的人是怎么做的呢?

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