The next M lines contain the amount of energy required to cause a crack in each
sub-region. Each Line represents a row where line 1+i represents the i-th row of the subregions.
Note that the first of these M line is line 1+1, which represents the northnmost part
of a seabed area. In addition, each line contains N integers denoting the amount of energy.
These integers are separated by one or more space. The j-th column shows the amount of
energy to cause a crack in the j-th sub-region of its represented row. The amounts of energy
are positive integers not larger than 1,000,000.
Output
For each test case, your program writes one integer representing the total amount of
energy required to cause the most likely crack in a test case. Each integer, including the last
one, is followed by a new-line character.
The next M lines contain the amount of energy required to cause a crack in eachsub-region. Each Line represents a row where line 1+i represents the i-th row of the subregions.Note that the first of these M line is line 1+1, which represents the northnmost partof a seabed area. In addition, each line contains N integers denoting the amount of energy.These integers are separated by one or more space. The j-th column shows the amount ofenergy to cause a crack in the j-th sub-region of its represented row. The amounts of energyare positive integers not larger than 1,000,000.OutputFor each test case, your program writes one integer representing the total amount ofenergy required to cause the most likely crack in a test case. Each integer, including the lastone, is followed by a new-line character.
การแปล กรุณารอสักครู่..