提交时间:2023-11-09 13:36:43
运行 ID: 109516
# include <iostream> # include <algorithm> using namespace std ; int a [11451419] ; int main ( ) { int n , m ; cin >> n >> m ; for ( int i = 1 ; i <= n ; i ++ ) { cin >> a [i] ; } sort ( a + 1 , a + n + 1 ) ; cout << a [m] ; return 0 ; }