示例 1:
输入:
["SubrectangleQueries","getValue","updateSubrectangle","getValue","getValue","updateSubrectangle...","getValue","getValue"]
[[[[1,2,1],[4,3,4],[3,2,1],[1,1,1]]],[0,2],[0,0,3,2,5],[0,2],[3,1],[3,0,3,2,10...subrectangleQueries.getValue(0, 2); // 返回 5
示例 2:
输入:
["SubrectangleQueries","getValue","updateSubrectangle...","getValue","getValue","updateSubrectangle","getValue"]
[[[[1,1,1],[2,2,2],[3,3,3]]],[0,0],[0,0,2,2,100...(1, 1, 2, 2, 20);
subrectangleQueries.getValue(2, 2); // 返回 20
提示:
最多有 500 次 updateSubrectangle 和 getValue