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>

using namespace std;

int main() {
  int input[5];
  for (int input_i = 0; input_i < 5; input_i++)
    cin >> input[input_i];
  sort(input, input+5, greater<int>());
  for (int input_i = 0; input_i < 5; input_i++) {
    cout << input[input_i];
    if (input_i != 4)
      cout << " ";
  }
  cout << endl;
  return 0;
}

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);
cout<<a[4];
for(int i=4-1;i>=0;--i)
cout<<" "<<a[i];
cout<<endl;
return 0;
}

C++: #include<bits/stdc++.h>
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--){
    if(i!=0)
    cout<<a[i]<<" ";
    else 
      cout<<a[i];
  }
  cout<<endl;
  return 0;
  
}

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

int main() {
	ios :: sync_with_stdio(false);
	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] << (i + 1 == 5 ? '\n' : ' ');
	return 0;
}

C++: #include<stdio.h>
#include<algorithm>
using namespace std;
int main(){
	int a[5];
	
	for(int i=0;i<5;i++){
		scanf("%d",&a[i]);
	}
	sort(a,a+5);
	
	printf("%d %d %d %d %d\n",a[4],a[3],a[2],a[1],a[0]);
	
	return 0;
}

C++: #include<iostream>
#include<set>
#include<string>

int main() {
	int a, b, c, d, e;
	while (std::cin >> a >> b >> c >> d >> e) {
		std::set<int> sort;
		sort.insert(a); sort.insert(b); sort.insert(c); sort.insert(d); sort.insert(e);
		int i = 0;
		for (std::set<int>::reverse_iterator itr = sort.rbegin(); itr != sort.rend(); itr++) {
			std::cout << *itr;
			if (i < 4) std::cout << " ";
		}
		std::cout << std::endl;
	}
	return 0;
}

C++: #include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
#include<vector>
#include<cmath>
#include<cstring>
#include<cstdio>
#define loop(i,a,b) for(int i=a;i<b;i++) 
#define rep(i,a) loop(i,0,a)
#define rp(a) while(a--)
#define pb push_back
#define mp make_pair
#define all(in) in.begin(),in.end()
const double PI=acos(-1);
const double EPS=1e-10;
using namespace std;
typedef long long ll;
typedef vector<int> vi;
int main(){
	vector<int>in(5);
	rep(i,5)cin>>in[i];
	sort(all(in));
	rep(i,5){
		if(i)cout<<" ";
		cout<<in[4-i];
	}
}

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

#define iota(i,n,b,s) for(int i=int(b);i!=int((b)+(s)*(n));i+=(s))
#define range(i,n,m) iota(i,(((n)>(m))?((n)-(m)):((m)-(n))),(n),((n)>(m)?-1:1))
#define rep(i,n) iota(i,(n),0,1)
#define loop for(;;)

#define INF (1e9)
#define EPS (1e-9)
#define cons(a,b) (make_pair(a,b))
#define car(a) (a.first)
#define cdr(a) (a.second)
#define cadr(a) (car(cdr(a)))
#define cddr(a) (cdr(cdr(a)))
#define all(a) a.begin(), a.end()
#define trace(var) cerr<<">>> "<<#var<<" = "<<var<<endl;

typedef long long Integer;
typedef double Real;
typedef vector<int> vi;
typedef vector<string> vs;
typedef map<string,int> Dictionary;
const Real PI = acos(-1);

template<class S, class T>
ostream& operator<<(ostream& os, pair<S,T> p) {
  os << '(' << car(p) << ", " << cdr(p) << ')';
  return os;
}

template<class T>
ostream& operator<<(ostream& os, vector<T> v) {
  os << v[0];
  for (int i=1, len=v.size(); i<len; ++i) os << ' ' << v[i];
  return os;
}

int dx[] = { -1, 0, 1, 0 };
int dy[] = {  0, -1, 0, 1 };

string rot(string s) {
  string r = "";
  rep (i, s.size()) {
    char c = s[i] < 'a' ? s[i]
           : s[i] == 'z' ? 'a' : char(s[i]+1);
    r += c;
  }
  return r;
}

bool ok(string s) {
  int a = s.find("the");
  int b = s.find("this");
  int c = s.find("that");
  return a != string::npos || b != string::npos || c != string::npos;
}

int main() {

  vi xs;
  int x;
  while (cin >> x, cin) xs.push_back(x);
  sort(all(xs)); reverse(all(xs));
  cout << xs << endl;

  return 0;
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int a[5];

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


	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;
            }
        }
    }
    printf("\n");
    for(l=0;l<n;l++)printf("%d ",a[l]);
    printf("\n");
    return 0;
}

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

using namespace std;

int main(void){
  int x;
  vector<int> v;

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

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

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

  return 0;
}

C++: #include<stdio.h>
int main(){
	int tmp,ary[5],i,j;
	for(i=0;i<5;i++){
		scanf("%d",&ary[i]);
	}
	for(j=0;j<3;j++){
		for(i=4;i>=j;i--){
			if(ary[i]<ary[i+1]){
				tmp=ary[i+1];
				ary[i+1]=ary[i];
				ary[i]=tmp;
			}
		}
	}
	for(i=0;i<5;i++){	
		printf("%d ",ary[i]);
	}
	return 0;
}

C++: #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
#include <cassert>
#include <iostream>
#include <sstream>
#include <string>
#include <list>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <utility>
#include <numeric>
#include <algorithm>
#include <bitset>
#include <complex>
#include <fstream>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int, int> pint;
#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for(int i = x; i < n; i++)
template<class T> T RoundOff(T a){ return int(a+.5-(a<0)); }
template<class T, class C> void chmax(T& a, C b){ if(a < b) a = b; }
template<class T, class C> void chmin(T& a, C b){ if(b < a) a = b; }
template<class T, class C> pair<T, C> mp(T a, C b){ return make_pair(a, b); }
int ConvertInt(string s){ int a = 0; rep(i, s.size())if(s[i]!='-')a+=(s[i]-'0')*pow(10,(float)s.size()-i-1); return s[0]!='-'?a:-a;}

vector<string> split(string str, string delim)
{
    vector<string> result;
    int cutAt;
    while( (cutAt = str.find_first_of(delim)) != str.npos )
    {
        if(cutAt > 0)
        {
            result.push_back(str.substr(0, cutAt));
        }
        str = str.substr(cutAt + 1);
    }
    if(str.length() > 0)
    {
        result.push_back(str);
    }
	return result;
}

int main()
{
	vint v(5);
	string str;

	getline(cin, str);
	vector<string> vs = split(str, " ");

	rep(i, 5)
		v[i] = ConvertInt(vs[i]);

	sort(ALL(v), greater<int>());
	
	rep(i, 5)
		cout << v[i] << (i != 4 ? " " : "");
	
	cout << endl;
}

C++: #include <iostream>

using namespace std;
int main(void){
    
    int s[5];
    int i,k;
    int tmp;
    
    for(i=0; i < 5 ; i++)
    {
        cin >> s[i];
    }
    
    for(i=0; i<4;i++)
    {
        for(k=i+1; k<5;k++)
        {
            if(s[i]< s[k])
            {
                tmp = s[k];
                s[k] = s[i];
                s[i] = tmp;
            }
        }
    }
    
    i = 0;
    while(1)
    {
        cout << s[i++];
        
        if(i==5)
            break;
            
        cout << " ";
    }
    
    cout << endl;
    
}