Problem
Input ialah nombor
n. Cetak tatasusunan saiz
n oleh
n, di mana baris dengan indeks genap mengandungi 1 dan selebihnya — sifar.
Contoh
| # |
Input |
Output |
| 1 |
5 |
[[1 1 1 1 1]
[0 0 0 0 0]
[1 1 1 1 1]
[0 0 0 0 0]
[1 1 1 1 1]] |
jadual>
Запрещенные операторы: if; for; while; do