cf/mirror

Alphabet Permutations

CF
610E2500· grandmaster1s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
7 4 3
abacaba
1 3 5 b
2 abc
1 4 4 c
2 cba
Output
6
5
610E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)