Pattern Matching
1476E2300· international master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5 3 4_b_d__b_aaaaab___bcdabcd 4abba 2dbcd 5
Output
YES3 2 4 5 1
Sample 2of 3
Input
1 1 3__ccba 1
Output
NO
Sample 3of 3
Input
2 2 2a__bab 1ab 2
Output
NO
58%
1476E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…