Ticket 16398
Problem 1740 -d
Submission 178675804
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
5 7 9
1 4 9 2 7 6 5 8 3 
4 3 3
1 3 2 
Expected Output
YA
YA
Your Output
1
Difference
Generator Parameters
--k_high 9 --k_low 1 --row_or_col_high 9 --row_or_col_low 3 --t_high 2 --t_low 1