Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
34466 | qwertyuiop | [acwing]首字母大写 | C++ | 通过 | 0 MS | 256 KB | 148 | 2024-01-07 14:17:07 |
#include<bits/stdc++.h> using namespace std; string s; int main(){ cin>>s; if(s[0]<='z'&&s[0]>='a')s[0]+=('A'-'a'); cout<<s; return 0; }