| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 512 MB | 110 | 61 | 51 | 59.302% |
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