c艹,#7#8WA了。。。求助玄关
查看原帖
c艹,#7#8WA了。。。求助玄关
1055521
QwQ_77楼主2023/12/16 17:12
#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s;
    int l;
    cin>>s;
    l=sizeof(s);
    for(int i=0;i<l;i++)
    {
        if(s[i]>=65&&s[i]<=90)
            s[i]+=32;
        if(s[i]=='_')
            s[i]=='-';
    }
    cout<<"solution-"<<s;
    return 0;
}

九敏

2023/12/16 17:12
加载中...