Round 318 Div1 B solution

Правка en1, от I_love_Captain_America, 2015-08-30 13:48:03

The editorial and problem setter's code is not clear to me. Can someone explain the code. I don't understand how he reduced O( n^2 ) to just O( n ) . Please explain this to me .

Thanks!

Теги dp

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский I_love_Captain_America 2015-08-30 13:48:03 213 Initial revision (published)