题解 1024: [编程入门]矩阵对角线求和

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

[编程入门]矩阵对角线求和

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[5][5],x,y;//定义一个二维数组int main(){ for(……

利用动态vector进行求解

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std;int main(){ int i,j;/* int n,m;……

没用数组,简单处理

摘要:解题思路:没用数组参考代码:#include<iostream>using namespace std;int main(){    int i,s[9]; for(i=0;i<9;i++) c……

如何计算副对角线

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main() {    int a[3][3];    for(int i ……

[编程入门]矩阵对角线求和

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int a[3][3];    for(int i=0……