CSES Java TLE??

Revision en1, by global_optimum, 2020-08-11 06:43:34

For a few of the CSES Sorting and Searching problems, such as Apartments, Concert Tickets, and Traffic Lights, and Movie Festival 2, I can't avoid TLE on the largest testcases in java.

Here is code for Movie Festival 2, https://ideone.com/AKdglG

I am using bufferedreader already, but CSES time limit seems to strict. Any tips? Or should I accept my fate as a java user and not care since CF and other platforms don't have 1sec limits?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English global_optimum 2020-08-11 06:43:34 456 Initial revision (published)