水题
class Solution {
public:
bool isPalindrome(int x) {
int t=x;
if(x<0) x=-x;
if(x==0) return true;
queue<int> q;
while(x){
q.push(x%10);
x=x/10;
}
int res=0;
while(!q.empty()){
res=res*10+q.front();
q.pop();
}
if(res==t) return true;
return false;
}
};