Ticket 7569
Problem 1686 -d
Submission 158475460
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 0 1 4
ABAAABBABBABA
4 3 4 4
AABBBBABABABABBAAAAAABB
1 0 3 2
ABABBABABAA
4 3 0 1
AABABBABB
1 0 1 1
BBABA
Expected Output
NO
NO
NO
NO
NO
Your Output
NO
NO
YES
NO
NO
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 8 --t_low 1