vector<pair<int,int> >ans;
ans.push_back(make_pair(x,y));
sort(ans.begin(),ans.end());
cout << ans[i].second << ' ' << ans[i].first << endl;
STL里头的 vector,pair
猜你喜欢
转载自blog.csdn.net/wwwlps/article/details/80788044
今日推荐
周排行