编写题解 2819: 数字反转 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){long long n,m=0; cin>>n;while(n…… 题解列表 2024年05月14日 0 点赞 0 评论 590 浏览 评分:0.0
题解 2819:数字反转 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年10月13日 0 点赞 0 评论 470 浏览 评分:0.0
2819: 数字反转 摘要:解题思路:注意事项:参考代码:n = int(input())if n >= 0: s = str(n)[::-1] print(int(s))else: n = -n s =…… 题解列表 2024年07月30日 0 点赞 0 评论 373 浏览 评分:0.0
b每次左移一位,为a的个位数求模留出空间 摘要:解题思路:建立新变量b=0。由于b的值是累加不断更新,因此初始值需要是0。循环逻辑:b每次左移一位,为a的个位数求模留出空间。数值更新:a每次同样左移,不断保存前一位的值,回溯到上面的循环里。参考代码…… 题解列表 2024年12月06日 0 点赞 0 评论 263 浏览 评分:0.0
题解 2819: 数字反转 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b=0; scanf("%d"…… 题解列表 2025年01月26日 1 点赞 0 评论 421 浏览 评分:0.0
C++数字反转 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>#include<algor…… 题解列表 2026年03月04日 0 点赞 0 评论 100 浏览 评分:0.0
C语言函数解决-不考虑前导0的情况 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void kr(int n); int main() { int n; scanf("%d",&n…… 题解列表 2022年11月28日 0 点赞 0 评论 365 浏览 评分:0.0
2819:数字反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num,remained,reserved=0; scanf("%d",…… 题解列表 2025年10月21日 0 点赞 0 评论 314 浏览 评分:0.0
2819: 数字反转(python) 摘要:解题思路:注意事项:参考代码:n = int(input()) if n < 0: print("-",end = "") n = -n n = str(n)[::-1] …… 题解列表 2023年02月21日 0 点赞 0 评论 446 浏览 评分:0.0