Ticket 17306
Problem 1925 -e
Submission 1
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
6 3 2
2 1 6 
2 2 1 
1 5 1
2 1 6
Expected Output
6
Your Output
8
Difference
Generator Parameters
--n_high 6 --n_low 6 --q_high 3 --q_low 1 --val_high 2 --val_low 1