Blueberries DP Problem Link #include <iostream> #include<cstring> using namespace std; const int MAX = 1005; int main() { int t, n, k; int dp[MAX][MAX]; int raspBerries[MAX]; cin >> t; int s = 1; while(s <= t) { cin >> n >> k; for(int i = 0; i < n; i++) ...