So i have seen a lot of accepted java solutions that require 2133M of memory. As per my knowledge codechef uses SPOJ clusters but they have a memory limit of 256Mb or 1586Mb. And why is it that even simple code of JAVA takes 2133M whereas same code in C or C++ takes only around 15M?
It’s a bit out-of-date, but see e.g. this post:
The memory limit nowadays is certainly higher than 256MB, and I think I’ve seen solutions taking closer to 2500MB before.
Thank you so much!
So the 2133M that is shown is actually allocated to the JVM. the actual code might be using less than the allocated memory. Am i right?
It seems that way to me, yes