Ticket 17294
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 4
2 1 6 
5 1 2 
2 5 6
1 3 2
1 4 1
2 1 6
Expected Output
5
1
Your Output
5
8
Difference
Generator Parameters
--n_high 6 --n_low 2 --q_high 5 --q_low 1 --val_high 5 --val_low 1