编写题解 1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N=50; i…… 题解列表 2024年05月12日 0 点赞 0 评论 489 浏览 评分:0.0
1024 矩阵对角线求和(二维数组赋初值) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[4][4]; for(int i=1;i<=3;i++) { for(int j=1;j<=3;j…… 题解列表 2024年05月12日 0 点赞 0 评论 582 浏览 评分:0.0
最简单对角线求和方式 摘要:解题思路:一眼就懂注意事项:无参考代码:#include <stdio.h>#include <math.h>#include <stdbool.h>int main(){ int a[3][3]; …… 题解列表 2024年03月29日 0 点赞 0 评论 538 浏览 评分:9.9
矩阵对角线求和 摘要:#include<stdio.h> int main() { int i,j,arr[3][3]; for(i=0;i<3;i++) { for(j=0;j<3;j++) …… 题解列表 2024年03月02日 0 点赞 0 评论 475 浏览 评分:2.0
C语言--study||O.o 摘要:参考代码:#include<stdio.h> int arr[3][3]; int main() { for(int i = 0; i < 3; i++) …… 题解列表 2024年01月22日 0 点赞 0 评论 466 浏览 评分:9.9
求一个3×3矩阵对角线元素之和。 输入格式 矩阵 输出格式 主对角线 副对角线 元素和 摘要:解题思路: 找到主对角线 辅对角线 上二维数组下标的关系注意事项:仅供参考 不懂的问参考代码:#include <stdio.h>int main(){ int i,j; int arr…… 题解列表 2023年12月25日 0 点赞 0 评论 486 浏览 评分:0.0
矩阵对角线求和 C语言 摘要:解题思路:找对角线上数据的i和j的规律注意事项:注意初始化的位置,根据需要判断是否需要放在循环内部;参考代码:#include<stdio.h>int main(){ int a[3][3],i…… 题解列表 2023年12月21日 0 点赞 0 评论 456 浏览 评分:0.0
.................. 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3]; for(int i=0;i<3;i++) { for(…… 题解列表 2023年12月18日 0 点赞 0 评论 440 浏览 评分:0.0
编写题解 1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define n 3 int main() { int a[n][n],i,j,k; for(i=0; i<n; i++…… 题解列表 2023年12月15日 0 点赞 0 评论 340 浏览 评分:6.0
题解 1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ int sum0 = 0; int s…… 题解列表 2023年12月15日 0 点赞 0 评论 496 浏览 评分:9.9