04 2022 档案

摘要:回文数 通过比较后段的数与前段的数的大小关系实现 class Solution { public: bool isPalindrome(int x) { if(x<0 || (x>0 && x%10 == 0)){ return false; } int sum = 0; while (x > su 阅读全文
posted @ 2022-04-25 13:09 ghosteq 阅读(47) 评论(0) 推荐(0)