Why does this code work?

Revision en1, by 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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English callisto 2016-12-04 18:42:41 322 Initial revision (published)