cf/mirror

Game with Points

CF
386D2100· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4
2 3 4
*aba
a*ab
ba*b
abb*
Output
1
4 1
Sample 2of 2
Input
4
2 3 4
*abc
a*ab
ba*b
cbb*
Output
-1
386D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…