贪心,难度橙黄左右。
排序依据如下:
if(min(a.a,b.b)!=min(a.b,b.a)) return min(a.a,b.b)<min(a.b,b.a); return a.a>b.a;
By signing up a HFOJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your HFOJ universal account