直接暴力查找 class Solution { public: bool Find(int target, vector<vector<int> > array) { for(auto &x : array) for(auto &v : x) { if(v == target) return true; } return false; } };