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;
posted on 2020-09-26 14:03  xlinsist  阅读(97)  评论(0编辑  收藏  举报