Ticket 17419
Problem 1948 -g
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
3 5
0 1 0 
1 0 6 
3 6 0 
Expected Output
12
Your Output
226164737 
Difference
Generator Parameters
--c_high 9 --c_low 1 --n_high 5 --n_low 2 --wi_high 9 --wi_low 0