牛客周赛 Round 130 A

#include <bits/stdc++.h>
using namespace std;
int main()
{
    string str;
    cin>>str;
    bool flag = 0;
    for(int i =0 ;i< str.size();i ++){
        if(str[i] == '0'){
            if(flag == 0){
                continue;
            }
            else cout<<str[i];
        }
        else{
            flag = 1;
            cout<< str[i];
        }
    }
}#题解#
全部评论

相关推荐

点赞 评论 收藏
分享
评论
2
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务