Go: package main

import (
	"bufio"
	"os"
	"strconv"
	"sort"
	"fmt"
)

var scanner = bufio.NewScanner(os.Stdin)

func nextInt() int {
	scanner.Scan()
	i, e := strconv.Atoi(scanner.Text())
	if e != nil {
		panic(e)
	}
	return i
}
func main() {
	scanner.Split(bufio.ScanWords)
	nums := make([]int, 5)
	for i := 0; i < 5; i++ {
		nums[i] = nextInt()
	}
	sort.Sort(sort.Reverse(sort.IntSlice(nums)))
	for i, v := range nums {
		if i == len(nums)-1 {
			fmt.Printf("%d\n", v)
		} else {
			fmt.Printf("%d ", v)
		}
	}
}

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

using namespace std;

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

C++: #include<iostream>
#include<algorithm>
#define FOR(i,n) for(int i = 0; i < n; i++)
using namespace std;
int main(){
  int num[5];
  FOR(i,5) cin >> num[i];
  sort(num,num+5);
  FOR(i,5) cout >> num[i];
}

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

int main() {
	int a[5];
	cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4];
	sort(a, a+5);
	cout << a[4] <<" "<< a[3] <<" "<< a[2] <<" "<< a[1] <<" "<< a[0]<<endl;
	return 0;
}

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

int Array[5];
int tmp;

int main() {
	for (int i = 0; i < 5; i++)
	{
		cin >> Array[i];
	}
	
	for (int i = 0; i < 5 - 1; i++){
		for (int g = i+1; g < 5; g++){
			if (Array[i]<Array[g]){
				tmp = Array[i];
				Array[i] = Array[g];
				Array[g] = tmp;
			}
		}
	}

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

	return 0;
}

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

using namespace std;

int main(){
  int a[5],i,j,min,min_n;

  for(i=0:i<5;i++)
    scanf("%d",&a[i]);

  for(i=0;i<5;i++){
    min=a[i]; min_n=i;
    for(j=i+1;j<5;j++){
      if(min>a[j]){
        min=a[j]; min_n=j;
      }
    }
  swap(a[i],a[min]);
  printf( i<4 ? "%d " : "%d\n",a[i]);
  }
  return 0;
}

C++: #include<iostream>
#include<cstring>
#include<algorithm>
#include<queue>
#include<cstdio>
#include<string>
using namespace std;
int temp[5];
bool compare(int a,int b)
{
    return a>b;
}
int main()
{
  //  freopen("test.txt", "r", stdin);
  //  freopen("testout.txt", "w", stdout);
    while(~scanf("%d",&temp[0]))
    {
        for(int i=1;i<5;i++)
            cin>>temp[i];
        sort(temp,temp+5,compare);
        for(int i=0;i<4;i++)
        {
            cout<<temp[i]<<' ';
        }
        cout<<temp[4]<<endl;
    }
    return 0;
}

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

int main(){
int a;
int b[5];
int c;
int d;
int e;
c=0;
while(c<5){
b[c]=0;
c=c+1;
}
c=0;
while(c<5){
cin >>a;
d=0;
while(1){if(a>=b[d]){e=3; if(e>=d){while(e>=d){b[e+1]=b[e]; e=e-1;}} b[d]=a; break;} d=d+1;     }
c=c+1;
}
c=0;
while(c<5){
cout << b[c] <<" ";
c=c+1;}



}

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

int main(void)
{
	int num;
	vector<int> nums;
	for(int f1 = 0; f1 < 5; f1++)
	{
		scanf("%d", &num);
		nums.push_back(num);
	}
	sort(nums.begin(), nums.end(), greater<int>());
	vector<int>::iterator t = nums.begin();
	for(int f1 = 0; f1 < 5; f1++)
	{	
		if(f1 + 1 < 5)
		{
			printf("%d ",*(t + f1));
		}
		else
		{
			printf("%d\n",*(t + f1));
		}
	}
	return 0;
}

C++: #include<stdio.h>

int main(void)
{
	int a,b,c,d,e,x[5],t=0;
	scanf("%d %d %d %d %d",&a,&b,&c,&d,&e);

	for(t;t<5;t++)
	if(a>=b&&a>=c&&a>=d&&a>=e)
	{
		x[t]=a;
		a=-1;
	}
	else if(b>=c&&b>=d&&b>=e)
	{
		x[t]=b;
		b=-1;
	}
	else if(c>=d&&c>=e)
	{
		x[t]=c;
		c=-1;
	}
	else if(d>=e)
	{
		x[t]=d;
		d=-1;
	}
	else
	{
		x[t]=e;
		e=-1;
	}

	printf("%d %d %d %d %d",x[0],x[1],x[2],x[3],x[4]);
	return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <set>

using namespace std;

int main()
{
	multiset<int, greater<int> > n;
	multiset<int>::iterator ite;
	int a;

	for(int i=0; i<5; i++){
		cin >> a;
		n.insert(a);
	}
	int i=0;
	for(ite=n.begin(); i<5; ite++, i++){
		if(i==4){ cout << *ite << endl;}
		else{cout << *ite << " ";}
	}

	return 0;
}

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+5greater<int>());
  for(int i=0;i<5;i++){
    if(i!=4) cout << n[i] << ' ';
    else cout << n[i] << endl;
  }
  return 0;
}

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

int main(void)
{
	int d[5];

	for(int i = 0; i < 5; i++)
		cin >> d[i];
	sort(d,d+5);
	for(int i = 4; i >= 0; i--)
		cout << d[i] << endl;


	return 0;
}

C++: 
 #include <string>
 #include <vector>
 #include <algorithm>
 #include <iostream>
 #include <cstdio>
 #include <cstdlib>
 #include <cmath>
 #include <queue>
 #include <map>
 #define INF 100000000
 
 using namespace std;
 typedef long long ll;
 
 int main(){
 vector<int> a;
 for(int i=0;i<5;i++){
 int tmp;
 cin>>tmp;
 a.push_back(tmp);
 }
 sort(a.begin(),a.end());
 for(int i=4;i>=0;i--){cout<<a[i];if(i!=0)cout<<" ";}
 cout<<endl;
 return 0;
 }

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
int a[5];
for( int s = 0; s < 5; s++){
cin >> a[s]
}
sort( a, a + 5, greater<int>());
for(int i = 0; i < 5; i++){
 cout << a[i] << " ";
}
cout << endl;
return 0;
}

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

void solve(){

}
int main(){
  vector<int > v;
  for(int i = 0 ; i < 5; i++){
    int d;
    cin >> d;
    v.push_back(d);
  }
  sort(v.begin(), v.end(), greater<int>());
  for(int i = 0; i < (int)v.size(); i++){
    if(i)cout << " ";
    cout << v[i];
  }
  cout << endl;
  return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <cmath>
#include <stack>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
using namespace std;

int main(){
    int num[5];
    cin >> num[0] >> num[1] >> num[2] >> num[3] >> num[4];
    sort(num, num+5, greater<int>());
    printf("%d %d %d %d %d\n", num[0], num[1], num[2], num[3], num[4]);
}

C++: #include<bits/stdc++.h>
using namespace std;
signed main(){
  int a[5];
  for(int i=0;i<5;i++){
    cin>>a[i];
  }
  sort(a,a+5,greater<int>());
  for(int i=0;i<5;i++){				
    cout<<a[i];
    if(i!=5-1) cout<<" ";
  }
  cout<<"\n";
}

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

int main(){
	int n[5], sub;
	
	for(int i = 0; i < 5; i++) scanf("%d", &n[i]);
	
	for(int i = 0; i < 5; i++){
		for(int j = 4; j >= i; j--){
			if(n[i] < n[j]){
				sub = n[i];
				n[i] = n[j];
				n[j] = sub;
			}
		}
	}
	
	for(int i = 0; i < 5; i++) printf("%d%c", n[i], (i == 4)? '\n' : ' ');
	
	return 0;
}

C++: #include<stdio.h>
#include<stdlib.h>
int main(){
    int i,j,k,x=0,l,n=5,a[100]={0};
    for(i=0;i<n;i++){
        scanf("%d",&a[i]);
    }
    for(j=0;j<=10000;j++){
        for(k=0;k<n;k++){
            if(a[k]<a[k+1]){
                x=a[k];
                a[k]=a[k+1];
                a[k+1]=x;
            }
        }
    }
    for(l=0;l<n;l++)printf("%d ",a[l]);
    return 0;
}

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

using namespace std;

int main(){
  int a[5],i,j,min,min_n;

  for(i=0:i<5;i++)
    scanf("%d",&a[i]);

  for(i=0;i<5;i++){
    min=a[i]; min_n=i;
    for(j=i+1;j<5;j++){
      if(min<a[j]){
        min=a[j]; min_n=j;
      }
    }
  swap(a[i],a[min]);
  printf( i<4 ? "%d " : "%d\n",a[i]);
  }
  return 0;
}

C++: #include<iostream>
#include<queue>
#include<cstdio>
using namespace std;
int main(){
	int i,a;
	priority_queue<int> q1;
	for(i=0;i<5;i++){
		cin>>a;
		q1.push(a);
	}
	for(i=0;i<5;i++){
		a=q1.top();
		q1.pop();
		printf("%d%c",a,i==4?'\n':' ');
	}
	return 0;
}