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