Ticket 17422
Problem 1782 -e
Submission 189357186
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
5
1 9 2 9
1 1 2 2
1 3 2 6
1 7 1 9
1 1 2 4
Expected Output
16
2 9 2 9
1 1 2 2
1 5 2 6
1 7 1 9
1 3 2 4
Your Output
11
Difference
Generator Parameters
--l_or_r_high 9 --l_or_r_low 1 --n_high 9 --n_low 1 --t_high 1 --t_low 1 --u_or_d_high 2 --u_or_d_low 1