题目大意 给 n n n个数的数组 a a a,问有多少个三元组 ( x , y , z ) (x,y,z) (x,y,z)满足 a [ x ] <mtext> </mtext> x o r <mtext> </mtext> a [ y ] < a [ y ] <mtext> </mtext> x o r <mtext> <...