Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148861 周润泽 词组缩写 C++ Accepted 0 MS 268 KB 488 2026-03-01 19:34:16

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int t; cin >> t; cin.get(); for (int i = 0; i < t; ++i) { string s; getline(cin, s); string n; bool f = true; for (char c : s) { if (c == ' ') { f = true; } else if (f) { n += toupper(c); f = false; } } cout << n << endl; } return 0; }