6 条题解
-
312317姚玉杨 (12317姚玉杨) LV 7 @ 2021-11-04 12:04:49
#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;
}
加油昂 -
22022-02-04 18:51:10@
#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;
} -
12021-12-27 09:36:33@
#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
if(n/100==n%10)cout<<"yes";
else cout<<"no";
return 0;
} -
02021-12-05 17:24:57@
#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;
} -
02021-11-06 20:37:39@
#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;
} -
02021-11-06 15:45:59@
#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
- 上传者