Go: package main

import (
        "fmt"
        "sort"
)


func main() {
        var s []int
        var n int
        for i := 0; i < 5; i++ {
                fmt.Scanf("%d", &n)
                s = append(s, n)
        }
        sort.Ints(s)
        for i:= 1; i <= len(s); i++ {
                fmt.Printf("%d", s[len(s)-i])
                if i < len(s) {
                        fmt.Printf(" ")
                }
        }
        fmt.Printf("\n")
}

C++: #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main()
{
    int          input;
    vector<int>  array;
    for (int i=0; i<5; ++i) {
        cin >> input;
        array.push_back(input);
    }
    sort(array.begin(), array.end(), greater<int>());
    for (vector<int>::size_type i=0; i<array.size(); ++i) {
        cout << array[i];
        cout << (i==4 ? '\n' : ' ');
    }
}

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

int main() {
	int a,b,c,d,e;
	cin>>a>>b>>c>>d>>e;
	int num[]={a,b,c,d,e};
	for(int i=0;i<5;i++)
		for(int j=0;j<5;j++)
			if(num[i]<num[j])
				swap(num[i],num[j]);
	for(int i=0;i<5;i++)
		cout<<num[i];
	cout<<endl;
}

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

int main(void){
	int a[5];
	int i;

	for(i=0; i<5; i++){
		scanf("%d", &a[i]);
	}
	sort(a, a+5, greater<int>());
	for(i=0; i<4; i++){
		printf("%d ", a[i]);
	}
	printf("%d\n", a[4]);

	return 0;
}

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

using namespace std;

int main() {
	int num[5];
	for (int i = 0; i < 5; ++i) {
		cin >> num[i];
	}

	sort(num, num + 5);

	cout << num[4] << " " << num[3] << " " << num[2] << " " << num[1] << " " << num[0] << endl;
}

C++: #include <bits/stdc++.h>
#define LL long long
#define rep(i,n) for (int i=0;i<(n);i++)
//#define rep(i,x,n) for (int i=x;i<(n);i++)
using namespace std;
int main(){
	
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	int n;
	vector<int> vc;
	while(cin >> n){
		vc.push_back(n);
	}
	sort(vc.begin(), vc.end(), greater<int>());
	for(auto x : vc){
		cout << x << " ";
	}
	cout << endl;
	return 0;
}

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

int main(){

  int v[5];
  
  for(int i=0; i<5; i++){
  	cin >> v[i];
	}

  sort(v, v+5, greater<int>());
  
  for(int i=0; i<5; i++){
  	cout << v[i] << " ";
	}
	cout << endl;
	
  return 0;
}

C++: #include <iostream>
#include "stdio.h"

using namespace std;

int main()
{
	int c[5];
	int i = 0;
	int j = 0;
	int temp = 0;

	for(i=0;i<5;i++)
	{
		cin >> c[i];
	}

	for(i=0;i<4;i++)
	{
		for(j=0;j<4;j++)
		{
			if(c[j]<c[j+1])
			{
				temp = c[j];
				c[j] = c[j+1];
				c[j+1] = temp;
			}
		}


	}
	for(i=0;i<5;i++)
	{
		cout << c[i] << " ";
	}
}

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

using namespace std;

int main() {
    int a[5];
    for (int i = 0; i < 5; i++) {
        cin >> a[i];
    }
    sort(a, a + 5);
    for (int i = 4; i > 0; i--) {
        cout << a[i] << " ";
    }
    cout << a[0] << endl;

    return 0;
}

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

int main() {
	int a,b,c,d,e;
	cin>>a>>b>>c>>d>>e;
	int num[]={a,b,c,d,e};
	for(int i=0;i<5;i++)
		for(int j=i+1;j<5;j++)
			if(num[i]<num[j])
				swap(num[i],num[j]);
	a=num[0];
	b=num[1];
	c=num[2];
	d=num[3];
	e=num[4];
	cout<<a<<" "<<b<<" "<<c<<" "<<d<<" "<<e;
}

C++: #include<stdio.h>
int main(void){
int a[10],i,j,k,l,m,run;
for(i=0;i<5;i++){
    scanf("%d",&a[i]);
}
for(j=0;j<5;j++){
    for(k=0;k<5;k++){
        if(a[k]<a[k+1]){
            run=a[k];
            a[k]=a[k+1];
            a[k+1]=run;
        }
    }
}
for(l=0;l<5;l++){
printf("%d",a[l]);
if(l<4)printf(" ");
else printf("\n");
}
return 0;
}

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

using namespace std;

int main()
{
  int n[5];
  for(int i = 0; i < 5; i++)
    cin >> n[i];
  sort(n, n + 5, greater<int>());
  for(int i = 0; i < 5; i++)
    cout << n[i] << " ";
  cout << endl;
}

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

int main(){
  int n[5];

  for(int i=0; i<5; i++) {
    cin >> n[i];
  }
  sort(n, n+5, greater<int>());

  for(int j=0; j<5; j++) {
    cout << n[j] << " ";
  }
  return 0;
}

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

int main()
{
	std::list<int> gets ;
	int get ;

	for( int i = 0 ; i < 5 ; i ++ )
	{
		std::cin >> get ;

		if( gets.empty() )	gets.push_front( get ) ;
		else
		{
			std::list<int>::iterator i = gets.begin() ;
			while( i != gets.end() )
			{
				if( get >= *i )
				{
					gets.insert( i , get ) ;
					break ;
				}
				else	*i ++ ;
			}
			if( i == gets.end() )	gets.push_back( get ) ;
		}
	}

	for( std::list<int>::iterator i = gets.begin() ; i != gets.end() ; *i ++ )
	{
		std::cout << *i << " " ;
	}
	return 0 ;
}

C++: #include <iostream>
using namespace std;
int main() {
	int a[5];
	for(int i=0;i<5;i++) cin >> a[i];
	sort(a, a+5);
	cout << a[4];
	for(int i = 3; i>=0; i-- ) cout << " " << a[i];
	cout << endl;
	return 0;
}

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

int main()
{
	int a, b, c, d, e,sin=3,data;
	cin >> a >> b >> c >> d >> e;
	while (sin > 2) {
		sin = 1;
		if (a < b) {
			data = a;
			a = b;
			b = data;
			sin = 3;
		}
		if (b < c) {
			data = b;
			b = c;
			c = data;
			sin = 3;
		}
		if (c < d) {
			data = c;
			c = d;
			d = data;
			sin = 3;
		}
		if (d < e) {
			data = d;
			d = e;
			e = data;
			sin = 3;
		}	
	}
	cout << a << endl << b << endl << c << endl << d << endl << e << endl;
}

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

int main(){
  int a[5];
  for(int i=0;i<5;i++) cin >> a[i];
  sort(a,a+5);
  reverse(a,a+5);
  for(int i=0;i<5;i++){ 
	cout << a[i];
	if(i==4) cout << endl;
	else cout << ' ';
  }
  return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <complex>
#include <cassert>
#include <vector>
#include <iomanip>

using namespace std;

typedef complex<double> P;

#define all(c) (c).begin(), (c).end()
#define loop(i,a,b) for(int i=(a); i<(int)(b); i++)
#define rep(i,b) loop(i,0,b)

const double eps = 1e-10;

double cross(const P& a, const P& b) {
    return imag(conj(a)*b);
}
double dot(const P& a, const P& b) {
    return real(conj(a)*b);
}

struct L : public vector<P> {
    L(const P &a, const P &b) {
        push_back(a); push_back(b);
    }
};

P crosspoint(const L &l, const L &m) {
    double A = cross(l[1] - l[0], m[1] - m[0]);
    double B = cross(l[1] - l[0], l[1] - m[0]);
    if (abs(A) < eps && abs(B) < eps) return m[0]; // same line
    if (abs(A) < eps) assert(false); // !!!PRECONDITION NOT SATISFIED!!!
    return m[0] + B / A * (m[1] - m[0]);
}

typedef vector<int> vi;
int main(){
    vi a(5);
    rep(i, 5) cin >> a[i];
    sort(all(a));
    cout << a[4];
    rep(i, 4){
        cout << " " << a[3 - i];
    }
    cout << endl;
}

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

using namespace std;

int main() {
    int a;
    vector<int> vec;

    for (int i=0; i < 5; i++) {
        cin >> a;
        vec.push_back(a);
    }

    sort(vec.begin(), vec.end(), greater<int>());

    for (int i=0; i < vec.size(); i++) {
        cout << vec[i];
        if (i != vec.size() - 1) cout << " ";
    }
    cout << endl;

    return 0;
}

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

int main(int argc, char *argv[]){
	int a[5];
	cin>>a[0]>>a[1]>>a[2]>>a[3]>>a[4];
	for (int j = 0; j < 4; ++j){
		for (int i = 0; i < 4; ++i){			
			if(a[i]<a[i+1]){
				int tmp;
				tmp=a[i];
				a[i]=a[i+1];
				a[i+1]=tmp;
			}
		}
	}
	for (int i = 0; i < 5; ++i){
		cout<<a[i]<<" ";	
	}
	cout<<"\b"<<endl;
    return 0;
}

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

using namespace std;

int main()
{
  int a[5];
  for (int i = 0; i < 5; i++) {
    scanf(" %d ", &a[i]);
    a[i] = -a[i];
  }
  sort(a, &a[5]);
  for (int i = 0; i < 5; i++) {
    printf("%d", -a[i]);
    if (i != 4) {printf(" ");}
    else {printf("\n");}
  }

  return 0;
}