luogu#P12115. [NWRRC2024] Keyboard Chaos

[NWRRC2024] Keyboard Chaos

1 26
win
f
3 3
abc
bca
cab
aa
4 2
aab
bb
a
bab
NO