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

27097번 - Largest Matrix Subsequences 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB62181425.926%

문제

Define an 'increasing sequence' as a matrix of numbers which grows when read from left to right and from top to bottom along every row and every column. An example:

1 2 3 6
3 5 7 9

Find the largest increasing sequence sub-matrix (or sub-matrices) in a matrix of integers (whose range is [0..32,000]). The largest sub-matrix is that sub-matrix with the largest product of nrows*ncolumns. If more than one largest sub-matrix exists, print each of them, with the list in 'numerical order'.

In the example above, row 1 is "1 2 3 6" and column 1 is "1 3".

입력

  • Line 1: Two space separated integers: R, C (1 ≤ R,C ≤ 150). These are the number of rows and columns, respectively.
  • Line 2..end: R*C space-separated integers that represent the matrix. These integers are presented 20 per line, except possibly the last line. The first integer belongs in row 1 column 1; the second integer belongs in row 1 column 2; and so on for a total of R*C integers.

출력

A series of one or more lines, each with four space-separated integers. The first two integers are the row and column of the upper left element; the second two integers are the extent of the submatrix (number of rows, number of columns).

제한

예제 입력 1

3 4
8 2 3 9
3 5 7 8
7 2 1 9

예제 출력 1

1 2 2 2
2 1 1 4

힌트

출처

Olympiad > USA Computing Olympiad > 1999-2000 Season > USACO Spring 2000 Contest > Green 4번

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

출처

대학교 대회

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

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