Ticket 7422
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
381105
748562
910137
685468
235285
617936
975501
202990
278760
32278
Expected Output
-1
124761 187140
-1
114245 171367
-1
102990 154484
-1
33832 50747
46460 69690
5380 8069
Generator Parameters
--n_high 1000000 --n_low 1 --t_high 10 --t_low 10