sort函数的简单用法(= ̄ω ̄=)

以下是sort函数简单用法的代码: #include<stdio.h> #include<stdbool.h> #include<algorithm> using namespace std; bool comp(int a,int b){//当需要考虑是从大到小还是从小到大 return (a>b); } int a[1000000]; int main() { int n,m; whil
相关文章
相关标签/搜索