Qiuziyi @ 2023-03-21 16:21:35
#include<bits/stdc++.h>
using namespace std;
int n,a[11];
bool flag=false;
int main(){
cin>>n;
if(n<0) cout<<"-";
n=abs(n);
while(n){
if(n%10==0 && flag==false){
n/=10;
continue;
}
flag=true;
cout<<n%10;
n/=10;
}
return 0;
}
谢谢好人
by Yinsh @ 2023-03-22 21:51:39
@Qiuziyi 如果输入是
by Qiuziyi @ 2023-03-28 15:58:43
@Yinsh 过了,谢谢大佬