#include <climits> #include <vector> #include <iostream> #include <ostream> using namespace std; int main() { int n, t,i,j,k,cur,prev,max_deal; cin >>n>>max_deal; max_deal=min(n/2,max_deal); vector<vector<vector<int>>> dp(2,vecto...