Ticket 8523
Problem 1685 -b
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
8
6 0 0 0
ABBABA
7 3 1 1
BAABAAAABAABBB
7 1 3 4
BBABBABAAABBAAABAABBAA
6 0 3 0
ABAABABAAAAA
10 5 3 3
AAAAAAAABAABABAABABBAAAAAAA
10 5 2 3
BBABBBBABAABAAABABABBBBBB
10 1 1 4
ABAAABABAAAABBAAAAAAA
3 4 2 1
AAAAAAABAABAA
Expected Output
NO
NO
NO
YES
NO
NO
NO
NO
Generator Parameters
--a_high 10 --a_low 1 --answer_exist 0 --b_high 5 --b_low 0 --c_high 4 --c_low 0 --d_high 4 --d_low 0 --t_high 10 --t_low 1