Advertisement
Promi_38

cf 12A

Sep 28th, 2021
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include<bits\stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.    char x[3], y[3], z[3];
  8.    scanf("%s %s %s", x, y, z);
  9.    
  10.    if(x[0] == z[2] && x[1] == z[1] && x[2] == z[0] && y[0] == y[2]) printf("YES\n");
  11.    else printf("NO\n");
  12. }
  13.  
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement