#include #include #include

using namespace std;

bool isSymmetric(vector& matrix) { for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { if (matrix[i][j] != matrix[2 - i][2 - j]) { return false; } } } return true; }

int main() { vector matrix(3); for (int i = 0; i < 3; i++) { cin >> matrix[i]; }

if (isSymmetric(matrix)) {
    cout << "YES" << endl;
} else {
    cout << "NO" << endl;
}

return 0;
There is a very secret base in Potatoland where potato mash is made according to a special recipe The neighbours from Porridgia decided to seize this recipe and to sell it to Pilauland For this missio

原文地址: http://www.cveoy.top/t/topic/h8Pr 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录