版本比较
2022ywq冬令营学习总结
正文
增加 8 行删除 8 行
36 行未改动3738394041414243434445454647474849505136 行未改动88899091929293949596262 行未改动全部展开359360361362363363364365366367167 行未改动全部展开53553653753853953954054154254334 行未改动578579580581582582583584585586351 行未改动全部展开36 行未改动
输入/输出例子1输入:
4 4
0 2 6 5 0 2 6 5
2 0 4 4 2 0 4 4
6 4 0 2 6 4 0 2
5 4 2 0
输出:36 行未改动 for(int q=2;q<=n;++q) { if(j==q)continue; if(i&(1<<(q-1)))continue; dp[(i|(1<<(q-1)))][q]=min(dp[(i|(1<<(q-1)))][q],dp[i][j]+a[j][q]); dp[(i|(1<<(q-1)))][q]=min(dp[(i|(1<<(q-1)))][q],dp[i][j]+a[j][q]); } } } int ans=2147483647;262 行未改动全部展开
输入/输出例子1输入:
5 5
1 2
1 3167 行未改动全部展开 tree[temp].son[d]=id; id=temp; pushup(tree[id].son[d]); pushup(id);
}```
34 行未改动 tree[temp].son[d]=id; id=temp; pushup(tree[id].son[d]); pushup(id);
}void insert(int &id,int x)//插入{ if(!id)351 行未改动全部展开