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<cstdio>
#include<algorithm>

using namespace std;
int main(void)
{
	int a[5];
	for(int i = 0;i<5;i++)
	{
		scanf("%d",&a[i]);
	}
	sort(a,a+5);
	reverse(a,a+5);
		for(int i = 0;i < 5;i++)
		{
			printf("%d",a[i]);
			if(i <= 3) printf(" ");
		}
		printf("\n");



	return 0;
}

C++: #include <iostream>
#include <stdio.h>
#include <math.h>
#include <string>
#include <algorithm>
#include <cmath>
#include <string.h>
#include <cstring>
#include <sstream>
#include <stdlib.h>

using namespace std;

int main (void)
{
	int a[4];
	cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4];

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

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]);
	for(int i=0;i<5;i++)
		cout<<num[i];
	cout<<endl;
}

C++: #include <stdio.h>

int main() {
    int n[5];
    scanf("%d %d %d %d %d", &n[0], &n[1],&n[2],&n[3],&n[4]);

    {
        bool finished = false;
        while (!finished) {
            finished = true;
            for (int i = 0; i < 4; ++i) {
                if (n[i] < n[i + 1]) {
                    int temp = n[i + 1];
                    n[i + 1] = n[i];
                    n[i] = temp;
                    finished = false;
                }
            }
    }
    }

    for (int i = 0; i < 5; ++i) {
        char c = (i == 4) ? '\n' : ' ';
        printf("%d%c", n[i], c);
    }
    return 0;
}

C++: #include<iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<sstream>
#include<algorithm>
#include<map>
#include<complex>
using namespace std;


#define li			long long int
#define rep(i,to)	for(int i=0;i<((int)(to));i++)
#define repp(i,start,to)	for(int i=(int)(start);i<((int)(to));i++)
#define pb			push_back
#define sz(v)		((li)(v).size())
#define bgn(v)		((v).begin())
#define eend(v)		((v).end())
#define allof(v)	(v).begin(), (v).end()
#define dodp(v,n)		memset(v,(li)n,sizeof(v))
#define bit(n)		(1ll<<(li)(n))
#define mp(a,b)		make_pair(a,b)
#define rin	rep(i,n)
#define EPS 1e-10
#define ETOL 1e-8
#define MOD 1000000007
#define p2(a,b)		cout<<a<<"\t"<<b<<endl
#define p3(a,b,c)		cout<<a<<"\t"<<b<<"\t"<<c<<endl


int main(){
	li a[5];
	
	rep(i,5)cin>>a[i];
	sort(a,a+5);
	
	rep(i,5)cout<<a[4-i]<<" ";
	puts("");
	
	return 0;
}

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

int main(){
	int a[5],i;
	while(cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4]){
		sort(a,a+5,greater<int>());
		i=0;
		for(int i=0;i<5;i++){
			cout << a[i];
			if(i!=4)cout << " ";
			else cout << endl;
		}
	}
}

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

using namespace std;

int main()
{
	int numbers[5];
	for(auto& n : numbers)
		cin >> n;

	sort(numbers, numbers+5, greater<int>());

	cout << numbers[0] << ' '
		 << numbers[1] << ' '
		 << numbers[2] << ' '
		 << numbers[3] << ' '
		 << numbers[4] << endl;
	
	return 0;
}

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

int main(){
    vector<int> v;
    int n;
    for (int i = 0; i < 5; i++){
	cin >> n;
	v.push_back(n);
    }
    sort(v.begin(), v.end(), greater<int>());

    for (int i = 0; i < 5; i++)
	printf("%d%c", v[i], (i == 4)? '\n':' ');

}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <cstring>
#include <climits>
#include <cmath>
#include <cfloat>

using namespace std;

int num[5];

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

		sort(num, num+5, greater<int>());

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


	return 0;
}

C++: #include <stdio.h>
#include <algorithm>

using namespace std;

int greater(int a, int b){
  return a>b;
}

int main(){
  int a[5];
  scanf("%d%d%d%d%d", a, a+1, a+2, a+3, a+4);

  sort(a, a+5, greater);

  printf("%d %d %d %d %d\n", a[0], a[1], a[2], a[3], a[4]);
}

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

using namespace std;

void solve()
{
	int a, b, c, d, e;
	cin >> a >> b >> c >> d >> e;
	priority_queue<int> PQue;
	PQue.push(a);
	PQue.push(b);
	PQue.push(c);
	PQue.push(d);
	PQue.push(e);
	for(int i = 0; i < 4; ++i)
	{
		cout << PQue.top() << " ";
		PQue.pop();
	}
	cout << PQue.top() << endl;
}

int main()
{
	solve();
	return(0);
}

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

using namespace std;

typedef long long ll;
typedef pair<ll, ll> P;

#define MOD 1000000007
#define REP(i, N) for (int i = 0; i < N; ++i)
#define REP1(i, N) for (int i = 1; i <= N; ++i)
#define RREP(i, N) for (int i = N - 1; i >= 0; --i)
#define ALL(a) a.begin(), a.end()

int main() {
  vector<int> a(5);
  REP(i, 5) cin >> a[i];
  sort(ALL(a));
  RREP(i, 5) {
    if (i != 4) cout << " ";
    cout << a[i];
  }
  cout << "\n";
  return 0;
}

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

int main() {
	int a[5];
	for(int i=0; i<5; i++){
		cin >> a[i];
	}
	for(int j=0; j<5; j++){
		int v = a[j];
		int k = j-1;
		while(a[k]<v && k>=0){
			a[k+1] = a[k];
			k--;
			a[k+1] = v;
		}
	}
	for(int l=0; l<5; l++){
		cout << a[l] << ' ';
	}
	return 0;
}

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

int main() {
	vector<int> v(5);
	for (int i = 0; i < 5; i++) {
		cin >> v.at(i);
	}

	sort(v.begin(), v.end());
	reverse(v.begin(), v.end());

	for (int i = 0; i < 5; i++) {
		cout << v.at(i);
		if (i == 4) {
			cout << endl;
		}
		else {
			cout << ' ';
		}
	}
}

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

int main()
{
    int Number[5];
    int Temp;

    while(cin >> Number[0] >> Number[1] >> Number[2] >> Number[3] >> Number[4])
    {
        for(int x = 0; x < 5; x++)
        {
            for(int z = 0; z < 5; z++)
            {
                if(Number[z] < Number[z+1])
                {
                    Temp = Number[z+1];
                    Number[z+1] = Number[z];
                    Number[z] = Temp;
                }
            }
        }

        for(int y = 0; y < 5; y++)
        {
            cout << Number[y] << " ";
        }
		printf("\n");

    }
	return 0;
}