{"trustable":false,"sections":[{"title":"","value":{"format":"PLAIN","content":"To enable homebuyers to estimate the cost of ood insurance, a real-estate rm provides clients withthe elevation of each 10-meter by 10-meter square of land in regions where homes may be purchased.Water from rain, melting snow, and burst water mains will collect first in those squares with the lowest elevations, since water from squares of higher elevation will run downhill. For simplicity, we also assume that storm sewers enable water from high-elevation squares in valleys (completely enclosed by still higher elevation squares) to drain to lower elevation squares, and that water will not be absorbed by the land.\n\nFrom weather data archives, we know the typical volume of water that collects in a region. As prospective homebuyers, we wish to know the elevation of the water after it has collected in low-lying squares, and also the percentage of the region\u0027s area that is completely submerged (that is, the percentage of 10-meter squares whose elevation is strictly less than the water level). You are to write the program that provides these results.\n\n为了使购房者能够估计房屋保险的成本,房地产公司向客户提供了可能购买房屋的地区的每块10米乘10米的土地的海拔高度.来自雨水、融雪和水管破裂的水将首先聚集在海拔最低的方块上,因为海拔较高的方块的水将向下流动。为了简单起见,我们还假设雨水管道能使山谷中高海拔方块(完全被高海拔方块包围)的水排到低海拔方块,并且水不会被土地吸收\n\n从气象数据档案中,我们知道一个地区典型的集水量。作为准购房者,我们希望知道水在低洼方格中聚集后的高程,也希望知道该地区完全被淹没的面积比例(即10米方格中高程严格小于水位的比例)。你要编写提供这些结果的程序。"}},{"title":"输入内容","value":{"format":"PLAIN","content":"The input consists of a sequence of region descriptions. Each begins with a pair of integers,m and n, each less than 30, giving the dimensions of the rectangular region in 10-meter units. Immediately following are m lines of \n n integers giving the elevations of the squares in row-major order. Elevationsare given in meters, with positive and negative numbers representing elevations above and below sealevel, respectively. The final value in each region description is an integer that indicates the number of cubic meters of water that will collect in the region. A pair of zeroes follows the description of the last region.\n\n输入由一连串的区域描述组成。每一序列都以一对整数m和n开始,每一个整数小于30,以10米为单位给出矩形区域的尺寸。紧接着是m行的 \n n个整数,按行大数顺序给出方块的海拔高度。海拔高度以米为单位,正数和负数分别代表高于和低于海平面的高度。每个区域描述中的最后一个值是一个整数,表示该区域将收集的水的立方米数。在最后一个区域的描述后面有一对零。\n"}},{"title":"output","value":{"format":"PLAIN","content":"For each region, display the region number (1, 2, . . . ), the water level (in meters above or below sealevel) and the percentage of the region\u0027s area under water, each on a separate line. The water level and percentage of the region\u0027s area under water are to be displayed accurate to two fractional digits.Follow the output for each region with a blank line.\n\n对于每个区域,显示区域号(1、2、......)、水位(以高于或低于海平面的米为单位)和该区域水下面积的百分比,每一行都要单独显示。水位和区域水下面积的百分比要精确到两位小数。"}},{"title":"Sample Input","value":{"format":"PLAIN","content":"3 3\n25 37 45\n51 12 34\n94 83 27\n10000\n0 0\n"}},{"title":"Sample Output","value":{"format":"PLAIN","content":"Region 1\nWater level is 46.67 meters.\n66.67 percent of the region is under water."}}]}