cf-1195c Basketball Exercise

C.Basketball Exercise 題意: 兩排運動員的身高,選出運動員使總身高最大(不能出現有兩個運動員是連續痛一排的,只能挨着的兩個運動員是不一樣排位的),輸出獲得的最大總身高; 思路: dp哈ios AC代碼:c++ #include <bits/stdc++.h> using namespace std; typedef long long ll; ll dp[4][131420]
相關文章
相關標籤/搜索