1 条题解

  • 1
    @ 2025-12-23 12:54:48

    #include<bits/stdc++.h> using namespace std; string s,st; long long a,b; int main(){ getline(cin,s); s+='p'; for(int i=0;i<s.size();i++) { if(s[i]>=48&&s[i]<='9')st+=s[i]; else { if(st!="") { int p=0; while(st[p]48)p++; if(p>=1&&p!=st.size()) { for(int j=p;j<st.size();j++)cout<<st[j]; cout<<endl; } if(pst.size())cout<<0<<endl; if(p==0)cout<<st<<endl; } st=""; } } return 0;
    }

    • 1

    信息

    ID
    2429
    时间
    1000ms
    内存
    128MiB
    难度
    6
    标签
    (无)
    递交数
    341
    已通过
    97
    上传者