Hi. My Java code that uses Fast I/O (with BufferedReader and StringTokenizer) is consuming a lot of memory for this problem - a whopping 4284 Megabytes of memory.
Here is my history of submissions for the above problem.
This is not the only problem that uses so much memory. SPOJ’s large input test problem also uses an astonishing amount of memory.
I am unable to find any evidence of such enormous memory allocation in my code - I am using a 32768 byte buffer in my BufferedReader class and 6400000 byte array to hold the given integers.
Could someone please explain this absurd memory usage?