Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
62034 | 万正钰 | 反转字符串 | C++ | Accepted | 1 MS | 280 KB | 262 | 2023-12-16 17:11:22 |
#include<algorithm> #include<iostream> #include<cstring> #include<cmath> #include<iomanip> using namespace std; int main(){ string b; getline(cin,b); int n=b.size(); for(int i=n-1;i>=0;i--){ cout<<b[i]; } return 0; }