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:
parent
4a3d4d6ec0
commit
a308a60ab1
21
problem/CF12A/CF12A.cpp
Normal file
21
problem/CF12A/CF12A.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user