有点难,但不多
2025-11-01 18:00:17
发布于:广东
0阅读
0回复
0点赞
#include<iostream>
using namespace std;
bool pail(int n)
{
int x = n,b = 0;
while(x){
b = b*10 + x%10;
x /= 10;
}
return b == n;
}
int main()
{
int x;
cin >> x;
if(pail(x))cout << "Yes";
else cout << "No";
return 0;
}
这里空空如也




有帮助,赞一个