摘要:
1 #include<iostream> 2 #include<map> 3 using namespace std; 4 struct dian{ 5 int x,y; 6 /*bool operator<(const dian &a) const 7 { 8 return a.x>x; 9 }* 阅读全文
摘要:
1 #include<iostream> 2 #include<set> 3 using namespace std; 4 struct dian{ 5 int x,y; 6 /*bool operator<(const dian &a) const 7 { 8 return x<a.x; 9 }* 阅读全文
摘要:
1 #include<iostream> 2 #include<queue> 3 using namespace std; 4 struct dian{ 5 int x; 6 int y; 7 }; 8 /* 为了说明queue里面的数据类型可以通用,随便定义了一个结构体*/ 9 void prin 阅读全文