. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other is to ask for the sum of numbers in a given interval.
You have N integers, A_1, A_2, ... , A_N. A 1 ,A 2 ,...,A N . You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other is to ask for the sum of numbers in a given interval.

(图片来源网络,侵删)
标签: HBC51100★★比赛新机制★★ 递推 枚举 前缀和A Simple Problem with Integers题解