#include using namespace std; int dp[1000][10001]; int main() { int n; cin>>n; int y[n]; for (int i=0; i>y[i]; for (int i=0; i