蓝桥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;    
} 
原文地址:https://www.cnblogs.com/leesymbol/p/13970196.html