Re: 12197 - Trick or Treat
Posted: Mon Nov 03, 2014 12:30 pm
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.