6 条题解
-
3
12317姚玉杨 (12317姚玉杨) LV 7 @ 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;
}
加油昂 -
13 年前@
#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;
} -
13 年前@
#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
if(n/100==n%10)cout<<"yes";
else cout<<"no";
return 0;
} -
03 年前@
#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;
} -
03 年前@
#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;
} -
03 年前@
#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
- 难度
- 4
- 分类
- (无)
- 标签
- 递交数
- 411
- 已通过
- 180
- 通过率
- 44%
- 被复制
- 3
- 上传者