Sieve
Problem
Numbers
n
,
m
,
r
,
c
are given as input. Output an array of size
n
by
m
, in which in each
r
-th line and each
c
-th column are
0
, and the remaining elements are
1
.
Examples
# |
Input |
Output |
1 |
6 7 2 3 |
[[0 0 0 0 0 0 0]
[0 1 1 0 1 1 0]
[0 0 0 0 0 0 0]
[0 1 1 0 1 1 0]
[0 0 0 0 0 0 0]
[0 1 1 0 1 1 0]] |
Запрещенные операторы: if
; for
; while
; do