class Solution {
public:
vector<int> getLeastNumbers_Solution(vector<int> input, int k) {
//排个序,输出前k个
vector<int> res;
sort(input.begin(),input.end()); //排个序
for(int i=0;i<k;i++) res.push_back(input[i]);
return res;
}
};