输入
输入内容为一个长度不大于50的字符串
输出
逆序输出该字符串
样例输入
How are you?
样例输出
?uoy era woH
#include<iostream>
#include<iomanip>
#include<vector>
#include<string>
#include<cmath>
using namespace std;
int main()
{
// From IMUDGESOJ -RID:488483 -PID:0 -RES:13 -LANG:1
string s;
int m;
while (getline(cin, s))
{
int len = s.length();
m = len;
}
vector<char>p(m);
for (int i = 0; i <m; i++)
{
p[i] = s[i];
}
for (int i = 0; i < m; i++)
{
cout << p[m-i-1];
}
return 0;
}