#include
#define N 10
int a[N][N], b[N][N], c;
void solve() {
int i, j;
c = 0;
for (i = 0; i < N; ++i) {
for (j = 0; j < N; ++j) {
b[i][j] = a[j][i];
if (b[i][j] == a[i][j])
++c;
}
}
}输入输出自己按要求加.
#include
#define N 10
int a[N][N], b[N][N], c;
void solve() {
int i, j;
c = 0;
for (i = 0; i < N; ++i) {
for (j = 0; j < N; ++j) {
b[i][j] = a[j][i];
if (b[i][j] == a[i][j])
++c;
}
}
}输入输出自己按要求加.