Ticket 4629
Problem 1660 -f1
Submission 151589160
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
50
34
+--+-+---+-++-+----+----+-----+--+
42
+-++-+-++++++--+-++-++-+--+---+--+++++--++
33
---+-+--++-+-+--++-+-+-+------+++
46
-++++--++--+-+-+--+++-++--++++-+--+--++++++++-
58
-+-+-+++-+-+-++-++-+---+-+-+-+-++-+++--+-+-----+---+----+-
21
-----++----+--++-++++
30
+-------+--+--+----++++-+-+++-
50
+-+++-++++-+-+-+-++++++++-+---------++-++----+++-+
27
-+-+-++-+---++++++----+++++
35
-+++-++-+----+---+----++++-++++++++
27
++---++-----+--+-+-+-++-+++
33
+---+--++++--++---++-+-+-++-++---
51
-+++--++-+---+-+++-+-+--+++-+--+++----++----+--++++
23
---+++-+----+--+-++++-+
35
-+------++-++++---+---++-++++----++
41
+++++------++++--+-+++---+++-+--+----++-+
21
+++--+---+--+++++----
50
+++++----+-+++++--+-++---+-+-+-+-++++------+----++
56
-+-++-+--++++--+---++++-++--+++++++++-+-++-+-+-+--++-+++
49
+--+-+--+-++--+++++--+-+-++++++++---+---+-++-+-+-
42
++-++++-+--+------+-+++-+----++---+---++--
44
+++-++-+--+----+---++-+++++----+--+---++-+++
53
++-++-+++++---+-+--+---++++-+--+---+++--------+-+----
47
----+++---+-+-+------+-------+-++--+--++-++-+-+
30
++-+++-----+++-----+++++--+-++
45
----+--+--+----+-+---------+-+---++----+-++--
23
++++-----+------++-++-+
27
+-++-++++++-++----++--++---
44
-+-+------+-+---++++-+--++----++---+++-+++++
57
+-++-+--+-++-++-+-+-++++++++-+-++-+----++++-----++-+++-++
21
-++--+++--+++-+-+++--
31
+++---++++-+++---+++++-++++++--
49
---+---+-+--+-------+-+---+++-+---+--+++--++-+--+
29
+---+-+----++-+++++-+-+++--++
21
-+++-------+-+-+++-+-
52
+++--+++-++-++++--+-+++-++---++++--+++-++-+-+--++-+-
38
--+-+-+++--+---+-++-++---+-++++-+-+-+-
21
+-+-------++--+--+++-
57
+----+-+-+-++++----+----++++++++++-+++---++-++--+--+-+---
32
-++------+-+-++++++-+-+++-+++--+
49
-+-+-+-++-+---+---+++--+++-+-+-----+---+++-+-+---
45
-+--+-----++-+++++-+--+-+-+-+--+-+-+-+-+-+---
20
--++-++--+--+-----++
49
+-+---++----+--+++++-++--+++-+-+++---+----+++++-+
54
+--++----+--++++-------+-+++-++++--++++-+----+---+-+++
46
-+++-++-+++-++-+----++---++--++-+--+---+--+---
37
---+--+-++-+----+----------++-+-++-++
52
-++---+-+----+-+--+-+--+--++-+-+++-+-+---+-----+-+++
29
-+-+-+--++-+--+++--+---+-+-++
59
+-+----+---+-+--++++-+---++-++-+--+---++++--+---+--++++-+-+
Expected Output
187
141
197
118
417
65
126
236
61
135
108
141
356
73
162
223
59
301
137
129
273
285
394
357
125
334
80
59
268
195
30
29
388
65
63
95
176
73
228
64
381
264
63
205
366
302
218
427
140
526
Your Output
187
141
197
118
417
65
126
235
61
135
108
141
356
73
162
223
59
301
137
129
273
285
394
357
125
334
80
59
268
195
30
29
388
65
63
95
176
73
228
64
381
264
63
205
365
302
218
427
140
526
Difference
Generator Parameters
--n_high 60 --n_low 20 --t_high 50 --t_low 50