顺时针旋转矩阵_牛客题霸_牛客网
vector<vector<int> > rotateMatrix(vector<vector<int> >& mat, int n) {// write code hereif(n==0 || n==1) return mat;vector<vector<int>>res(n, vector<int>(n));for(int i=0; i<n; i++){for(int j=0; j<n; j++){res[j][n-1-i] = mat[i][j];}}return res;}