How to sort an array of pair with given relation between elements of pair?

后端 未结 0 1798
野的像风
野的像风 2020-12-12 14:56

I have an array of pair p[n] in C++

Let say p[i].first = i, p[i].second = j

I want to sort given pair in descending order of

相关标签:
回答
  • 消灭零回复
提交回复
热议问题