Ticket 8451
Problem 1651 -c
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
1
10
426780071 911295158 544261444 769526289 308070106 781439519 294458825 328870250 358008557 475429617 
753977378 694862671 793815562 162400795 197067277 648586130 835139745 558157427 344439755 794950186 
Expected Output
194127704
Generator Parameters
--n_high 10 --n_low 10 --t_high 1 --t_low 1 --val_high 1000000000 --val_low 1