#include "map" class Solution { public: int findKth(vector<int> a, int n, int K) { map<int, int> pool; for (int i = 0; i < n; i++) { auto tmp = pool.find(a[i]); if (tmp == pool.end()) { //没有就添加 pool.insert({a[i],1}); ...