摘要:
很不错的一题,非常巧妙的用DP顺序解决这个问题。。。可以发现,只和A里面最小的有关系。。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 #define LL long long 9 int dp[50*60000+1];10 vector::iterator it;11 bool cmp(int a,int b)12 {13 return a > b;14 }15 class YetAnotherTwoTeamsProblem16 {17... 阅读全文