Run ID:151492
提交时间:2026-04-12 15:31:55
#include<bits/stdc++.h> using namespace std; int main(){ int T; cin>>T; cin.ignore(); for(int i=0;i<T;++i){ string line; getline(cin,line); stringstream ss(line); string word; string res; while(ss>>word){ char c=toupper(word[0]); res+=c; }cout<<res<<endl; } return 0; }