Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
67371 | 冯诚阳 | 反转字符串 | C++ | Accepted | 0 MS | 276 KB | 262 | 2024-03-16 14:35:14 |
#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; }