思路 1、首先按照左上到右下的连线做对称2、然后根据y轴做对称 (下面是另外一种对称方式,道理是一样的) 代码 class Solution { public: vector<vector<int> > rotateMatrix(vector<vector<int> > mat, int n) { // write code here vector<vector<int>> res(n, vector<int>(n, 0)); for(int i = 0...