Ticket 9505
Problem 1679 -a
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
10
965888
926210
85832
589002
253147
127756
490100
586766
752716
824012
Expected Output
160982 241472
154369 231552
14306 21458
98167 147250
-1
21293 31939
81684 122525
97795 146691
125453 188179
137336 206003
Generator Parameters
--n_high 1000000 --n_low 1 --t_high 10 --t_low 10