cf/mirror

AB Graph

CF
1481D2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5
3 1
*ba
b*b
ab*
3 3
*ba
b*b
ab*
3 4
*ba
b*b
ab*
4 6
*aaa
b*ba
ab*a
bba*
2 6
*a
b*
Output
YES
1 2
YES
2 1 3 2
YES
1 3 1 3 1
YES
1 2 1 3 4 1 4
NO
1481D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…