Java 8 TLE with BufferedReader and not using Sort

Правка en2, от 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://mirror.codeforces.com/contest/1206/submission/61017893

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

Теги #java8, #tle

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский rajpm 2019-09-21 18:03:25 71
en1 Английский rajpm 2019-09-21 17:09:31 344 Initial revision (published)