摘要: 题目 分析 取出每一位(取余除以十) 代码 1 class Solution { 2 public: 3 int reverse(int x) { 4 long long int r = 0; 5 while(x){ 6 r = r * 10 + x % 10; 7 x /= 10; 8 } 9 i 阅读全文
posted @ 2022-03-05 22:09 Uitachi 阅读(31) 评论(0) 推荐(0)