题解 2819: 数字反转

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

编写题解 2819: 数字反转

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){long long n,m=0; cin>>n;while(n……

2819: 数字反转

摘要:解题思路:注意事项:参考代码:include <bits/stdc++.h>using namespace std;int main(){    long long n=0,a,b,sum=0;//s……

数字反转 2819:

摘要:解题思路:#include <iostream>using namespace std;int main(){    long long n, s=0;    cin>>n;    while(n) ……

题解 2819: 数字反转

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    /*way1    long long a;    ……

题解 2819: 数字反转

摘要:解题思路:注意事项:参考代码:#include <iostream>//忘用万能头了using namespace std;int main(){    long long a;//数大,int装不下……

编写题解 2819: 数字反转

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long n,ans=0;    cin>……

题解 2819:数字反转

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {    public static void main(String[] args……

编写题解 2819: 数字反转

摘要:解题思路:注意事项:参考代码:n=input()fn=str(abs(int(n)))#取整+绝对值+字符串,避免‘-’的影响r=0#反转新数for j in range(len(fn)-1,-1,-……

2819: 数字反转

摘要:参考代码:n = input() if n[0] == &#39;-&#39;:     print(&#39;-&#39; + str(int(n[1:][::-1]))) else:   ……