如果你WA40

P1908 逆序对

jink @ 2024-08-14 11:37:34

bool cmp(node x,node y){return x.val<y.val;}

要写成

bool cmp(node x,node y)
{
    return (x.val==y.val)?x.num<y.num:x.val<y.val;
}

by sxq9 @ 2024-08-23 11:09:41

听我说谢谢你


|