Strange Game On Matrix
873C1600· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
4 3 20 1 01 0 10 1 01 1 1
Output
4 1
Sample 2of 2
Input
3 2 11 00 10 0
Output
2 0
58%
873C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
4 3 20 1 01 0 10 1 01 1 1
4 1
3 2 11 00 10 0
2 0