9个变量,轻松拿下 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,s,d,f,g,h,…… 题解列表 2025年07月30日 1 点赞 1 评论 895 浏览 评分:10.0
使用二维数组求解 解题思路:定义一个3乘3的二维数组,然后理清楚每个数的坐标,分别计算两条对角线上的数之和注意事项:注意数组下标从0开始参考代码:#includeusingnamespacestd;intmain(){inta[3][3];for(inti=0;i<3;i++)for(in 题解列表 2025年04月08日 1 点赞 0 评论 1077 浏览 评分:10.0
矩阵对角线求和 摘要:#includeusing namespace std; int main() { int a[10][10]; for(int i=1;i<=3;i++) for(int…… 题解列表 2024年11月21日 0 点赞 0 评论 880 浏览 评分:9.9
旧物有情 # 手算法求矩阵对角线和 ```#includeusingnamespacestd;intmain(){inta[3][3];for(inti=0;ia[i][j];}}//主对角线坐标000102//副对角线坐标021120cout 题解列表 2024年10月10日 0 点赞 0 评论 464 浏览 评分:0.0
1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年05月12日 0 点赞 0 评论 575 浏览 评分:0.0
编写题解 1024: [编程入门]矩阵对角线求 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年05月12日 0 点赞 0 评论 489 浏览 评分:0.0
题解 1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=50;int a…… 题解列表 2024年05月12日 0 点赞 0 评论 517 浏览 评分:0.0
题解 1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年05月04日 0 点赞 0 评论 483 浏览 评分:0.0
1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3;ll a…… 题解列表 2024年05月04日 0 点赞 0 评论 453 浏览 评分:0.0
C++速度功成 解题思路:数组的构建,数组附值注意事项:注意a[3][3]中的3是容量,而下面默认第一位数组下标为a[0][0],所以输出的时候别写错了,当然要是把i和j定义成1的话,那a[1][1]就是第一行第一列参考代码:#includeusingnamespacestd;intma 题解列表 2024年03月20日 0 点赞 0 评论 556 浏览 评分:0.0