sort(b+1,b+n+1); int x=unique(b+1,b+n+1)-(b+1);
错误写法:(但依然能过)
int x=unique(b+1,b+n+1)-(b+1); sort(b+1,b+n+1);