- 博客(4)
- 收藏
- 关注
原创 知识点、代码记录01
代码记录 %%中位数 OJ2254,小林移石子。 “中位点” 可以确保在足够多的两点连线之中(那么到那些连线两端的点 距离之和最短) 上述为一维数轴的情况; 二位平面上即是寻找“权重中位点”,详见一只老风铃 #include <iostream> #include <algorithm> #include <cmath> using namespace std; int zhongweishu(const int* vis, const int& n) {
2021-02-05 22:19:17
161
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅