Run ID:158839
提交时间:2026-08-22 17:52:31
#include <iostream> using namespace std; int main() { int T; cin>>T; cin.ignore(); while(T--){ string s; getline(cin,s); string n_s; bool f=1; for(int i=0;i<s.size();i++){ if(s[i]==' '){ f=1; } else{ if(f==1){ n_s+=toupper(s[i]); f=0; } } } cout<<n_s<<endl; } return 0; }