//Accepted 1784 KB 78 ms //区间dp //dp[l1][r1][l2][r2] 表示a数列从l1到r1,b数列从l2到r2能得到的最大分值 // #include <cstdio> #include <cstring> #include <iostream> using namespace std; ; int dp[imax_n][imax_n][imax_n][imax_n]; int n; int a[imax_n],sa[imax_n]…
Play Game Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others) Total Submission(s): 54 Accepted Submission(s): 36 Problem Description Alice and Bob are playing a game. There are two piles of cards. There are N cards in eac…