">using namespace std; //dp void MinCost(vector<int>& cost,vector<int> &dp,int n){ dp[n]=min(dp[n-1]+cost[n-1],dp[n-2]+cost[n-2]); } int main(){ int n; cin>>n; vector<int> cost(n,0); vector<int> dp(n+1,0); for(int i=0;i<n;i++) ...