Go: package main

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

func main() {
	mountHeightList := make([]int64, 10)
	scanner := bufio.NewScanner(os.Stdin)
	for i := 0; i < 10; i++ {
		scanner.Scan()
		mountHeightList[i], _ = strconv.ParseInt(scanner.Text(), 10, 64)
	}

	sort.Slice(mountHeightList, func(i, j int) bool { return mountHeightList[i] > mountHeightList[j] })

	for i := 0; i < 3; i++ {
		fmt.Printf("%d\n", mountHeightList[i])
	}
}

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

void swap(int* x, int* y){
	int tmp = *x;
	*x = *y;
	*y = tmp;
}

int main(){
	int a = 0, b = 0, c = 0;
	for(int i = 0; i <= 10; i++){
		cin >> c;
		if(b < c){
			swap(&b, &c);
		}
		if(a < b){
			swap(&a, &b);
		}
		if(a < c){
			swap(&a, &c);
		}
	}
	cout << a << endl;
	cout << b << endl;
	cout << c << endl;
	return 0;
}

C++: #include<stdio.h>


int main()
{
    int a[1000], i , j, rem;

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

       if(a[j]<a[j+1])
        {
        rem=a[j];
        a[j]=a[j+1];
        a[j+1]=rem;
        }
      }
    }



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

C++: #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
	vector <int> h(10);
	for (int i = 0;i < 10;i++) {
		cin >> h[i];
	}
	sort(h.rbegin(), h.rend());
	cout << h[0] << endl << h[1] << endl << h[2] << endl;
}

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

typedef long int lint;
typedef long long int llint;
typedef pair<int, int> pii;
typedef pair<int, string> pis;
typedef pair<long, long> pll;

#define EACH(i, c) for (__typeof((c).begin()) i = (c).begin(); i != (c).end(); ++i)
#define ALL(c) (c).begin(), (c).end()
#define FOR(i, s, e) for (int i = (s); i < (int)(e); ++i)
#define REP(i, n) FOR(i, 0, n)
#define endl '\n'
#define mod 1000000007
#define INF 100000000
#define fk first
#define sv second

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

template<typename T>
void print(const std::vector<T>& v, char sep=' ') {
  for (int i = 0; i < (int)v.size(); i++) {
    if (i != 0) cout << sep;
    cout << v[i];
  }
  cout << endl;
}

int main()
{
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a[11];
  REP(i, 10){
    cin >> a[i];
  }
  sort(a, a + 10);
  reverse(a, a + 10);
  cout << a[0] << endl << a[1] << endl << a[2] << endl;

}

C++: #include <stdio.h>

int main(void)
{
  int i;
  int low;
  int mid;
  int large;
  int height[10];
   
  i=0;
  while(i++ < 10) {
    scanf("%d", &height[i-1]);
    if(i==1) low = mid = large = height[0];
     
    if(height[i-1] > large) {
      large = height[i-1];
      mid = large;
    }
    else
    if(height[i-1] > mid) {
      mid = height[i-1];
      low = mid;
    }
    else
    if (low > height[i-1]){
      low = height[i-1];
    }
  }
  printf("%d\n%d\n%d\n", large,mid,low);
 
  return 0;
}

C++: #include<stdio.h>

int main(){
int i,j,yama[10],temp;
for(i=0;i<10;i++){
scanf("%d",&yama[i]);
}
for(i=0;i<10;i++){
for(j=0;j<10;j++){
if(yama[i]>yama[j])
temp=yama[i];
yama[i]=yama[j];
yama[j]=temp;
}
}
for(i=0;i<3;i++){
printf("%d\n",yama[i]);
}
return 0;
}

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

int main()
{
	int max = 0;
	int max2 = 0;
	int max3= 0;
	int a[10];

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

	for (int i = 0; i < 10; i++) {
		if (max3 < a[i] && a[i] < max2) max3 = a[i];
	}


		printf("%d\n", max);
		printf("%d\n", max2);
		printf("%d\n", max3);

		return (0);
	
}

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

using namespace std;

int main(){
	int m[10];
	
	for(int i=0; i<10; ++i)
		scanf(" %d", &m[i]);
	
	sort(m, m+10, greater<int>());
	
	for(int i=0; i<3; ++i)
		printf("%d\n", m[i]);
		
	return 0;
}

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

C++: #include <iostream>
using namespace std;
int main()
{
	int arr[10];
	int max1 , max2 , max3;
	int i;
	for ( i = 0 ; i < 10 ; i++)
		cin >> arr[i];
	max1 = arr[0];
	for ( i = 0 ; i < 10 ; i++)
	{
		if ( max1 < arr[i])
		{
			max3 = max2;
			max2 = max1;
			max1 = arr[i];
		}
		else if ( max2 < arr[i])
		{
			max3 = max2 ;
			max2 = arr[i];
		}
		else if ( max3 < arr[i])
		{
			max3 = arr[i];
		}
	}
	cout << max1 << endl << max2 << endl << max3 << endl ;
	return 0;
}

C++: #include<iostream>

using namespace std;

int main(){
    int a=-1,b=-1,c=-1,moun;
    for(int i=0;i<10;i++){
        cin>>moun;
        if(moun>a){
            c=b;
            b=a;
            a=moun;
        }else if(moun>b){
            c=b;
            b=moun;
        }else if(moun>c)
            c=moun;
    }
    cout<<a<<endl<<b<<endl<<c<<endl;
    return 0;
}

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

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

int main() {
	// your code goes here
	int data[10],ansdata[3];
	for (int j = 0;j<3;j++) {
		ansdata[j] = 0;
	}
	for (int i=0;i<=9;i++) {
		cin >> data[i];
		if (i==0) {
			ansdata[0] = data[i];
		}
		if (i>0) {
			if (data[i] > ansdata[2]) {
				if (data[i] > ansdata[1]) {
					ansdata [2] = ansdata [1];
					if (data[i] > ansdata[0]) {
						ansdata [1] = ansdata [0];
						ansdata [0] = data [i];	
					}
					else {
						ansdata[1] = data[i];
					}
					
				}
				else {
					ansdata[2] = data[i];
				}
			}

		}
	}
	cout << ansdata[0] << endl << ansdata[1] << endl << ansdata [2] ;
	return 0;
}

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

int main()
{
	int x[10];
	for (int i = 0; i < 10; i++)
	{
		cin >> x[i];
	}
	sort(begin(x),end(x));

	cout << x[9] << endl;
	cout << x[8] << endl;
	cout << x[7] << endl;

	return 0;
}

C++: #include<iostream>
using namespace std;
int main() {
	int i, j, max;
	int v[10];
	for (i = 0; i < 10; i++) {
		cin >> v[i];
	}
	for (i = 0; i < 3; i++) {
		max = v[i];
		for (j = i; j < 10; j++) {
			if (max < v[j]) {
				max = v[j];
				v[j] = v[i];
				v[i] = max;
			}
		}

	}

	cout << v[0] <<"\n";
	cout << v[1] << "\n";
	cout << v[2] << "\n";
}

C++: #include <cstdio>
int main(){
 int top3[3];
 int i,tmp;
 for(i=0;i<10;i++){
  scanf("%d",&data);
  if (top3[2]>data) {} 
  else {
   top3[2]=data;
   if (top3[1]>data) {} 
   else {
    top3[2]=top3[1];
    if (top3[0]>data) top3[1]=data;
    else {
     top3[1]=top3[0];
     top3[0]=data;
    };
   };
  };
 };
 for(i=0;i<3;i++)
    printf("%d\n",top[i]);
};

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

int main()
{
    int x[10];
    cout << sizeof(x) << endl;
    for (unsigned int i = 0; i < sizeof(x) / sizeof(int); i++)
        cin >> x[i];
    int first = 0;
    for (unsigned int i = 0; i < sizeof(x) / sizeof(int); i++)
        if (x[i] > first)
            first = x[i];
    int second = 0;
    for (unsigned int i = 0; i < sizeof(x) / sizeof(int); i++)
        if (x[i] > second && first > x[i])
            second = x[i];
    int third = 0;
    for (unsigned int i = 0; i < sizeof(x) / sizeof(int); i++)
        if (x[i] > third && second > x[i])
            third = x[i];
    cout << first << endl;
    cout << second << endl;
    cout << third << endl;
}