| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148864 | 潘明泽 | 词组缩写 | C++ | Accepted | 0 MS | 280 KB | 488 | 2026-03-01 19:35:22 |
#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; }