提交时间:2024-01-06 16:55:38

运行 ID: 34311

#include<bits/stdc++.h> using namespace std; string s,c; int main(){ getline(cin,s); if(s[0]>='a'&&s[0]<='z'){ c=s[0]-'a'+'A'; s=s.erase(0,1); cout<<c+s; } else if(s[0]>='A'&&s[0]<='Z'){ cout<<s; } }