| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158846 | 陈襗葳 | 词组缩写 | C++ | Accepted | 1 MS | 280 KB | 547 | 2026-08-22 17:54:36 |
#include<bits/stdc++.h> using namespace std; int main(){ int T; cin>>T; cin.ignore(); while(T--){ string s; getline(cin,s); string new_s; bool f=1; for(int i=0;i<s.size();i++){ if(s[i]==' '){ f=1; } else{ if(f){ new_s+=toupper(s[i]); f=0; } else{ } } } cout<<new_s<<endl; } }