Ticket 3108
Problem 1660 -f1
Submission 151606492
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
6
6
+-+--+
5
+---+
8
-+--++-+
3
++-
1
+
8
-----++-
Expected Output
7
3
12
1
0
10
Your Output
7
3
12
1
0
7
Difference
Generator Parameters
--n_cap 3000 --n_high 9 --n_low 1 --t_cap 500 --t_high 10 --t_low 1