Ticket 7038
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
3 3
RRE
EEE
ERR
1 3
EER
Expected Output
YES
YES
Generator Parameters
--row_or_col_high 3 --row_or_col_low 1 --t_high 2 --t_low 1