Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
27641 | 唐心 | 字符串倒序输出 | C++ | Accepted | 2 MS | 720 KB | 246 | 2022-06-07 17:54:53 |
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main() { int n,i; char str[200]; cin>>str; n = strlen(str); for(i=n-1;i>=0;i--) { cout<<str[i]; } cout<<endl; return 0; }