#include<bits/stdc++.h>
using namespace std;
int main()
{
long int k,q;
cin>>q>>k;
vector x;
while(q–)
{
int n;
cin>>n;
if(n==1)
{
long int z,y;
cin>>z>>y;
long long int r=zz+yy;
x.push_back®;
}
else if(n==2)
{
sort(x.begin(),x.end());
cout<<x[k-1]<<endl;
}
}
}
why there is TLE in 2nd test case?