「寄予后人」WA #8 #9
查看原帖
「寄予后人」WA #8 #9
278046
LyccriusRecoil楼主2022/12/25 16:09
bool operator<(const ScanLine &other) const {
	if (x != other.x) return x < other.x;
	return delta < other.delta;
}

扫描线的 x 值可能重复,故 x 相同时,将 delta 为负者排在前面。

2022/12/25 16:09
加载中...