1 solutions
-
0
#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
- 1679
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 10
- Tags
- # Submissions
- 1
- Accepted
- 1
- Uploaded By