【kirito】1030 注意输出格式 摘要:解题思路:#include<bits/stdc++.h>using namespace std;int main(){ int a[3][3]; for(int i=0;i<3;i+…… 题解列表 2026年04月08日 1 点赞 0 评论 87 浏览 评分:0.0
二维数组直接解了 摘要:解题思路:二维数组,for循环嵌套注意事项:不要把值输错了,只能在for循环内进行,其实就是颠倒行 和 列参考代码:#include<iostream>using namespace st…… 题解列表 2025年11月06日 0 点赞 0 评论 289 浏览 评分:0.0
9个变量,轻松拿下 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,s,d,f,g,h,…… 题解列表 2025年07月30日 0 点赞 0 评论 376 浏览 评分:10.0
连续使用for循环嵌套 摘要:解题思路:先定义两个二维数组,一个为原始数组,另外一个为临时数组,然后把临时数组对应下标的元素的值赋值给原始数组元素对应下标的数值注意事项:在赋值的时候两个数组元素下标要对应正确,可以先手动模拟代码执…… 题解列表 2025年04月09日 1 点赞 0 评论 696 浏览 评分:10.0
二维数组的转置.。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[3][3]…… 题解列表 2025年03月02日 2 点赞 0 评论 712 浏览 评分:10.0
我的自用zsbdzsbd 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void zhuanzhi (int matrix_1[][3],int matrix_2[]…… 题解列表 2024年12月19日 0 点赞 0 评论 350 浏览 评分:0.0
二维数组的转置 摘要:#include<bits/stdc++.h> using namespace std; void f(int a[4][4]) { for(int i=1;i<=3;i++) { …… 题解列表 2024年11月21日 1 点赞 0 评论 470 浏览 评分:9.9
旧物有情 # 遍历求二维数组转置 摘要:``` #include using namespace std; int main(){ int a[3][3]; for(int i=0; ia[i]…… 题解列表 2024年10月10日 1 点赞 0 评论 393 浏览 评分:9.9
两种方法实现二维数组的转置 摘要:解题思路:可通过两种方式求解此题方式1:通过观察得知,此九宫格二维数组只有6个数需要调换,即2和4,3和7,6和8,故只需要用swap函数两两一组调换3次即可方式2:设一个中间数组用于接收初始数组,把…… 题解列表 2024年01月18日 0 点赞 0 评论 449 浏览 评分:0.0
转置嘛,就是互换行列呗 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[3][3]; int *p = &arr[…… 题解列表 2023年12月26日 0 点赞 0 评论 317 浏览 评分:0.0