Ticket 16876
Problem 1838 -d
Submission 209321147
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
10 3
)()))((()(
1
10
7
Expected Output
NO
YES
YES
Your Output
no
no
yes
Difference
Generator Parameters
--n_high 10 --n_low 10 --q_high 5 --q_low 1