Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
80580 sh25_wangtaojie 字符大小写转换 C++ 通过 0 MS 248 KB 287 2026-01-04 15:22:52

Tests(1/1):


#include <iostream> #include <string> using namespace std; int main() { string input; cin >> input; for (char &c : input) { if (islower(c)) c = toupper(c); else if (isupper(c)) c = tolower(c); } cout << input << endl; return 0; }


测评信息: