Can someone explain Atcoder 269 Problem F solution?

Правка en1, от yh11, 2022-09-19 11:11:21

I just read Problem F editorial.

I realise that computing the sum of the box is not very difficult. (Its just some interpolation of the sum of first n natural numbers).

But in this editorial the answer has directly been provided and the explanation for the jumps in reasoning are skipped.

I was hoping someone could provide an explanation to fill in the gaps of this editorial.
Thanks. :)

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский yh11 2022-09-19 11:14:01 107
en1 Английский yh11 2022-09-19 11:11:21 504 Initial revision (published)