시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 512 MB | 44 | 23 | 18 | 54.545% |
You are given a positive integer $n$. Construct such matrix $2^n \times 2^n$ that:
A submatrix is a contiguous rectangle of elements in the original matrix.
The first line contains an integer $n$ ($1 \le n \le 10$).
On the very first line, print "YES
" if the answer exists, or "NO
" if not.
If the answer exists, print any such matrix on the next $2^n$ lines, with each line containing $2^n$ space-separated integers.
1
NO