#c22708. 二维差分2
二维差分2
2D Difference Array (II)
Problem Description
You are given an matrix and update operations.
Initially all positions are . Each update gives five numbers and adds to every with and .
Compute the value of the whole matrix after all operations.
Input Format
The first line contains three integers (, ).
The next lines each contain five integers (, , ).
Output Format
To avoid overly large output, output the XOR sum of all numbers in the matrix after all operations.
Sample Input
5 5 3
1 1 2 3 5
2 2 4 3 6
4 3 5 5 10
Sample Output
28