#include<bits/stdc++.h> using namespace std; struct x{ long long r; long long s; }; int a,d,f; int main() { cin>>a>>d; x e[a]; for(int i=0;i<a;i++) { cin>>e[i].s>>e[i].r; } sort(e,e+a); cout<<e[d].s; }
如题