What 'memory limit exceed' means?
Posted: Sun Sep 17, 2006 12:37 am
OK - I have this experience:
my code is rejected with MLE by judge with the follwing results (taken from several runs):
memory: 32900 - 37000,
CPU: 0,6 - 0,676
(results are different for the code when it is executed more times)
(as one can see from the list of accepted codes for the same task - then there is accepted code even with memory consumption 32720)
But when I am moni
So - questions are:
1) what is the real memory limit for code and are these limits different for different languages?
2) how MLE is computed? Does judge allows the program to run and monitor the max memory and at the end (if no errors are detected) accepts or rejects based on results of memory consumption? Or judge rejects code immediatley if request for memory is over some accpetable limit. If the later is true - then how can one explain - that - when I am monitor execution of my code in Task Manager or winXP performane monitor - and there is no memory leak in the worst case run (and the real numbers for the taks - mentioned above - is ~1.3 MB as shown in graphs and numbers) - but judge gives MLE only after some time of run as if memory leak could be present?
my code is rejected with MLE by judge with the follwing results (taken from several runs):
memory: 32900 - 37000,
CPU: 0,6 - 0,676
(results are different for the code when it is executed more times)
(as one can see from the list of accepted codes for the same task - then there is accepted code even with memory consumption 32720)
But when I am moni
So - questions are:
1) what is the real memory limit for code and are these limits different for different languages?
2) how MLE is computed? Does judge allows the program to run and monitor the max memory and at the end (if no errors are detected) accepts or rejects based on results of memory consumption? Or judge rejects code immediatley if request for memory is over some accpetable limit. If the later is true - then how can one explain - that - when I am monitor execution of my code in Task Manager or winXP performane monitor - and there is no memory leak in the worst case run (and the real numbers for the taks - mentioned above - is ~1.3 MB as shown in graphs and numbers) - but judge gives MLE only after some time of run as if memory leak could be present?