cf/mirror

A-B Palindrome

CF
1512C1200· pupil2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
9
4 4
01?????0
3 3
??????
1 0
?
2 2
0101
2 2
01?0
0 1
0
0 3
1?1
2 2
?00?
4 3
??010?0
Output
01011010
-1
0
-1
0110
-1
111
1001
0101010
1512C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)