#include <iostream>
#include <vector>
#include <algorithm>
#include <ctime>
/// 自定义结构体
typedef struct AAA {
int a;
int b;
}AAA;
/// 用于 std::cout 对结构体直接输出
std::ostream& operator<<(std::ostream& os, const AAA& a)
{
os << "( a=" << a.a << ", b=" << a.b << " )";
return os;
}
/// 用于 std::sort 对结构体按指定成员比较
struct {