Ticket 7644
Problem 1686 -d
Submission 158486218
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 5 4
ABABAABABAABBAAAAABABAAB
2 2 4 5
BABBBAAABAAABAABBBAAAA
4 0 5 6
AAAAAABBAAABABABBABABAAAAA
1 3 4 2
BBAABAAAAAAABBAB
2 3 5 2
ABAABAAAABAAABBBBAB
Expected Output
NO
NO
NO
NO
NO
Your Output

          
Difference
Generator Parameters
--a_high 5 --a_low 1 --answer_exist 0 --b_high 5 --b_low 0 --c_high 5 --c_low 4 --d_high 7 --d_low 2 --t_high 7 --t_low 2