14 条题解

  • 1
    @ 2022-10-3 23:20:33
    #include <iostream>
    #include <string.h>
    #include <stdio.h>
    #include <algorithm>
    using namespace std;
    int main()
    { 
     	int hws,b,sum=0;
     	cin>>hws;
     	for(int a=hws;a>0;a/=10)
     	{
     		b=a%10;//一次是个,2次十位,等等
    		sum=sum*10+b; 
    	 }
    	 if(sum==hws)
    	 {
    	 	cout<<"yes";
    	 
    	 }
    	 	else
    	 	cout<<"no";
    		return 0;
    }
    yujie好厉害
    

    信息

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