- 博客(1)
- 收藏
- 关注
原创 请大家帮帮忙
有没有看看这个代码的伪代码怎么写😭😭 template<class Type> void Loading(int x[],Type w[],Type c,int n) { int *t=new int [n+1]; Sort(w,t,n); for (int i=1;i<= n;i++) ×[i]=0; for(int i=1;i<= n&&w[t[i]]<= c;i++) { x[t[i]]=1; C-=w[t[i]]; } }
2022-09-04 14:35:19
184
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人