#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
long long int T, N;
cin >> T;
for (long long int t = 1; t <= T; t++) {
string justN, justEqual;
cin >> justN >> justEqual >> N;
long long int n = N * N;
int number;
vector<int> numbers;
bool flag = true;
while (n--) {
cin >> number;
numbers.push_back(number);
if (number < 0) {
flag = false;
}
}
if (flag) {
for (int i = 0; i < numbers.size(); i++) {
if (numbers[i] != numbers[numbers.size() - 1 - i]) {
cout << "Test #" << t << ": " << "Non-symmetric.\n";
break;
}
else if (i == numbers.size() - 1) {
cout << "Test #" << t << ": " << "Symmetric.\n";
}
}
}
else {
cout << "Test #" << t << ": " << "Non-symmetric.\n";
}
}
return 0;
}
int number;
vector<int> numbers;
int改成long
int number;
vector numbers;
int改成long
謝謝你!