Ticket 16808
Problem 1805 -e
Submission 200635485
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
4
4 1
2 4
3 1
6 6 8 8 
Expected Output
0
8
6
Your Output
0
8
0
Difference
Generator Parameters
--n_high 4 --n_low 2 --val_high 9 --val_low 1