Ticket 8643
Problem 1686 -d
Submission 158837041
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
3 5 3 3
AABABBAAABAAABBBABAB
2 0 3 2
BABAAAAABBAB
4 4 2 2
BABABBABAABBBAAB
1 2 3 3
ABABBAABBBAAAAA
1 1 2 3
ABABBAABBAAB
Expected Output
NO
NO
NO
NO
YES
Your Output
NO
NO
NO
NO
NO
Difference
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