Maximal Binary Matrix
803A1400· specialist1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
2 1
Output
1 00 0
Sample 2of 3
Input
3 2
Output
1 0 00 1 00 0 0
Sample 3of 3
Input
2 5
Output
-1
58%
803A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
2 1
1 00 0
3 2
1 0 00 1 00 0 0
2 5
-1