View Code of Problem 52

// ConsoleApplication5.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//

#include <iostream>
#include<cstdio>
#include<algorithm>
#include<cstdbool>
#include<cmath>
#include<string>
#include<cstring>
using namespace std;

int main()
{
	string str;
	getline(cin, str);
	reverse(str.begin(), str.end());
	cout << str << endl;
	return 0;
}

Double click to view unformatted code.


Back to problem 52