U203316 好good

题目描述

假如长为n的序列a同时满足 - 对于所有1

输入格式

``` n v1 v2 ... vn a1 a2 ... an ``` $n\le 400,a_i\le 10^9,|v_i|\le 10^5$

输出格式

最大价值(不一定要删空)