| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77932 | sh25_shenpy | 字符串改成大写, 逆序输出 | C++ | 通过 | 0 MS | 256 KB | 336 | 2025-12-26 15:03:01 |
#include<bits/stdc++.h> using namespace std; int main() { string str; cin>>str; int len=str.length(); for(int i=len-1;i>=0;i--) { if(i==len-3) { str[i]='W'; } else { str[i]=str[i]-32; } cout<<str[i]; } return 0; }