蓝桥0615-判断四位数字前后两组是否相等

 

 

 

 

#include <cstdio> 
#include <cstring>
#include <iostream> 
#include <stdio.h>
#include <iomanip>
#include <string>
using namespace std;

int main()
{
    int n;
    cin >> n;
    int l = n % 100;
    int f = (n - l) / 100;
    if(l == f)
    {
        cout << "YES";
    } 
     else
     {
         cout << "NO";2
     }
    return 0;    
} 

 

posted @ 2020-11-13 16:50  西湖盗月  阅读(126)  评论(0编辑  收藏  举报