Ticket 11956
Problem 1690 -f
Submission 160204856
View hacks & all small testcases

Unable to dry run this testcase?
Try making a new request with small values of n_high, t_high, *_high, etc.


Retry
Input
3
7
bcaacac
3 4 7 5 6 2 1 
1
b
1 
1
g
1 
Expected Output
6
1
1
Your Output
12
1
1
Difference
Generator Parameters
--alpha_size_high 10 --alpha_size_low 1 --n_high 8 --n_low 1 --t_high 3 --t_low 1