6 条题解

  • 3

    #include <iostream>
    using namespace std;
    int main()
    {
    int n,s,x=0;
    cin>>n;
    s=n;
    while(s>0)
    {
    x=x*10+s%10;
    s=s/10;
    }
    if(x==n)
    {
    cout<<"yes"<<endl;
    }
    else
    {
    cout<<"no"<<endl;
    }
    return 0;
    }
    加油昂

  • 1

    #include<iostream>
    using namespace std;
    int main()
    {
    int a,b,c;
    cin>>a;
    b=a/100;
    c=a%10;
    if(b==c)cout<<"yes";
    else cout<<"no";
    return 0;
    }

  • 1

    #include<iostream>
    using namespace std;
    int main()
    {
    int n;
    cin>>n;
    if(n/100==n%10)cout<<"yes";
    else cout<<"no";
    return 0;
    }

  • 0

    #include <iostream>
    using namespace std;
    int main()
    {
    int n,s,x=0;
    cin>>n;
    s=n;
    while(s>0)
    {
    x=x*10+s%10;
    s=s/10;
    }
    if(x==n)
    {
    cout<<"yes"<<endl;
    }
    else
    {
    cout<<"no"<<endl;
    }
    return 0;
    }

  • 0

    #include <iostream>
    using namespace std;
    int main()
    {
    int n,s,x=0;
    cin>>n;
    s=n;
    while(s>0)
    {
    x=x*10+s%10;
    s=s/10;
    }
    if(x==n)
    {
    cout<<"yes"<<endl;
    }
    else
    {
    cout<<"no"<<endl;
    }
    return 0;
    }

  • 0

    #include<iostream>
    using namespace std;
    int main()
    {
    int n;
    cin>>n;
    if(n/100==n%10)cout<<"yes";
    else cout<<"no";
    return 0;
    }

  • 1

信息

ID
1718
难度
2
分类
(无)
标签
递交数
181
已通过
105
通过率
58%
被复制
3
上传者