Run ID:148847
提交时间:2026-03-01 19:22:18
#include<bits/stdc++.h> using namespace std; string s; int t; int main() { string s; int t; cin>>t; t = t+1; while(t--){ getline(cin, s); // 读取整行 bool f = true; for (char c : s) { if (f && c != ' ') { cout <<char( toupper(c)); f = false; } else if (c == ' ') { f = true; } } } return 0; }