That is unfortunate, indeed, since the JVM would have a bit more overhead at startup. BTW, I translated my Java solution in C++, submitted it and got accepted with a 0.02 sec runtime. For the same solution in Java I get TLE, which proves that SPOJ has room for improvement here to allow java devs use this platform too. SPOJ may improve this by benchmarking properly, and therefore, begin measuring the execution time when the JVM has started and is about to execute the code. Regardless of the approach, there are many solutions to let Java devs be accepted on SPOJ platform. I’d appreciate it very much if I could use Java here.