摘要: https://www.acwing.com/problem/content/106/ 这一眼看过去是个数学题,解方程即可设个x为仓库地址,然后x-a[i]进行求和,枚举每个位置求最小总距离,复杂度有点高,过不了,但是可以试试 #include<iostream> #include<algorith 阅读全文
posted @ 2022-11-26 13:49 风乐 阅读(24) 评论(0) 推荐(0)