文章
6
粉丝
133
获赞
7
访问
25.2k
#include<iostream>
#include<set>
using namespace std;
class coordinater
{
public:
coordinater(int x, int y)
{
this->x = x;
this->y = y;
}
int x;
int y;
};
class mycompare
{
public:
bool operator()(const coordinater& p1,const coordinater& p2) const
{
if (p1.x == p2.x)
{
return p1.y > p2.y;
}
else
{
return p1.x > p2.x;
}
}
};
int main()
{
&nb...
登录后发布评论
暂无评论,来抢沙发