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;
    }
    加油昂

  • 2

    #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
难度
3
分类
(无)
标签
递交数
269
已通过
142
通过率
53%
被复制
3
上传者