0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-24 03:31:59 +00:00

CF12A Super Agent

R40304856
This commit is contained in:
Baoshuo Ren 2020-10-22 21:03:21 +08:00 committed by Baoshuo Ren
parent 4a3d4d6ec0
commit a308a60ab1
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

21
problem/CF12A/CF12A.cpp Normal file
View File

@ -0,0 +1,21 @@
#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;
}