#include <iostream>
#include <string>
using namespace std;
int main()
{
string a;
cout << "请输入一个字符串:";
cin >> a;
int len = a.length();
for (int i = len - 1; i >= 0; i--)
{
cout << a[i];
}
cout << endl;
return 0;}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbigpCnsKICAgIHN0cmluZyBhOwogICAgY291dCA8PCAi6K+36L6T5YWl5LiA5Liq5a2X56ym5Liy77yaIjsKICAgIGNpbiA+PiBhOwoKICAgIGludCBsZW4gPSBhLmxlbmd0aCgpOwogICAgZm9yIChpbnQgaSA9IGxlbiAtIDE7IGkgPj0gMDsgaS0tKQogICAgewogICAgICAgIGNvdXQgPDwgYVtpXTsKICAgIH0KICAgIGNvdXQgPDwgZW5kbDsKCiAgICByZXR1cm4gMDt9CgogICAg