SP1672 GIWED - The Great Indian Wedding
Description
A wedding is to be organized in a rectangular park of dimensions M by N. Some parts of the park are covered by K rectangular carpets. These carpets, produced by ItSucks Corporation are revolutionary self cleaning carpets - they suck any liquid they come in contact with! The organizer wants to water the park to keep the grass fresh. If there were no carpets, the organizer could have used a single pipe to water the whole park but unforunately, the water doesn't seep through the carpets. The organizer has at his diposal L pipes. The pipes would be placed at fixed locations chosen by the organizer and can't be moved. Water spreads from a pipe in all directions unless obstructed by the park boundary or a carpet. What is the maximum area that can be watered using these L pipes?
Input Format
The first line of the input contains a single integer T, the number of test cases (1
Output Format
For each test case, print the maximum area that can be watered on a single line