After Tianyi ate some food, she decided to bury the evidence she had eaten. Because she's afraid that Zhengling will know it.
First, the square is a big hole that the acreage is N * N. At each step, Tianyi will choose a coordinate to bury.
Then Tianyi will ask you that during step X to step Y, the sum of maximum independent holes area.
For example:
The big hole is 3 * 3. Step 1 buries (2, 2), so the maximum independent hole area is 8. Step 2 buries (2, 1), so the maximum independent hole area is 7. Step 3 buries (2, 3), so the maximum independent hole area is 3.
That is, from step 1 to step 3, the sum of independent hole is (8 + 7 + 3) = 18.
3 1 1 1 3 2 2 2 3 3 2 1 2 3 3 2 1 3 1 1 1 1
8
无
XadillaX