题解 2819: 数字反转

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

筛选

数字反转(简单思路)

摘要:解题思路:用long long输入即可,用数组判断前导0注意事项:注意输入会有负数,则输出需要“-”注意下面的for循环a[-1]=0的用法参考代码:#include<bits/stdc++.h>us……

感谢支持,谢谢

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

数字反转zhaunzhaun

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