摘要:
#include #include#include#include#include#includeusing namespace std;#define N 1010#define INF 0 xfffffff#define LL long longLL dp[1010];LL sum[1010];int a[1010];int min(int a,int b){ if(a>t; while(t--) { memset(sum,0,sizeof(sum)); cin>>n>>m; // for(i = 1 ;i >a[i]; sum[i] = sum[i-1 阅读全文