#include <stdio.h>
#include <iostream>
#include <string>
using namespace std;
#pragma warning(disable:4996);
const int maxn = 100;
int main()
{
//char s[maxn];
freopen("data.txt", "r", stdin);
freopen("res.txt", "w", stdout);
string s;
getline(cin, s);
freopen("data.txt", "r", stdin);
freopen("res.txt", "w", stdout);
cout << s;
for (int i = s.size(); i--; i >= 0)
{
cout << s[i];
}
}
南京大学软院机试2020|字符串正反连接
最新推荐文章于 2022-06-30 00:36:13 发布