Java 8 TLE with BufferedReader and not using Sort

Revision en2, by rajpm, 2019-09-21 18:03:25

I am getting TLE for a simple java program for reason I can't find. I read past blogs and found that using Scanner and sorting primitive type arrays is the general reason, but my program isn't in any of those category.

My submission: https://codeforces.net/contest/1206/submission/61017893

EDIT: Using the PrintWriter instead of System.out.printf() worked.

Tags #java8, #tle

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English rajpm 2019-09-21 18:03:25 71
en1 English rajpm 2019-09-21 17:09:31 344 Initial revision (published)