1 solutions

  • 0
    @ 2026-3-17 19:47:25
    
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        string a;
        cin>>a;
        if(a[0]=='-')cout<<"-";
        bool b=a[0]=='-';
        string c="";
        for(int i=a.length()-1;i>=0+b;i--)c+=a[i];
        int i=0;
        while(1)
        {
            if(c[i]=='0')i++;
            else break;
        }
        for(int j=i;j<c.length();j++)cout<<c[j];
    }
    
    • 1

    Information

    ID
    1545
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    10
    Tags
    # Submissions
    1
    Accepted
    1
    Uploaded By