Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
86993 sh25_zhoumy 将字符串中的小写字母转换成大写字母 C++ 通过 0 MS 252 KB 299 2026-04-10 15:01:44

Tests(3/3):


#include <iostream> #include <string> #include <cctype> using namespace std; int main() { string s; getline(cin, s); for (int i = 0; i < s.size(); i++) { if (islower(s[i])) { s[i] = toupper(s[i]); } } cout << s << endl; return 0; }


测评信息: