#include using namespace std; //これ想定じゃないだろ int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin>>N; vector>S(N); for(int i=0;i>S[i].first,S[i].second=i; sort(S.begin(),S.end()); vectorans(N); for(int i=0;i