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

Правка en2, от skpro19, 2016-01-20 10:58:38

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)