Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151492 吴雨卓 词组缩写 C++ Accepted 1 MS 264 KB 299 2026-04-12 15:31:55

Tests(1/1):


Code:

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