#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <queue>
#define INF 0xfffffff
using namespace std;
struct St
{
int v,k;
St(int a=0,int b=0){v=a;k=b;}
}st[2009];
int dp[2009][2009];
int main()
{
ios::sync_with_stdio(false);
int t,maxp,w;
int T;
scanf("%d",&T);
while(T--)
{
scanf("%d %d %d",&t,&maxp,&w);
int i,j,k;
int ap,bp......
阅读全文