Ticket 7967
Problem 1686 -d
Submission 158540178
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
2
5 4 4 0
AAABABBABBAAABBAB
9 4 14 7
BBABABAAABABBAAABBABBABAABBABAABABAABBAABBABABAAABBAAAA
Expected Output
YES
YES
Your Output
YES
NO
Difference
Generator Parameters
--a_high 20 --a_low 1 --answer_exist 0 --b_high 20 --b_low 0 --c_high 20 --c_low 0 --d_high 20 --d_low 0 --t_high 2 --t_low 1