Java problem : Submissions getting TLE even after using optimal solution and fast io

Revision en1, by DPR, 2021-06-13 14:54:37

PROBLEM : 1538C - Количество пар

119286813 -> my submission

119286794 -> some guy's java submission which got accepted

I fail to understand why my submission is failing when is has the exact same logic as the submission which got accepted.

I tried to make it work, but nothing seems to work.

I guess i'll have to say fuck off to java and use C++, because this is just demoralizing.

Tags #help, #help me, #i-need-an-answer, wtf?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English DPR 2021-06-13 14:54:37 510 Initial revision (published)