首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
winner748
2026年2月9日 12:03
旋转矩阵 - 北航 题解:
P1377
回复 0
|
赞 22
|
浏览 509
#include<bits/stdc++.h> using namespace std; int a[20][20]; int b[20][20]; bool is_0(int a[][20],int b[][20],int n){ for(int i = 1; i <= n; i++){ for(int j = 1; j <= n; j++){ if(a[i][j] != b...
sadhjksdj
2026年2月2日 17:50
旋转矩阵 - 北航 题解:
P1377
回复 0
|
赞 17
|
浏览 403
#include<bits/stdc++.h> using namespace std; //旋转一次90度的 void rot(vector<vector<int>>& matrix){ int left = 0,right = matrix.size()-1; while(left<right){ for(int i = 0;i<right-left;i++){ &...
bro
2026年2月1日 15:18
旋转矩阵 - 北航 题解:C++ ,找规律
P1377
回复 0
|
赞 15
|
浏览 330
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin >> n){ int A[12][12]; int B[12][12]; for(int i = 0 ; i < n ; i++){ &nbs...
mlx
2026年1月31日 18:29
旋转矩阵 - 北航 题解:
P1377
回复 0
|
赞 6
|
浏览 252
#include<iostream> using namespace std; const int N=11; int a[N][N],b[N][N],n; bool angle_0() { for(int i=0;i<n;i++) for(int j=0;j<n;j++) if(a[i][j]!=b[i][j]) return false; return true; } bool angle_90() { int c[N][N]; for(int i=0;i<n;i++...
奶龙大王
2026年1月30日 14:29
旋转矩阵 - 北航 题解:
P1377
回复 0
|
赞 0
|
浏览 162
矩阵旋转函数90°公式temp[i][j] = A[n - 1 - j][i];//旋转公式 #include <iostream> #include <map> #include <cctype> // for isalpha, tolower #include <string> #include<algorithm> #include<stack> #include<stdlib.h> //C打印库函数 ...
JDTG007
2026年1月27日 20:43
旋转矩阵 - 北航 题解:
P1377
回复 0
|
赞 3
|
浏览 245
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(scanf("%d",&n)!=EOF){ int a[n][n]; int temp90[n][n];  ...
曾不会
2026年1月25日 15:17
旋转矩阵 - 北航 题解:
P1377
回复 1
|
赞 8
|
浏览 389
史山代码 #include<stdio.h> int main() { int n; while(scanf("%d",&n) !=EOF) { int a[n][n]; int b[n][n]; for(int i=0;i<n;i++) { ...
cczz
2025年8月4日 17:53
旋转矩阵 - 北航 题解:
P1377
回复 0
|
赞 28
|
浏览 1.1k
关键点: 1.找到旋转90度的规律 2.如何比较数组相等 tip:采用vector容器代替数组 #include<bits/stdc++.h> using namespace std; // 顺时针旋转90度 vector<vector<int>> rotate90(const vector<vector<int>>& a) { int n = a.size(); vector<vector<int>> res(n, vecto...
cczz
2025年8月4日 17:39
旋转矩阵 - 北航 题解(找规律暴力求解):
P1377
回复 0
|
赞 15
|
浏览 741
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin >> n){ int a[10][10]; int b[10][10]; for(int i = 1; i <= n; i++){ for(int j = 1; j <= n; j++){ cin >> a[i][j]; } } int flag0 = 1; for(int i = 1; i ...
zhenhuaF
2025年3月24日 01:06
旋转矩阵 - 北航 题解:
P1377
回复 0
|
赞 6
|
浏览 1.0k
#include<bits/stdc++.h> using namespace std; int main(){ int n; int a[10][10]={0}; int b[10][10]={0}; int c[10][10]={0}; int d[10][10]={0}; int e[10][10]={0}; &nb...
1
2
3
4
...
6
题目
旋转矩阵加强版
题解数量
51
发布题解
在线答疑
热门题解
1
旋转矩阵 - 北航 题解:旋转后判断
2
旋转矩阵 - 北航 题解:
3
旋转矩阵 - 北航 题解:C++ 关键在于顺时针旋转90度的公式
4
旋转矩阵 - 北航 题解:
5
这道题oj上面的几个坑提醒注意
6
1377旋转矩阵
7
旋转矩阵(模拟 - 注意多组测试输入--第一次交没注意过了80%) - 北航 题解:
8
旋转矩阵 - 北航 题解:
9
旋转矩阵 - 北航 题解:
10
旋转矩阵 - 北航 题解:暴力