Ticket 16131
Problem 1722 -e
Submission 170342106
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
3 1
3 4
3 3
3 3
3 2 4 4
Expected Output
0
Your Output
9
Difference
Generator Parameters
--h_or_w_high 4 --h_or_w_low 2 --n_high 3 --n_low 1 --q_high 1 --q_low 1 --t_high 1 --t_low 1