{{{ #include #include using namespace std; struct cow{ int s1, s2; }; cow c[50020], rc[50020]; int cc(cow a, cow b){ if(a.s1 == b.s1)return a.s2 rc[i].s2)check[d[i]] = rc[i].s2; } printf("%d",d[m-1]); } }}}