3409 拼接字符串

#include <bits/stdc++.h>
using namespace std;

int main() {

    string s;
    cin>>s;
    cout<<s; //先输出原字符串
    
    s[0]-=32; //首字母变大写
    cout<<s; //再输出新的单词
    
  return 0;
}
posted @ 2024-10-31 15:17  行胜于言Ibl  阅读(66)  评论(0)    收藏  举报