|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|5 초||512 MB||3||1||1||50.000%|
Consider a positive integer X and an N by N matrix A with positive integer entries. Determine the minimum area of a continuous submatrix for which the bitwise or of all its elements equals X.
The standard input contains on the first line integers X and N, separated by a space. On the following N lines there are N positive integers separated by spaces representing a matrix line
The standard output will contain a positive integer representing the minimum area of the submatrix.
11 4 5 9 1 8 7 7 3 1 2 3 1 9 5 5 8 7