89702024-02-09 16:17:35dvd09292Társaság (50)cpp17Wrong answer 7/509ms4792 KiB
// Source: https://usaco.guide/general/io

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vll vector<long long>



int main() 
{
	ll n, k; cin >> n >> k;
	vll v(n,0);
	int a;
	for(int i = 0; i < n; i++)
	{
		cin >> a >> v[i];
	}

	sort(v.begin(),v.end());
	cout << v[n-k-1];
}
SubtaskSumTestVerdictTimeMemory
base7/50
1Accepted0/03ms1812 KiB
2Wrong answer0/06ms2176 KiB
3Wrong answer0/33ms2336 KiB
4Wrong answer0/33ms2404 KiB
5Accepted3/33ms2608 KiB
6Wrong answer0/33ms2828 KiB
7Wrong answer0/33ms3048 KiB
8Wrong answer0/33ms3268 KiB
9Wrong answer0/34ms3376 KiB
10Wrong answer0/34ms3676 KiB
11Wrong answer0/34ms3720 KiB
12Wrong answer0/36ms3960 KiB
13Wrong answer0/47ms4252 KiB
14Wrong answer0/48ms4460 KiB
15Wrong answer0/48ms4536 KiB
16Accepted4/49ms4656 KiB
17Wrong answer0/49ms4792 KiB