| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 75350 | sh25_wangtaojie | 将字符串中的小写字母转换成大写字母 | C++ | Accepted | 0 MS | 248 KB | 287 | 2025-12-05 15:49:23 |
#include <iostream> #include <string> using namespace std; int main() { string input; getline(cin, input); for (char& c : input) { if (c >= 'a' && c <= 'z') { c = c - 'a' + 'A'; } } cout << input << endl; return 0; }