1 条题解

  • 1
    @ 2026-2-2 19:33:33
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        string s,ans;
        while(cin>>s){
            bool end=false; 
            int len=s.size();
            if(s[len-1]=='.'){
                s=s.substr(0,len-1);
                end=true;
            }
            if(s.size()>ans.size())
                ans=s;
            if(end)
                break;
        }
        cout<<ans;
        return 0;
    }
    

    信息

    ID
    11899
    时间
    1000ms
    内存
    512MiB
    难度
    1
    标签
    递交数
    4
    已通过
    4
    上传者