2 ()() ((()))
20 42
For the second case, $ans = \{1, 2, 3, 3, 2, 1\}$, then $m=1 \cdot 1 + 2 \cdot 2 + 3 \cdot 3 + 4 \cdot 3 + 5 \cdot 2 + 6 \cdot 1 = 42$
Author | zimpha@zju |
Recommend | wange2014 |
时间上限 | 内存上限 |
2000/1000MS(Java/Others) | 131072/131072K(Java/Others) |
·
·
·
·