sort(a.begin(), a.end()); cout << a.at(k-1) << endl;

sort(a.begin(), a.end());
cout << a.at(k-1) << endl;
vector容器里面,确实不错

posted @ 2022-04-07 18:58  幽默的楚渔  阅读(16)  评论(0编辑  收藏  举报