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 <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;
}

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

int main()
{
    int n;
    vector<int> v;
    for(int i=0; cin>>n && i<5; i++) v.push_back(n);
    
    stable_sort(v.begin(), v.end());
    reverse(v.begin(), v.end());

    cout << v.at(0);
    for(int i=1; i<5; i++) cout << " " << v.at(i);
    cout << endl;

    return 0;
}

C++: //include
//------------------------------------------
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>

using namespace std;

//conversion
//------------------------------------------
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}

//math
//-------------------------------------------
template<class T> inline T sqr(T x) {return x*x;}

//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef unsigned long long ULL;

//container util
//------------------------------------------
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())

//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

//constant
//--------------------------------------------
const double EPS = 1e-10;
const double PI  = acos(-1.0);

//clear memory
#define CLR(a) memset((a), 0 ,sizeof(a))

//debug
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

int main() {
  int n[5];

  REP(i, 5) cin >> n[i];
  sort(n, n+5, greater<int>());

  REP(i, 4) cout << n[i] << ' ';
  cout << n[4] << endl;
}

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

int main(){
   int a,i;
   vector<int> s;
   for(i=0;i<5;i++){
      cin>>a;
      s.push_back(a);
   }
   sort(s.rbegin(),s.rend());
   
   printf("%d",s[0]);
   for(i=1;i<5;i++){
      printf(" %d",s[i]);
   }
   printf("\n");
   return 0;
}