|
|
вернуться в форумwhy memory limit? if i declare type StackR=array[1..100000] of ^longint; type Stack=^StackR; var m:array[1..1000] of Stack; does this mean that my program has used 100000x1000x4 = 4x10^9bytes? together with the fact that my variables are dynamic and I call the new() procedure not more than for 100000 longints? Re: why memory limit? > not more than for 100000 longints? plus not more than 100000 pointers (4 byte) total: 800K of data => MLE Re: why memory limit? thx, but then how do i make it? the actual part of the problem is nothing hard... Re: why memory limit? Послано buggzy 30 мар 2004 22:55 Use another data presentation and O(n*n) algorithm instead of O(n). Re: why memory limit? The actual part of this problem is to do it in 750K |
|
|