正文
增加 1 行删除 1 行
34 行未改动35363738394041424364 行未改动34 行未改动temp.f[0]=0;memset(temp.f,inf,sizeog(temp.f));while(!be.empty()){int x=be.top().id;for(re i=w;i>=a[x].a;i--)temp.f[i]=min(temp.f[i],temp.f[i-a[x].a]+a[x].b);fr.push(temp);be.pop();64 行未改动34 行未改动35363738394041424364 行未改动34 行未改动temp.f[0]=0;memset(temp.f,inf,sizeog(temp.f));while(!be.empty()){int x=be.top().id;for(re i=w;i>=a[x].a;i--)temp.f[i]=min(temp.f[i],temp.f[i-a[x].a]+a[x].b);fr.push(temp);be.pop();64 行未改动