Codejammon trainers are actively looking for monsters, but if you are not a trainer, these monsters could be really dangerous for you. You might want to find safe places that do not have any monsters!
Consider our world as a grid, and some of the cells have been occupied by monsters. We define a safe square as a grid-aligned square of grid cells (with ) that does not contain any monsters. Your task is to find out how many safe squares (of any size) we have in the entire world.
输入格式
The first line of the input gives the number of test cases, . test cases follow. Each test case starts with a line with three integers, , , and . The grid has rows and columns, and contains monsters. more lines follow; each contains two integers and , indicating the row and column that the i-th monster is in. (Rows are numbered from top to bottom, starting from 0; columns are numbered from left to right, starting from 0.)
输出格式
For each test case, output one line containing Case #x: y, where is the test case number (starting from 1) and is the total number of safe zones for this test case.