Given an N x M binary matrix, find the area of the biggest rectangle consisting entirely of values of 1, knowing that you can permute the columns of the matrix.
입력 10 6 001010 111110 011110 111110 011110 111111 110111 110111 000101 010101 출력 21 By permuting the columns such that columns 2, 4 and 5 are adjacent you have a rectangle of area 21 (rows 2-8 and columns 2, 4, 5).
출처:ceoi/2009/