Ticket 7615
Problem 1686 -d
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
5
7 7 10 8
BAAABAAAAAAABAABBAABBABBBBBAABABBBBBAAAABBAAAAABAA
3 10 6 1
ABBABAAAAAAAAAABAAABBAAABAA
10 6 1 6
BAABBBBBBAAAABBBAABBBBABAABAAA
3 0 1 2
BBAABBBAA
7 10 6 8
AAABABBABAABBAAAAAABBAABAABAAAAAAAABAAAABABBA
Expected Output
NO
NO
NO
NO
NO
Generator Parameters
--a_high 10 --a_low 1 --answer_exist 0 --b_high 10 --b_low 0 --c_high 10 --c_low 0 --d_high 10 --d_low 0 --t_high 5 --t_low 5