本站作为LDUOnlineJudge的测试版本进行演示,官方网站请访问http://icpc.ldu.edu.cn
[Hidden]

1093. 单点修改,区间查询


Description

Input

Output

对于每个 2 l r 操作输出一行,每行有一个整数,表示所求的结果。

Samples

Input Copy
3 2
1 2 3
1 2 0
2 1 3
Output
6

Hint

Source

树状数组 loj130
Problem Information

Time Limit: 3000MS (C/C++,Others×2)
Memory Limit: 128MB (C/C++,Others×2)
Special Judge: No
AC/Submit: 2 / 2
Tags:
My history solutions

You didn't submit any solution!
Submit your solution

Login Register