O(n^2) solution is getting accepted but O(n * (n — 1)) solution is getting TLE

Правка en1, от skpro19, 2016-01-20 10:57:21

The problem is Almost Arithmetic Sequences.

Accepted Solution

Time limit exceeded

Can someone please figure out why is this happening?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский skpro19 2016-01-20 10:58:38 40
en1 Английский skpro19 2016-01-20 10:57:21 350 Initial revision (published)