Ticket 4852
Problem 1661 -c
Submission 153503825
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
8
5
163391699 294654054 766482309 269041263 66135029 
8
199029623 61447576 320274564 307284381 101526478 431133960 231787669 929255449 
7
943395638 764722447 353334746 161469559 247897805 865125933 583904661 
6
904020780 145574400 107633650 303028956 256916709 545320171 
8
715452777 585047614 57789989 170941946 388096409 169596851 648955962 984667962 
6
292704882 612823947 556011334 749904012 798227165 923630281 
3
324708950 508455692 797615998 
4
863337682 893402440 490918532 704982203 
Expected Output
1515138128
3234869262
1789279118
2107753343
2771196124
1072320044
508044903
413979269
Your Output
1515138128
371557731
1789279118
2107753343
0
1072320044
508044903
413979269
Difference
Generator Parameters
--h_high 1000000000 --h_low 1 --n_high 9 --n_low 1 --t_high 10 --t_low 1