Олимпиадный тренинг

Задача 37535. Honorary units


Задача

Темы: NumPy
The input is a number n. Print an array of size n by n, in which the lines with even indices contain 1, and the rest — zeros.
 
Examples
# 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]]

Запрещенные операторы:if;for;while;do