Shark help

Правка en1, от bhikkhu, 2018-06-05 17:29:25

http://codeforces.net/contest/982/problem/D

I don't get why we need to add +1 to a[i]. I understand that we need to add if n = 1. But why do we need to do so in other cases?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский bhikkhu 2018-06-05 17:29:25 188 Initial revision (published)