Ticket 7035
Problem 1680 -b
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
1 1
R
3 2
ER
ER
EE
Expected Output
YES
YES
Generator Parameters
--row_or_col_high 3 --row_or_col_low 1 --t_high 2 --t_low 1