题解 2819:数字反转 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年10月13日 0 点赞 0 评论 398 浏览 评分:0.0
数字反转zhaunzhaun 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,ans=0; cin>>n; …… 题解列表 2023年07月12日 0 点赞 0 评论 261 浏览 评分:0.0
感谢支持,谢谢 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,m,i; cin>>n; …… 题解列表 2023年07月12日 0 点赞 0 评论 263 浏览 评分:0.0
数字反转(简单思路) 摘要:解题思路:用long long输入即可,用数组判断前导0注意事项:注意输入会有负数,则输出需要“-”注意下面的for循环a[-1]=0的用法参考代码:#include<bits/stdc++.h>us…… 题解列表 2023年03月23日 0 点赞 0 评论 336 浏览 评分:0.0
2819: 数字反转(python) 摘要:解题思路:注意事项:参考代码:n = int(input()) if n < 0: print("-",end = "") n = -n n = str(n)[::-1] …… 题解列表 2023年02月21日 0 点赞 0 评论 354 浏览 评分:0.0
C语言函数解决-不考虑前导0的情况 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void kr(int n); int main() { int n; scanf("%d",&n…… 题解列表 2022年11月28日 0 点赞 0 评论 296 浏览 评分:0.0