Ticket 12089
Problem 1684 -c
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
1
2 9
4 2 9 3 9 3 5 3 9 
3 9 5 9 6 1 1 9 8 
Expected Output
-1
Generator Parameters
--answer_exists 0 --col_high 9 --col_low 1 --row_high 9 --row_low 1 --t_high 1 --t_low 1 --val_high 9 --val_low 1