Numbers n
, r
, c
are given as input. Output an array of size n
by n
, where r
and column c
> are 1 and the rest are 0 (use type np.int8
).
Example
# |
Input |
Output |
1 |
5 1 3 |
[[0 0 0 1 0]
[1 1 1 1 1]
[0 0 0 1 0]
[0 0 0 1 0]
[0 0 0 1 0]] |
Запрещенные операторы:if;for;while;do