对于$i,j$，如果有 $$(t_i<t_j,v_i<v_j,p_i>p_j)||(t_i<t_j,v_i>v_j,p_i<p_j)$$那么就记录贡献就好了/...