Ticket 678
Problem 1644 -e
Submission 147836280
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
3
DRRD
2
RD
Expected Output
5
3
Your Output
6
3
Difference
Generator Parameters
--choose_path_len_dynamically 0 --n_cap 100000000 --n_high 7 --n_low 2 --path_len_high 9 --path_len_low 1 --t_cap 10000 --t_high 2 --t_low 1