Why does this code work?

Правка en1, от callisto, 2016-12-04 18:42:41

code

In this code I minimize the difference between prefix sums only, but don't consider the difference of indexes. I think there might be test where prefix sums difference is bigger, but indexes difference is small, and it can be answer.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский callisto 2016-12-04 18:42:41 322 Initial revision (published)