#include
#include
using namespace std;
int main(){
string s;
cin >> s;
string temp;
string::reverse_iterator iter;
for(iter = s.rbegin();iter != s.rend(); ++iter){
temp += *iter;
}
cout << temp << endl;
cout << s << endl;
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)