My solution gets TLE on 712D (Memory and Scores)

Правка en1, от dcordb, 2016-09-11 22:22:05

Hi everyone. My solution to problem 712D gets TLE, even though its complexity is . Where d is the difference between the score of Memory and Lexa. Note that  - 2·105 ≤ d ≤ 2·105.

The funny thing is that in my laptop (Intel Core i5, 4gb ram) my solution runs in 1.2s. What do you think about this, is CF that slow? Anyway could you help me?

Теги tle, 712d, help

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский dcordb 2016-09-11 22:22:05 540 Initial revision (published)