Cod sursa(job #3242799)
| Utilizator | Data | 14 septembrie 2024 08:31:39 | |
|---|---|---|---|
| Problema | Statistici de ordine | Scor | 100 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva educationala | Marime | 0.16 kb |
#import<bits/stdc++.h>
int n,i,k,v['썐'];std::ifstream f("sdo.in");main(){for(f>>n>>k;f>>v[i++];);std::nth_element(v,v+k-1,v+n);std::ofstream("sdo.out")<<v[k-1];}
