public class Solution {
public boolean isPalindrome(int x) {
if (x<0 || (x!=0 && x%10==0)) return false; int div = 1;
while(x/10>=div)
div *= 10;
while(x>0)
{
if(x/div!=x%10)
return false;
x = (x%div)/10;
div /= 100;
}
return true; }
}

最新文章

  1. Azure PowerShell (2) 修改Azure订阅名称
  2. css3 animation动画特效插件的巧用
  3. Inno Setup 下载安装
  4. mysql 密码重置
  5. 练习--LINUX进程间通信之无名管道PIPE
  6. 多媒体应用-swift
  7. DataGrid( 数据表格) 组件[7]
  8. 使用md5判断网站内容是否被篡改
  9. Ubuntu 16.04 搭建Android开发环境
  10. SQLAlchemy入门
  11. ASP.NET WebApi 使用Swagger生成接口文档
  12. 实现定时备份mysql数据库并把备份数据库邮件发送
  13. CentOS7 安装极点五笔输入法
  14. opencv关于Mat类中的Scalar()---颜色赋值
  15. Ubuntu16.04 安装Tensorflow1.7过程记录二:安装CUDA及Tensorflow
  16. keras神经网络三个例子
  17. Random Maze HDU - 4067(预定义状态建边(贪心建边))
  18. .net dll反编译出现的问题,以及部分修复的方法
  19. Alpha阶段敏捷冲刺(六)
  20. Intellij IDEA 编译等级与源代码等级不一致问题

热门文章

  1. 浅谈vue路由原理
  2. 训练集、测试集loss容易出现的问题总结
  3. VBScript 内置函数
  4. 作为.NET程序员,您需要IronPython么?
  5. sessionStorage,localStorage,cookies
  6. Operating System-进程/线程内部通信-竞争条件(Race Conditions)
  7. Maven(3)-利用intellij idea创建maven web项目
  8. man syslog | col -b &gt; syslog.txt
  9. C#调用ODBC连接SQL Server数据库的存储过程
  10. #410div2D. Mike and distribution