| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 28 | 15 | 14 | 60.870% |
Given a positive integer $n$, you should construct an $n \times n$ integer matrix $M$ satisfying the following conditions:
There may exist multiple solutions or no solution.
The first line contains a single integer $n$ ($1 \le n \le 1000$).
The first line must contain one string "Yes" (without quotes) if a solution exists, or "No" (without quotes) if there is no solution.
When a solution exists, print $n$ more lines, each containing $n$ integers, denoting the matrix $M$ you construct.
If multiple solutions exist, print any one of them.
2
Yes 1 0 1 -1
1
No