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

如果用LCS开int m[5001][5001]内存溢出的话,我有2个方法

Posted by dieyidezui at 2012-09-19 21:51:02 on Problem 1159 and last updated at 2012-09-19 22:09:25
第一是用short int, 内存大概50000kb ,刚好过关。
第二是用int m[2][5001],然后把所有m[i][j],m[i-1][j]都变成,m[i%2][j],m[(i-1)%2][j],内存大概是200多KB ,不过我很奇怪为什么时间变快了...很诡异..

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