版本比较
+1 −1增加 1 行删除 1 行
34 行未改动3536373839394041424364 行未改动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 行未改动