4 solutions
-
0
#include<bits/stdc++.h> using namespace std; int main() { int t; cin>>t; string s; getline(cin,s); //读取t后面的空行 while(t--) { getline(cin,s); string res; for(int i=0;i<s.size();i++) { if(s[i]==' ') continue; int j=i; while(j<s.size()&&s[j]!=' ') j++; res=res+char(toupper(s[i])); i=j; } cout<<res<<endl; } return 0; }
Information
- ID
- 97
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- (None)
- # Submissions
- 57
- Accepted
- 19
- Uploaded By