Ticket 14013
Problem 1691 -c
Submission 161499722
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
2
17 1
11111111110111111
2 9
10
Expected Output
165
1
Your Output
165
10
Difference
Generator Parameters
--k_high 9 --k_low 0 --n_high 20 --n_low 2 --t_high 2 --t_low 1