洛谷排序习题总结

可以采用计数排序 采用的数据结构为 结构体 代码如下: #include #include #include using namespace std; struct Node{ double x,y,z; bool operator<(const Node &other)const{//重载小于运算符 return z<other.z; } } a[50050]; int main(){ int
相关文章
相关标签/搜索