[递归与分治算法][BOJ]1032-邮局选址问题

其实这个题和上一个输油管道问题是殊途同归,只不过这个题目要分别求出横坐标和纵坐标的中位数。 #include<iostream> #include<cstdio> #include<algorithm> using namespace std; const int MAX_SIZE = 10000 + 10; bool cmp(const int &a, const int &b) {
相关文章
相关标签/搜索