cf/mirror

Anagram Paths

CF
1168D3000· legendary gm4s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3 4
1 ?
1 ?
2 ?
2 a
3 b
2 b
Output
Shi 351
Shi 1
Fou
Shi 2
Sample 2of 2
Input
5 2
1 ?
1 ?
2 ?
3 ?
4 a
5 b
Output
Shi 352
Shi 3
1168D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…