Logo
(追記) (追記ここまで)

33248번 - Balloon Party 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB155457.143%

문제

The Floating Poodle Company (FPC) is planning on selling balloon animals on festivals. To make these animals float, they are going to fill them with helium. Since they have run out of helium canisters, they are going to store their helium below the ceilings of the party tents from which they sell the balloons.

Because of environmental laws, they are not allowed to spill any helium. This means that they must be careful not to put too much of it into any of the party tents, since if the helium level drops below any part of the edges of the ceiling, this surplus of helium will be blown away and contaminate the atmosphere. They have asked you to calculate the maximum amount of helium they can fit inside one of the tents.

입력

  • One line with two integers: $ 1 \leq w \leq 1000 $ and $ 1 \leq l \leq 1000 $: the width and length of the tent.
  • $ l $ lines, each with $ w $ integers in the range $[1, 1000]$. Each of these integers describes the height above the ground of a 1ドル \times 1$ section of tent ceiling. For this assignment, assume that every one of these sections is completely horizontal.

출력

The maximum amount of helium that the company can fit below the ceiling of the tent.

제한

예제 입력 1

3 3
1 1 1
1 2 1
1 1 1

예제 출력 1

1

예제 입력 2

4 5
1 2 3 2
2 3 2 3
2 4 2 2
3 2 5 2
2 3 2 1

예제 출력 2

6

힌트

출처

University > Delft University of Technology > Freshmen Programming Contest 2019 B번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /