All about problems in Volume 121. If there is a thread about your problem, please use it. If not, create one with its number in the subject.
Moderator: Board moderators
2 posts • Page 1 of 1
Hi, I've tried to solve this problem both in Java and C++ by using ternary search. Even though I'm using the same strategy, Java's verdict is Time Limit Exceeded and C++'s verdict is Accepted. Looking at the problem statistics, it looks like the judge is giving Time Limit Exceeded to almost every Java submission. There is only one Accepted submission in Java.