C语言 矩阵对角线求和& 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a11, a12, a13, a21, a22, a23, a31, a32, a33; …… 题解列表 2022年10月15日 0 点赞 0 评论 269 浏览 评分:0.0
没用数组,简单处理 摘要:解题思路:没用数组参考代码:#include<iostream>using namespace std;int main(){ int i,s[9]; for(i=0;i<9;i++) c…… 题解列表 2022年10月27日 0 点赞 0 评论 178 浏览 评分:0.0
1024: [编程入门]矩阵对角线求和 摘要:```c #include int matrix[3][3];//定义矩阵 int main() { int i = 0,j=0,sum_main=0,sum_vice=0; for …… 题解列表 2022年11月14日 0 点赞 0 评论 193 浏览 评分:0.0
C语言常规解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[3][3] = { {0} }; int i, j = 0; int sum…… 题解列表 2022年11月25日 0 点赞 0 评论 157 浏览 评分:0.0
编写题解 1024: [编程入门]矩阵对角线求和 适合新手理解体会 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main() { int k,p=0; int a[…… 题解列表 2023年01月07日 0 点赞 0 评论 158 浏览 评分:0.0
指针入门_c语言求对角线矩阵和 摘要:#include <stdio.h> int main() { int a[3][3]; int *p = a[0]; for(int i = 0; i < 9;…… 题解列表 2023年01月10日 0 点赞 0 评论 117 浏览 评分:0.0
简单易懂矩阵对角线求和 摘要:解题思路:数组,循环,条件注意事项:输入数组时格式为a[i][j],a或a[3][3]都是错的参考代码:#include<stdio.h>int main(){ int i,j,a[3][3]; in…… 题解列表 2023年01月15日 0 点赞 0 评论 174 浏览 评分:0.0
如何计算副对角线 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main() { int a[3][3]; for(int i …… 题解列表 2023年03月10日 0 点赞 0 评论 540 浏览 评分:0.0
1024: [编程入门]矩阵对角线求和 摘要:#include<stdio.h> int main() { int a[3][3]; int m,n; for(m=0;m<3;) { …… 题解列表 2023年03月13日 0 点赞 0 评论 126 浏览 评分:0.0
矩阵对角线求和 摘要:解题思路:注意事项:参考代码:a = list(map(int,input().split()))b = list(map(int,input().split()))c = list(map(int,…… 题解列表 2023年04月03日 0 点赞 0 评论 179 浏览 评分:0.0