Ticket 16701
Problem 1782 -e
Submission 189430350
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 1 1 1
1 1 1 2
1 1 2 4
Expected Output
8
0 0 0 0
0 0 0 0
1 1 2 4
Your Output
9
0 0 0 0
1 2 1 2
1 1 2 4
Difference
Generator Parameters
--l_or_r_high 4 --l_or_r_low 1 --n_high 3 --n_low 1 --t_high 1 --t_low 1 --u_or_d_high 2 --u_or_d_low 1