mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-30 23:36:26 +00:00
22 lines
334 B
C++
22 lines
334 B
C++
|
#include<bits/stdc++.h>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int main() {
|
||
|
string s, t;
|
||
|
cin >> t;
|
||
|
s += t;
|
||
|
cin >> t;
|
||
|
s += t;
|
||
|
cin >> t;
|
||
|
s += t;
|
||
|
for(int i = 0 ; i < 9 ; i++) {
|
||
|
if(s[i] != s[8-i]) {
|
||
|
cout << "NO" << endl;
|
||
|
return 0;
|
||
|
}
|
||
|
}
|
||
|
cout << "YES" << endl;
|
||
|
return 0;
|
||
|
}
|