アットウィキロゴ

Reverse Sequence

0006 : Reverse Sequence



解説

与えられた文字列を逆順に表示する。

プログラム

C


C++

+ ...
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
 
int main() {
    string str;
    cin >> str;
    reverse(str.begin(), str.end());
    cout << str << endl;
 
    return 0;
}

Java

最終更新:2012年12月18日 17:56