cf/mirror

Task On The Board

CF
1367D1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
abac
3
2 1 0
abc
1
0
abba
3
1 0 1
ecoosdcefr
10
38 13 24 14 11 5 3 24 17 0
Output
aac
b
aba
codeforces
1367D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)