0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-30 17:16:26 +00:00
OI-codes/Luogu/CF12A/CF12A.cpp

22 lines
337 B
C++
Raw Normal View History

2021-11-19 09:01:13 +00:00
#include <bits/stdc++.h>
2020-10-22 13:03:21 +00:00
using namespace std;
int main() {
string s, t;
cin >> t;
s += t;
cin >> t;
s += t;
cin >> t;
s += t;
2021-11-19 09:01:13 +00:00
for (int i = 0; i < 9; i++) {
if (s[i] != s[8 - i]) {
2020-10-22 13:03:21 +00:00
cout << "NO" << endl;
return 0;
}
}
cout << "YES" << endl;
return 0;
}