关于这道题的排序问题
查看原帖
关于这道题的排序问题
327139
纯白楼主2021/10/16 11:51

我按颜色和序号进行的排序,不同的排序会得到正确或者错误的答案((

struct node {
	ll col, num, sor;
	bool operator < (const node b)const{
		if (this->col == b.col)
			return this->sor < b.sor;
		else 
			return this->col < b.col;
	}
}e[maxn];

求指导

2021/10/16 11:51
加载中...