just wondering if anyone can tell me why java applications use so much memory on spoj? I am just a beginner with java but all programs on spoj seem to be using ~220 MB memory
That doesn't mean much. Comparing memory in SPOJ has some meaning when comparing solutions in one language.The memory usage shown is virtual memory used, not real memory... JVM just allocates a bunch when it starts.
that explains everything, thanks a lot