Page 1 of 1
how is the memory used decided?
Posted: Wed May 17, 2006 1:47 pm
by sandy007smarty
I submitted two solutions to a problem. They are little different in logic, but the amount of memory used is same in both. Both have an array arr[100][100] and a few more variables. But in one i got memory as "minimum" and in other i got "424". Explain.
Posted: Fri May 19, 2006 8:28 am
by kryptolus
I think it counts the size of the stack as well... At least that's the impression I got from my submissions.
Posted: Sat May 20, 2006 8:27 am
by Moha
I think when the runtime of your code is short, The uva considers its memory as minimum.
Posted: Sun Apr 08, 2007 7:49 pm
by sandy007smarty
That sounds strange...