39952023-03-07 20:06:20horvathabelTársaság (50)cpp17Wrong answer 0/509ms3748 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int n,k;
	cin>>n>>k;
	priority_queue<int> q; 
	for (int i=0; i<n-1;i++){
		int c,n;
		cin>>c>>n;
		q.push(n);
	}
	for (int i=0; i<k;i++){
		q.pop();

	}
	cout<<q.top();
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Accepted0/03ms1812 KiB
2Wrong answer0/06ms2236 KiB
3Wrong answer0/33ms2372 KiB
4Wrong answer0/33ms2532 KiB
5Wrong answer0/33ms2744 KiB
6Wrong answer0/33ms2832 KiB
7Wrong answer0/33ms2844 KiB
8Wrong answer0/33ms2848 KiB
9Wrong answer0/34ms3080 KiB
10Wrong answer0/34ms3304 KiB
11Wrong answer0/34ms3392 KiB
12Wrong answer0/36ms3512 KiB
13Wrong answer0/47ms3308 KiB
14Wrong answer0/48ms3308 KiB
15Wrong answer0/48ms3524 KiB
16Wrong answer0/49ms3560 KiB
17Wrong answer0/49ms3748 KiB