Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
37286 | 汪禹同 | 字符倒序 | C++ | Accepted | 1 MS | 276 KB | 215 | 2022-08-15 10:55:50 |
#include<iostream> #include<cstring> #include<cmath> using namespace std; int main() { int n; string a; getline(cin,a); n = a.length(); for(int i=n-1;i>=0;i--) { cout<<a[i]; } return 0; }