Two almost same solution in java one gets AC and another one gets TLE??

Revision en1, by insane_banda, 2021-10-14 04:00:23

So I just found out that my solution which is almost same as this one gets TLE on test case 8 while latter got AC.

I can't figure-out why this happened?

Problem link -> C.Save More Mice


  Rev. Lang. By When Δ Comment
en2 English insane_banda 2021-10-14 05:14:37 285
en1 English insane_banda 2021-10-14 04:00:23 431 Initial revision (published)