全部评论 4

  • g

    2026-10-20 来自 浙江

    0
  • #include <algorithm>
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    int n;
    cin>>n;
    if(n<0){
    cout<<"-";
    n=abs(n);
    }
    n*=1;
    string s=to_string(n);
    while(s[s.length()-1]=='0'){
    string b="";
    for(int i=0;i<s.length()-1;i++){
    b+=s[i];
    }s=b;
    }
    reverse(s.begin(),s.end());
    cout<<s;
    return 0;
    }

    2026-10-19 来自 江苏

    0
  • 2026-07-26 来自 上海

    0
  • good!!

    2025-11-28 来自 江苏

    0
暂无数据

提交答案之后,这里将显示提交结果~

首页