yet another "time limit exceeded" post

Write here if you have problems with your Java source code

Moderator: Board moderators

Post Reply
New poster
Posts: 3
Joined: Thu Mar 31, 2011 11:44 pm

yet another "time limit exceeded" post

Post by davidbak »

I've been using the judge at in Java. Why Java? Why not. Anyway, I wanted to get started with the judge for various reasons, mainly the wider variety of problems, but also that some problems at can't be judged properly and they suggest trying here.

Anyway, I uploaded submissions in Java to two very simple problems (10137/The Trip and 706/LCD Display) which already passed the judge, and for both submissions got time limit exceeded.

Both solutions are very straightforward and use the Java template (that is, the readln() function, Main class, etc.).

So ... what is the strategy for getting Java solutions to pass this judge? Or should I switch to C++?

(I should mention I'm using Java 1.5/1.6.)

Thanks -- David

Post Reply

Return to “Java”