首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
miracle233
2026年3月16日 14:34
旋转矩阵 题解:为什么每组输出之间不空行呢?谁知道你几组输出
P1221
回复 0
|
赞 1
|
浏览 40
#include<bits/stdc++.h> using namespace std; vector<vector<int>> op1(vector<vector<int>> vec){ int a=vec.size(),b=vec[0].size(); vector<vector<int>> res(b,vector<int>(a,0)); for(int i=0...
王艺道
2026年3月13日 16:21
旋转矩阵 题解:
P1221
回复 0
|
赞 3
|
浏览 79
#include<bits/stdc++.h> using namespace std; int n, m, k; int K[105]; struct{ int a[105][105]; int r = 0, c = 0; } A, B; void f1(){ // 顺时针90度 n*m -> m*n for(int i = 1; i <= A.r; i++){ &nbs...
HKX9XAS
2026年3月13日 15:55
旋转矩阵 题解:
P1221
回复 0
|
赞 2
|
浏览 47
#include #include using namespace std; void cover(int n, int m,int orig[100][100],int c[100][100]){ //用进行操作过的矩阵覆盖原矩阵以继续完成操作 for(int i=0; i for(int j=0; j &...
Liang_Pan
2026年3月11日 10:20
旋转矩阵--三个操作封装成三个函数,需要时直接调用即可:
P1221
回复 0
|
赞 26
|
浏览 203
#include<bits/stdc++.h> using namespace std; int a[101][101]; void func1(int n,int m){//顺时针旋转90度 int temp[n][m]; for(int i =0;i<n;i++) for(int j=0;j<m;j++) temp[i][j] = a[i][j];//先复制出来 for(int i =0;i<n;i++) for(int j=0;j<m;j++) a[...
yourgaba233
2026年3月10日 11:17
旋转矩阵 题解:C语言,拆分多步解决
P1221
回复 0
|
赞 5
|
浏览 95
#include <stdio.h> #include <stdlib.h> void type_2(int A[101][101],int m,int n){//纵轴对称 int i,j; int temp; for(i=0;i<m;i++){ for(j=0;j<n/2;j++){ temp=A[i][j]; ...
无名吟
2026年3月10日 11:06
旋转矩阵 C语言 题解:费内存
P1221
回复 0
|
赞 0
|
浏览 63
#include<stdio.h> #include<stdlib.h> void c1(int** arr, int max){ int** brr = (int**)malloc((max + 1) * sizeof(int*)); for (int i = 1; i <= max; i++) { brr[i] = (int*)malloc((max + 1) * sizeof(int)); for(int j=1; j<=max; j++){ brr[i][j]=arr[max+1-j][i]; ...
无名吟
2026年3月10日 11:06
旋转矩阵 C语言 题解:费内存
P1221
回复 0
|
赞 0
|
浏览 42
#include<stdio.h> #include<stdlib.h> void c1(int** arr, int max){ int** brr = (int**)malloc((max + 1) * sizeof(int*)); for (int i = 1; i <= max; i++) { brr[i] = (int*)malloc((max + 1) * sizeof(int)); for(int j=1; j<=max; j++){ brr[i][j]=arr[max+1-j][i]; ...
mlx
2026年3月7日 11:20
旋转矩阵 题解:
P1221
回复 0
|
赞 4
|
浏览 114
#include<iostream> #include<cstring> using namespace std; const int N=110; int n,m,k; int a[N][N],c[N][N]; void work1() { int n_=n,m_=m; swap(n,m); for(int i=0;i<n;i++) for(int j=0;j<m;j++) c[i][j]=a[n_-1-j][i]; me...
ryuki
2026年3月1日 15:21
旋转矩阵 题解:
P1221
回复 0
|
赞 18
|
浏览 208
#include <iostream> #include <vector> #include <cmath> using namespace std; int main() { int n, m, k; while(cin >> n >> m >> k) { //输入 int max_size = max(n,m); vector<vector<int>> matrix(max_size,vector<int>(max_size)); ...
winner748
2026年2月9日 22:10
旋转矩阵 题解:
P1221
回复 0
|
赞 13
|
浏览 261
#include<bits/stdc++.h> using namespace std; int a[150][150]; int b[150][150]; void op_1(int a[][150],int &n, int &m){ for(int i = 1; i <= n; i++){ for(int j = 1; j <= m; j++){ b[j][...
1
2
3
题目
旋转矩阵
题解数量
29
发布题解
在线答疑
热门题解
1
旋转矩阵 题解:三种操作,三个函数
2
旋转矩阵 题解:简单粗暴的解法
3
旋转矩阵--三个操作封装成三个函数,需要时直接调用即可:
4
旋转矩阵 题解:
5
旋转矩阵 题解:C++ 本题有很多小注意点
6
旋转矩阵 题解:
7
旋转矩阵 题解:为什么提交总是答案错误呢,我遗漏了什么情况吗?
8
旋转矩阵 题解:
9
找到行列变化关系
10
旋转矩阵 题解: