5486: A Simple Problem

内存限制:256 MB 时间限制:2.000 S
评测方式:文本比较 命题人:
提交:2 解决:1

题目描述

输入

输出

For each operation of type 2, output the answer in a single line.

样例输入 复制

2
5 3 3
1 2 5 2
1 3 4 -1
2 1 4
10 4 10
1 1 6 6
1 3 8 -6
2 2 6
1 4 8 -8
1 4 9 4
1 4 5 -7
2 4 8
1 6 7 8
1 1 3 -2
2 3 7

样例输出 复制

2
0
-4
4