2819: 数字反转(python) 摘要:解题思路:注意事项:参考代码:n = int(input()) if n < 0: print("-",end = "") n = -n n = str(n)[::-1] …… 题解列表 2023年02月21日 0 点赞 0 评论 687 浏览 评分:0.0
2819:数字反转 解题思路:注意事项:参考代码:#includeintmain(){intnum,remained,reserved=0;scanf("%d",&num);intsign=(num>0)?1:-1;num=fabs(num);while(num!=0){remained=num%10; 题解列表 2025年10月21日 0 点赞 0 评论 547 浏览 评分:0.0
数字反转zhaunzhaun 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,ans=0; cin>>n; …… 题解列表 2023年07月12日 0 点赞 0 评论 569 浏览 评分:0.0
数字反转(简单思路) 摘要:解题思路:用long long输入即可,用数组判断前导0注意事项:注意输入会有负数,则输出需要“-”注意下面的for循环a[-1]=0的用法参考代码:#include<bits/stdc++.h>us…… 题解列表 2023年03月23日 0 点赞 0 评论 679 浏览 评分:0.0
题解 2819: 数字反转 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b=0; scanf("%d"…… 题解列表 2025年01月26日 3 点赞 0 评论 635 浏览 评分:0.0
很新手的解题,想到什么就写什么,你绝对能看懂 摘要:解题思路:把输入的数的各个位数依次取出来存在数组里,再取出来组成反转的数注意事项:参考代码:#include<stdio.h>#include<math.h>int…… 题解列表 2025年01月23日 0 点赞 0 评论 609 浏览 评分:0.0
感谢支持,谢谢 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,m,i; cin>>n; …… 题解列表 2023年07月12日 0 点赞 0 评论 537 浏览 评分:0.0
题解 2819: 数字反转 解题思路:注意事项:注意第7行要写一个合并数位的小算法;第8行要写一个分解数列的算法参考代码:#includeusingnamespacestd;intmain(){longlongN,sum=0;cin>>N;while(N){sum=sum*10+N%10;N/=10 题解列表 2025年01月12日 1 点赞 0 评论 522 浏览 评分:0.0
2819: 数字反转 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,h = 0; cin>>n; whil…… 题解列表 2024年01月16日 0 点赞 1 评论 373 浏览 评分:2.0
2819: 数字反转 摘要:``` #include using namespace std; int main(){ int a,ans=0; cin>>a; while(a){ ans=ans*10+…… 题解列表 2023年11月21日 0 点赞 0 评论 414 浏览 评分:2.0