#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; const int MAX = 4000; const int INF = INT_MAX / 2; int main() { int n, c, v; cin >> n >> c >> v; vector > dp(MAX, vector(MAX, INF)); dp[1][0] = 0; for(int i=0; i