#include<bits/stdc++.h>
using namespace std;
int main(){
long long x;
cin>>x;
long long y;
long long z;
bool a = true;
if(x>0){
y=x;
}
if(x==0){
cout<<"0"<<endl;
return 0;
}
if(x<0){
y=-x;
a=false;
}int i=10;
long long j=1;
for(long long k=10;k<=y;k*=10){
if(k*10>y) j=k;
}
while(y){
z+=(y%i)*j;
j/=10;
y/=10;
}
if(a==false) cout<<"-";
cout<<z;
return 0;
}
求问:我数据(包括它给的数据点)代入进去都是正确的,为什么过不了(还只有0分)