XDU 1121 排序(sort函数的简单应用)

直接调用sort函数便可,水题,学会了多个条件下的排序. #include<stdio.h> #include<algorithm> //sort函数的调用,学会了有多个排序条件的排序 struct node { int power,magic,speed,mark; }people[1000]; bool cmp(node x,node y) { if(x.power!=y.po
相关文章
相关标签/搜索