#4004. C++-GESP 2025-09认证四级-编程题01(排兵布阵)

C++-GESP 2025-09认证四级-编程题01(排兵布阵)

Background

Description

image image

Format

Input

Output

Samples

4 3 
0 1 1 
1 0 1 
0 1 1 
1 1 1
4
3 5 
1 0 1 0 1 
0 1 0 1 0 
0 1 1 1 0
3

Limitation