解题思路:
注意事项:
参考代码:
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=50;
int a[N][N];
int main()
{
for(int i=1;i<=3;i++)
{
for(int j=1;j<=3;j++)
cin>>a[i][j];
}
cout<<a[1][1]+a[2][2]+a[3][3]<<' '<<a[1][3]+a[2][2]+a[3][1];
return 0;
}
0.0分
0 人评分
A+B for Input-Output Practice (IV) (C语言代码)浏览:530 |
简单的a+b (C语言代码)浏览:744 |
【出圈】 (C语言代码)浏览:564 |
数组输出 (C语言代码)错误???浏览:574 |
输出正反三角形 (C语言代码)浏览:798 |
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码)浏览:701 |
Cylinder (C语言描述,蓝桥杯)浏览:1250 |
1118(求助_已解决)浏览:332 |
printf基础练习2 (C语言代码)浏览:515 |
1048题解(读入回车问题)浏览:566 |