Ticket 16075
Problem 1715 -d
Submission 169280345
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
4 3 30
3 2 28
4 3 30
2 5 14
Expected Output
0 0 28 2 14
Your Output
0 0 28 30 14
Difference
Generator Parameters
--n_high 5 --n_low 1 --original_array_values_high 16 --original_array_values_low 0 --q_high 5 --q_low 0