Ticket 16807
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
5
4 1
5 2
4 3
5 3
8 2 2 1 8 
Expected Output
2
8
2
0
Your Output
0
8
0
0
Difference
Generator Parameters
--n_high 5 --n_low 2 --val_high 9 --val_low 1