c++ techniques

struct myComp
{
	bool operator() (const int &a, const int &b)
	{
		if (ac[a]<ac[b]) return a;
		else if (ac[a]==ac[b]&&pen[a]>=pen[b]) return a;
		return false;
	}
};
set<int, myComp> s;
原文地址:https://www.cnblogs.com/reshuffle/p/13734841.html