1 条题解

  • 1
    @ 2025-10-8 16:48:03

    scy视频

    #include <bits/stdc++.h>
    using namespace std;
    bool pd(int x)
    {
        int fx=0,xx=x;
        while(xx>0)fx=fx*10+xx%10,xx=xx/10;
        return (fx==x);
    }
    int main()
    {
        int n;scanf("%d",&n);
        if( pd(n) ) printf("YES");
        else        printf("NO");
        return 0;
    }
    
    • 1

    *【C++语言:函数】判断回文数

    信息

    ID
    18
    时间
    1000ms
    内存
    128MiB
    难度
    7
    标签
    递交数
    747
    已通过
    179
    上传者