cf/mirror

Find String in a Grid

CF
1252D3000· legendary gm5s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3 3 5
ABC
BCD
DAB
ABC
BC
BD
AC
A
Output
2
3
1
0
2
Sample 2of 2
Input
2 3 3
AAA
AAA
A
AAA
AAAAA
Output
6
4
0
1252D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…