The running time of Java solutions for this problem is as fast as C solutions. I've checked running time distribution of a dozen other problems and found that Java solutions are all at the same level as those of C solutions.
As I remember, C solutions are much faster than CPP solutions. CPP solutions are much faster than Java solutions. So, is there anything wrong here?