I'm getting tired of getting TLE in some problems!
I aways try to optimize my code, but in some problems it is just not enough...
![:(](./images/smilies/icon_frown.gif)
Can anyone help me out?
[java][/java]
Moderator: Board moderators
In some cases Java is faster than C++. I believe foreach is an example of one. Though, that might be the case for the current Java and not the outdated one that the online judge is running.Maniac wrote: I'm sorry to disappoint you, but there are lots of problems which can't be solved with Java just because Java is some factor slower than the other languages (and the admins don't take this into account).
I tryed using all the tricks in this post to solve 498, and got AC after 1.2sec..pandre. wrote:I aways try to optimize my code, but in some problems it is just not enough...some examples are problems number 498 (Polly the polynomial) and 583 (Prime Factors)
[java][/java]