Why the java solution gives TLE?

Revision en1, by satyabratasbr, 2021-02-16 16:39:01

https://www.codechef.com/viewsolution/42519253 Why the above java solution give TLE while the same approach in C++ gives AC?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English satyabratasbr 2021-02-16 16:39:01 157 Initial revision (published)