求改
查看原帖
求改
1416426
tengyuxuan楼主2024/11/26 13:39
#include <bits/stdc++.h>
using namespace std;

int main(){
    string s;
    getline(cin,s);
    reverse(s.begin(),s.end());
    while(s[0]-48==0){
    	s.erase(0,1);
	}//删除前导0 
	cout<<s;
	return 0;
}
2024/11/26 13:39
加载中...