Ticket 8642
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
2 4 2 2
AAABBABABBBABA
2 4 2 2
ABBBAAABBBABAB
1 3 2 3
BABBABABAABBAA
4 4 2 3
AABAABAABBBBAABABB
1 3 2 2
BBABAAAAABAA
Expected Output
NO
YES
NO
YES
NO
Generator Parameters
--a_high 5 --a_low 1 --answer_exist 0 --b_high 5 --b_low 0 --c_high 3 --c_low 2 --d_high 3 --d_low 2 --t_high 10 --t_low 1