Why my JAVA code gives TLE?

Revision en1, by Siriuslight, 2019-02-21 10:11:36

I have started learning JAVA recently. I wrote a code for this problem.

Reference to my code is here.

I can't find out why it is giving me TLE. Can someone help out?

Tags #tle, #java

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Siriuslight 2019-02-21 10:19:36 77
en1 English Siriuslight 2019-02-21 10:11:36 306 Initial revision (published)