1. 程式人生 > >找出最大矩形面積(列舉)

找出最大矩形面積(列舉)

The input consists of several test cases. For each case, n is given in a single line, and then followed by n lines, each containing wi and hi separated by a single space. The last line of the input is an single integer -1, indicating the end of input. You may assume that 1 <= n <= 50000 and w 11+w 22+...+w nn < 10 9.