Go: package main

import (
	"fmt"
)

func main() {
	var str string
	fmt.Scanf("%s", &str)
	fmt.Printf("%s\n", strReverse(str))
}

func strReverse(str string) string {
	data := []rune(str)
	result := []rune{}

	for i := len(data) - 1; i >= 0; i-- {
		result = append(result, data[i])
	}

	return string(result)
}

C++: #include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <string>

using namespace std;

int main()
{
	char str[21];
	int tmp;
	cin >> str;
	tmp=strlen(str);
	for (int i = tmp-1; i >=0; i--) {
		cout << str[i];
	}
	cout << "\n";
	return 0;
}

C++: #include<iostream>
using namespace std;

int main(void){
  string str;
  cin >> str;
  int l = str.size();
  for(int i = l; i >= 0; i++){
    cout << str[i];
  }
  cout << endl;
  return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <stdlib.h>
#include <iomanip>
#include <string>
#include <cmath>
#define PI 3.14159265359
using namespace std;

int main()
{
	char tmpstr[20];
	cin >> tmpstr;
	string str(tmpstr);
	auto itr = str.end() - 1;
	for (; itr > str.begin(); --itr) {
		cout << *itr;
	}
	cout << *itr << endl;
	return 0;
}

C++: #include<cstdio>
#include<string>
#include<iostream>
using namespace std;

int main(){
  string str;
  cin>>str;
  for(int i=str.length()-1;i>=0;i--)
    cout<<str[i];
  cout<<endl;
  return 0;
}

C++: #include <algorithm>
#include <iostream>
#include <string>
#include <vector>

static void inputString(std::vector<char>& v1)
{
    std::string tmp;

    if (0x00 == &v1) {
        std::cerr << "v1 is null" << std::endl;
        exit (1);
    }

    std::cin >> tmp;
    for (int i = 0; i < tmp.size(); i++) {
        v1.push_back(tmp.at(i));
    }
}

static void reverseString(std::vector<char>& v1, std::vector<char>& v2)
{
    if (0x00 == &v1 || 0x00 == &v2) {
        std::cerr << "v1 or v2 are null." << std::endl;
        exit (1);
    }

    std::reverse_copy(v1.begin(), v1.end(), v2.begin());
}

int main()
{
    std::vector<char> vec1;
    
    inputString(vec1);

    std::vector<char> vec2(vec1.size());
    reverseString(vec1, vec2);
    for (int i = 0; i < vec2.size(); i++) {
        std::cout << vec2.at(i);
    }
    std::cout << std::endl;

    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;

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

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;

}

C++: #include <iostream>
#include <vector>
#include <fstream>
#include <algorithm>
#include <iomanip>
#include <map>
#include <queue>
#include <stack>
#include <set>
#include <ctime>
#include <iterator>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
using namespace std;

int main()
{
    string s;
    cin>>s;
    reverse(s.begin(),s.end());
    cout<<s<<endl;
}

C++: #include <iostream>
#include <string>
using namespace std;

int main() {

	string str;
	cin >> str;
	
	int length = str.size();
	
	for(int i=length-1; i>=0; i--){
		cout<< str[i];
	}
	cout << endl;

	return 0;
}

C++: #include <iostream>
#include <string>

int main() {
  std::string input;
  getline(std::cin, input);

  for(unsigned int cnt = input.length(); cnt > 0; --cnt) {
    std::cout << input[cnt -1];
  }
}

C++: #include<iostream>
#include<cstdio>
#include<vector>
#include<string>
#include<algorithm>

using namespace std;

void myReverse(string str);

int main()
{
	string str;
	cin >> str;
	
	myReverse( str );
	
	return 0;
}

void myReverse(string str)
{
	vector<char> v_r_str( str.size() );
	
	int i = 0;
	for(auto it = v_r_str.rbegin(); it != v_r_str.rend(); it++)
	{
		*it = str[i];
		i++;
	}
	
	for(auto it = v_r_str.begin(); it != v_r_str.end(); it++)
		cout << *it;
	cout << endl;
}

C++: #include<iostream>
#include<vector>
using namespace std;
int main(){
string str;
cin>>str;
for(int i=str.size()-1;i=>0;i--){
cout<<str[i]<<endl;
}

return 0;
}

C++: #include<iostream>
using namespace std;
	
int main()
{
	char change[19];
	cout<<"??????????????\????????????????????????\n";
	cin>>change[19];
	int j=strlen(change);
	j-=1;
	for(int i=j;i>=0;i--){
	cout<<change[i];
	}
	return 0;
}

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

C++: #include <iostream>
#include <string>

using namespace std;

int main() {
    int i,len;
    string ch;

    cin >> ch;

    len = ch.length();

    for(i = 0;i <= len / 2;i++){
        int box = ch[i];
        ch[i] = ch[len - i];
        ch[len - i] = box;
    }

    for(i = 0; i <= len;i++){
        cout << ch[i];
    }
    cout << endl;

    return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <algorithm>

#define N 20
using namespace std;

int main() {
    char str[N];
    cin >> str;
    reverse(str,str+strlen(str));
    printf("%s\n",str);
    return 0;
}

C++: main(i,s){
	char*p=s+20;
  while(~(*p--=getchar()));puts(s);
}

C++: #include<iostream>
#include<string>
using namespace std;

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

C++: #include<cstdio>
#include<cstring>
int main(){
	char str_i[20],str_o[20];
	scanf("%s",str_i);
	int l = strlen(str_i);
	//printf("%d\n",l);
	for(int i=0;i<l;i++){
		str_o[i] = str_i[l-1-i];
		printf("%c",str_o[i]);
	}
	printf("\n");
	return 0;
}

C++: #include <stdio.h>
#include <string.h>
int main()
{
    char ch[20];
    int i,j;
    gets(ch);
    j=strlen(ch);

    for(i=j-1;i>=0;i--)

    {
        printf("%c",ch[i]);
    }

    printf("\n");

    return 0;

}

C++: #include <bits/stdc++.h>

int main()
{
    unsigned long size;
    std::string str;
    std::cin >> str;
    size = str.size()-1;
    for (unsigned long i = 0; i <= size/2; i++) {
        std::swap(str[i], str[size-i]);
    }
    std::cout << str << std::endl;
    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  string s; cin >> s;
  for(int i = s.size() - 1; i >= 0; i--)
    cout << s[i];
  cout << endl;
}

C++: #include <iostream>
#include <string>
using namespace std;
int main(){
	string str;
	int i;
	cin >> str;
	for(i=str.size();i>0;i--){
		cout << str[i-1];
	}
	cout << endl;
	return 0;
}

C++: #include <iostream>
using namespace std;

int main() {
	// your code goes here
	char str[25];
	char ans[25];
	int x;
	for (int i = 0;i<25;i++) {
	    str[i]='$';
	}
	cin >> str;
	for (int i = 0;i<25;i++) {
		if (str[i]='$') {
			x=i;
			break;
		}
	}
	for (int i = 0;i<(x+1)) {
		cout << str[x-i];
	}
	cout << endl;
	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>

using namespace std;

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

C++: #include <iostream>
#include <stack>

int main(void) {
    std::stack<char> st;

    for (char ch; std::cin >> ch; st.push(ch));
    do {
        std::cout << st.top();
        st.pop();
    } while (!st.empty());
    std::cout << std::endl;

    return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
using namespace std;

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

C++: #include<iostream>
#include<string>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(void){
	int n;
	char a[21]={0};
	cin>>a;
	n=strlen(a);
	for(int i=n-1;i>=0;i--){
        cout<<a[i];
	}
    cout<<endl;

	return 0;
}

C++: #include <iostream>
#include <string>

using namespace std;

int main() {
  string str;
  cin >> str;
  for (int i = str.size() - 1; i >= 0; i--) {
    cout << str[i];
  }
  cout << endl;
  return 0;
}