x<0?(y<0&&z>=0?1:0):(y<0&&z<0?1:0)
(x<0+y<0+z<0)==2
int negatives(int a, int b, int c) {
int res = 0;
if(a <0) ++res;
if(b <0) ++res;
if(b <0) ++res;
return res;
}
if(2 == negatives(x,y,z))
改一下上面老哥的((x<0)+(y<0)+(z<0))==2
if ( (x<0 && y<0 && z>=0 ) || (x<0 && z<0 && y>=0) || (y<0 && z<0 && x>=0) )