{"trustable":true,"sections":[{"title":"题目描述","value":{"format":"MD","content":"这是一道模板题。\r\n\r\n给出一个 $n\\times m$ 的零矩阵 $A$,你需要完成如下操作:\r\n\r\n- `1 a b c d k`:表示左上角为 $(a,b)$,右下角为 $(c,d)$ 的子矩阵内所有数都自增 $k$;\r\n- `2 x y`:表示询问元素 $A_{x,y}$ 的值;"}},{"title":"输入格式","value":{"format":"MD","content":"输入的第一行有两个正整数 $n,m$; \r\n接下来若干行,每行一个操作,直到文件结束。"}},{"title":"输出格式","value":{"format":"MD","content":"对于每个 `2` 操作,输出一个整数,表示对于这个操作的回答。"}},{"title":"样例","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e2 2\n1 1 1 2 2 5\n1 1 2 2 2 -3\n2 1 1\n2 1 2\n2 2 1\n2 2 2\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e5\n2\n5\n2\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"数据范围与提示","value":{"format":"MD","content":"$1\\le n,m\\le 2^{12},1\\le x,a,c\\le n,1\\le y,b,d\\le m,|k|\\le 10^5$,保证操作数目不超过 $3\\times 10^5$,且操作的子矩阵存在。"}}]}