文章
71
粉丝
142
获赞
5
访问
50.7k
#include<iostream>
using namespace std;
int a[105][105];
int b[105][105];
int main() {
int n;
while (cin >> n) {
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= n; j++) {
cin >> a[i][j];
}
}
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= i; j++) {
swap(a[i][j],a[j][i]);
}
}
for (int i = 1; i <= n; i++) {
&n...
登录后发布评论
暂无评论,来抢沙发