cf/mirror

Strange Game On Matrix

CF
873C1600· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4 3 2
0 1 0
1 0 1
0 1 0
1 1 1
Output
4 1
Sample 2of 2
Input
3 2 1
1 0
0 1
0 0
Output
2 0
873C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)