Ticket 6168
Problem 1671 -e
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
5
BBBBABABBBABABBBABBBBABBBABABBB
Expected Output
2048
Generator Parameters
--pow_of_two_high 5 --pow_of_two_low 2