0
已解决
曹博扬
初级天翼
初级天翼
#include<iostream>
#include<string>
#include<cmath>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<sstream>
using namespace std;
string s;
int main(){
int n;
cin>>n;
for(int j=1;j<=n;j++){
getline(cin,s);
getline(cin,s);
if(s[0]>='a'&&s[0]<='z')
s[0]-=32;
for(int i=1;i<s.size();i++){
if(s[i]==' ')
s[i]='-';
else if(s[i]>='A'&&s[i]<='Z')
s[i]+=32;
}
cout<<s<<endl;
}
return 0;
}
急!!!
现等!!