Ticket 8902
Problem 1686 -d
Submission 158977238
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
2 0 5 1
BABBBAAABBABBB
2 0 4 3
AAABBBAAABABABAB
Expected Output
NO
NO
Your Output
NO
YES
Difference
Generator Parameters
--a_high 5 --a_low 1 --answer_exist 0 --b_high 5 --b_low 0 --c_high 5 --c_low 0 --d_high 5 --d_low 0 --t_high 2 --t_low 1