vector<int> spiralOrder(vector<vector<int> > &matrix) { if(matrix.empty()) return {}; int a = matrix.size(); int b = matrix[0].size(); vector<int> result; int cicleNum = (min(a,b)+1)/2; //向下取整,代表循环几次 int left = 0,top=0; int right = matrix[0]....