Ticket 3090
Problem 1660 -f1
Submission 151600893
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
6
+--+-+
2
--
2
-+
6
-+----
9
----+----
7
+--+++-
5
+-+-+
6
++++--
6
-++-++
9
+--+---+-
Expected Output
7
0
1
6
13
6
6
2
4
14
Your Output
7
0
1
6
11
6
6
2
4
14
Difference
Generator Parameters
--n_cap 3000 --n_high 9 --n_low 1 --t_cap 500 --t_high 10 --t_low 1