3 条题解

  • 2
    @ 2023-4-6 19:55:16
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int x;
        cin>>x;
        if (x/1000==x%10&&x/100%10==x/10%10)
            cout<<"yes";
        else
            cout<<"no";
        return 0;
    }
    • 1
      @ 2024-3-7 16:59:19

      #include<bits/stdc++.h> using namespace std; int main() { int x; cin>>x; if (x/1000x%10&&x/100%10x/10%10) cout<<"yes"; else cout<<"no"; return 0; }

      • 1
        @ 2023-10-12 23:59:20

        看看p626我写的题解,就改个输出

        #include<bits/stdc++.h>
        using namespace std;
        string s;
        int main()
        {
            cin>>s;
            int m=s.size(),num=0;
            for(int i=0;i<m/2;i++)
            {
                if(s[i]!=s[m-1-i])
                {
                    num++;
                }
            }
            if(num==0)
            {
                cout<<"yes";
            }
            else
            {
                cout<<"no";
            }
            return 0;
        }
        先赞后搬
        
        • 1

        【入门】判断四位数是否为对称数

        信息

        ID
        644
        时间
        1000ms
        内存
        16MiB
        难度
        1
        标签
        递交数
        84
        已通过
        69
        上传者