Go: package main

import (
	"fmt"
	"sort"
)

func main() {
	var a, b, c, d, e int
	fmt.Scan(&a, &b, &c, &d, &e)
	dataset := []int{a, b, c, d, e}

	sort.Sort(sort.Reverse(sort.IntSlice(dataset)))
	fmt.Printf("%d %d %d %d %d\n", dataset[0], dataset[1], dataset[2], dataset[3], dataset[4])
}

C++: /*****include*****/
#include <iostream>
#include <fstream>

/*****デバッグ定義*****/
//#define DEBUG
/*****マクロ定義*****/

/*****名前空間*****/
using namespace std;

/*****グローバル変数置き場*****/
int number[5];

/*****その他関数置き場*****/
void Q_sort(int left,int right){
	int threshold = (number[left] + number[right])/2;
	int i;
	int j;
	i = left;
	j = right;
	do{
		while(number[i] < threshold)	i++;
		while(number[j] > threshold)	j--;
		if(i <= j){
			int swap = number[i];
			number[i] = number[j];
			number[j] = swap;
			i++;
			j--;
		}
	}while(i <= j);
	if(j > left)	Q_sort(left,j);
	if(i < right)	Q_sort(i,right);
}
/*****main関数*****/
int main(){
	/*****ファイルオープン*****/
#ifdef DEBUG
	ofstream fout("output.txt");
	ifstream fin("input.txt");
	if(!fout || !fin){
		cout << "Can't open the file.\n";
		return;
	}
#endif
	/*****変数置き場*****/
	for(int i=0;i<5;i++)	cin >> number[i];
	Q_sort(0,4);
	for(int i=0;i<5;i++){
		cout << number[4-i];
		if(i==4)	cout << endl;
		else		cout << " ";
	}
	/*****処理部*****/

	/*****処理終了後*****/
#ifdef DEBUG
	fout.close();
	fin.close();
#endif
	return 0;
}

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

int main() {
	vector<int> vec(5);
	for (int i = 0; i < 5; i++) cin >> vec[i];
	sort(vec.begin(), vec.end());
	reverse(vec.begin(), vec.end());
	for (int i = 0; i < 5; i++) {
		if (i == 0) cout << vec[i] << flush;
		else cout << " " << vec[i] << flush;
	}
	cout << endl;
	return 0;
}

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

C++: #include <iostream>
#include <algorithm>
#include <functional>
#include <cstdlib>
#include <sstream>
#include <string>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <complex>
#include <vector>
#include <cstdio>
#include <cmath>
#include <time.h>
#define all(c) ((c).begin(),(c).end())
#define rall(c) (c).rbegin(),(c).rend()
//#define sort(v,n) sort(v,v+n)
//#define vsort(v) sort(v.begin(),v.end())
//#define vvsort(v) sort(v.begin(),v.end(),greater<int>())
#define ll long long
#define pb(a) push_back(a)
#define fi first
#define se second
#define inf 999999999
using namespace std;
const ll MOD = 1e9 + 7;
const double PI = acos(-1.0);
//---------------------------------------------------------------------------------------------//

vector<int> v;

int main() {
	for (int i = 0; i < 5; i++) {
		int a; cin >> a;
		v.push_back(a);
	}
	sort(v.rbegin(), v.rend());
	for (int i = 0; i < 5; i++) {
		cout << v[i];
		if (i != 4)cout << " ";
	}
	cout << endl;
}

C++: #include <stdio.h>
main(){
  int cur,a[5],i,max,tmp;
  while( scanf("%d%d%d%d%d",&a[0],&a[1],&a[2],&a[3],&a[4]) !=EOF){
  for(cur=0;cur<5;cur++){
    max=cur;
    for(i=cur;i<5;i++){
      if(a[i]>a[max]){
	max=i;
      }
    }
    tmp=a[cur];
    a[cur]=a[max];
    a[max]=tmp;
  }
    printf("%d %d %d %d %d\n",a[0],a[1],a[2],a[3],a[4]);
  }
return 0; 
}

C++: #include<cstring>
#include<cstdio>
#include<iostream>
#define SORT(a,n) for(int i=0;i<n-1;i++)for(int j=i+1,t;j<n;j++)if(a[i]<a[j]){t=a[i];a[i]=a[j];a[j]=t;}

 
using namespace std;

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

	SORT(a,5);

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

	return 0;
}

C++: #include <stdio.h>
#include <algorithm>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int a[5];

int main() {
    rep (i, 5) scanf("%d", a+i);
    sort(a, a+5);
    reverse(a, a+5);
    rep (i, 5) printf("%d%c", a[i], "\n "[i<4]);
    return 0;
}

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

int main()
{
	int n;
	scanf("%d", n);
	int Fraction = 1;
	for(int i = 0; i < n; i++){
		Fraction *= n-i;
	}
	printf("%d\n", Fraction);
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
using namespace std;
#define rep(i,n) for (int i=0; i < (n); i++)
#define all(c) (c).begin(), (c).end()

int main() {
  vector<int> v(5);

  rep(i,5) cin >> v[i];
  sort(all(v), greater<int>());
  rep(i, 4) cout << v[i] << " ";
  cout << v[4] << endl;

  return 0;
}

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>
#include <string>
#include <stack>
#include <math.h>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <vector>

using namespace std;






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

C++: #include <iostream>

using namespace std;
int main(void){
    // Here your code !
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];
}

C++: #include <iostream>
#include <iomanip>
#include <vector>
#include <cmath>
#include <algorithm>
#include <string>
#define shosu(x) fixed<<setprecision(x)
using namespace std;
typedef pair<int,int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,P> pip;
typedef long long ll;
const int inf=(1<<31)-1;
const double pi=acos(-1);

int n;
vi num(5);

int main(){
	for(int i=0;i<5;i++) cin>>num[i];
	for(int i=0;i<5;i++) num[i]*=-1;
	sort(num.begin(),num.end());
	for(int i=0;i<4;i++) cout<<num[i]*-1<<' ';
	cout<<num[4]*-1<<endl;
}

C++: #include<iostream>

int main(){
	int a[5],i,n,j;
	
	for(i=0;i<5;i++){
	std::cin>>a[i];
	}
	for(i=0;i<5;i++){
		for(j=i+1;j<5;j++){
			if(a[i]<a[j]){
				n=a[i];
				a[i]=a[j];
				a[j]=n;
				}
			}
		}
	for(i=0;i<5;i++){
	std::cout<<a[i]<<" ";
	}	
	
	std::cout<<std::endl;
	
	return 0;
	
	}

C++: #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
  vector<int> num;
  int n;
  for(int i=0; i<5; i++){
    cin >> n;
    num.push_back(n);
  }

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

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

C++: #include <stdio.h>

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

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

for (int i = 0; i < 5; i++){
for (int j = i + 1; j < 5; j++){
if (a[i] < a[j]){
a[i] ^= a[j];
a[j] ^= a[i];
a[i] ^= a[j];
}
}
}

printf("%d", a[0]);
for (int i = 1; i < 5; i++){
printf(" %d", a[i]);
}
puts("");

return (0);
}

C++: #include<stdio.h>
int main()
{
    int a,b,c,d,e,tem,i,j,arr[5];
    while(scanf("%d%d%d%d%d",&a,&b,&c,&d,&e)==5)
    {

        arr[0]=a;
        arr[1]=b;
        arr[2]=c;
        arr[3]=d;
        arr[4]=e;
        for(i=0; i<5; i++)
        {
            for(j=0; j<5-1; j++)
            {
                if(arr[j]<arr[j+1])
                {
                    tem=arr[j];
                    arr[j]=arr[j+1];
                    arr[j+1]=tem;
                }
            }
        }
        for(i=0; i<5; i++)
        printf("%d %d %d %d %d",arr[i]);
    }
    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];
}
return 0;
}