Ticket 10707
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
467190
151605
149963
785243
476640
700367
534324
709598
750804
235246
Expected Output
77865 116797
-1
-1
-1
79440 119160
-1
89054 133581
118267 177399
125134 187701
39208 58811
Generator Parameters
--n_high 1000000 --n_low 1 --t_high 10 --t_low 10