Java TLE

Revision en1, by CP_Sucks, 2021-07-12 05:42:07

Problem : https://cses.fi/problemset/task/1674/

Code 1 : https://hastebin.com/dahepocuke.java

Code 2 : https://hastebin.com/ayomexiwez.java

Both code give TLE on 1 large testcase , any optimisation to AC ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English CP_Sucks 2021-07-12 05:42:07 224 Initial revision (published)