Run ID:150989

提交时间:2026-04-02 16:10:16

#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; }