17 条题解

  • 0
    @ 2026-9-22 21:14:06

    #include <stdio.h> int main() { int x; scanf("%d", &x); int a=x; int n = 0; for (;x != 0;) { n = n+x % 10; if (x >= 10) { n = n * 10; } x /= 10; } if(a==n) printf("yes"); else printf("no"); return 0; }

    <iframe id="vditorExportIframe"></iframe>

    信息

    ID
    32
    时间
    1000ms
    内存
    128MiB
    难度
    6
    标签
    递交数
    5488
    已通过
    1752
    上传者