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++: //
// Created by Undefined on 2018/2/2.
//

#include <iostream>

using namespace std;

int main() {
    int a, b, c, tmp;
    a = b = c = 0;
    for (int i = 0; i < 10; i++) {
        scanf("%d", &tmp);
        if (tmp > a) {
            c = b;
            b = a;
            a = tmp;
        } else if (tmp > b) {
            c = b;
            b = tmp;
        } else if (tmp > c) {
            c = tmp;
        }
    }
    printf("%d\n%d\n%d\n", a, b, c);
    return 0;
}

C++: #include <iostream>
#include <algorithm>
using namespace std;
int main(){
	int num = 0;
	int mountains[10];
	for (int i = 0; i < 10; i++){
		cin >> mountains[i];
	}
	sort(mountains,mountains+10);
	cout << mountains[9] << endl;
	cout << mountains[8] << endl;
	cout << mountains[7] << endl;
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int x, rank01,rank02,rank03 = 0;
    
    for(int i = 0; i < 10; i++){
        cin >> x;
        if(rank01 < x){
            rank03 = rank02;
            rank02 = rank01;
            rank01 = x;
        }
        else if(rank02 < x){
            rank03 = rank02;
            rank02 = x;
        }
        else if (rank03 < x){
            rank03 = x;
        }
       
       std::cout << rank01 << std::endl<< rank02 << std::endl << rank03 << std::endl; 
       
    }
}

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

int main(){
        int i;
        int high[10];
        for(i = 0; i < 10; i++){
                scanf("%d", &high[i]);
                getchar();
        }
        sort(high, high + 10);
        reverse(high, high + 10);
        for(i = 0; i < 3; i++){
                printf("%d", high[i]);
        }
        return 0;
}

C++: import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;


class Main{
	public static void main(String[] args)throws IOException{
		int[] height=new int[10];
		String[] st=new String[10];

		File file=new File("in1.txt");
		BufferedReader br=new BufferedReader(new BufferedReader(new FileReader(file)));

		for(int i=0; i<10; i++){
			st[i]=br.readLine();
			height[i]=Integer.parseInt(st[i]);

			if(height[i]<0){
				height[i]*=-1;
			}
		}

		int a=0;		//a uses bubble sort


		for(int j=0; j<9; j++){
			for(int k=9; k>j; k--){
				if(height[k]<height[k-1]){
					a=height[k];
					height[k]=height[k-1];
					height[k-1]=a;

				}
			}
		}

		try{
			PrintWriter pw=new PrintWriter
					(new BufferedWriter(new FileWriter("out1.txt")));

			for(int l=0; l<3; l++){
				pw.println(height[9-l]);
			}
			pw.close();
		}

		catch(IOException e){
			System.out.println("err");
		}
	}
}

C++: #include <iostream>
using namespace std;
int height[10];
void sort(int A[]);
void swap(int &a, int &b);
int main()
{
	int n = 10;
	for (int i = 0; i < 10; i++)
		cin >> height[i];
	sort(height);
	return 0;
}
void sort(int A[])
{
	int i, j, min;
	for (i = 0; i < 10; i++)
		min = i;
	for (j = i; j < 10; j++)
	{
		if(A[j] < A[min])
		{
			swap(A[j], A[min]);
			min = j;
		}
	}
	for (i = 0; i < 3; i++)
	{
		printf("%d\n", A[i]);
	}
}
void swap(int &a, int &b)
{
	int t = a;
	a = b;
	b = t;
}

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

int main() {
  
  char a[256];
  int mountain[9] = {};
  int lineCount = 0,n,t,j,temp;
  
  for(n=0;n<10;n++) {
    cin.getline(a,256);
    mountain[n] = stoi(a);
    //cout << mountain[n];
  }

  for(t=0; t<10; t++)
  {
    for(j=t; j< 9; j++)
    {
      if(mountain[t] < mountain[j+1] )
      {
        temp= mountain[t];
        mountain[t]= mountain[j+1];
        mountain[j+1]= temp;
      }
    }
  }
  
  for (int i=0; i<3; i++) {
    cout << mountain[i]<< endl;
  }
  
  return 0;
}

C++: #include<stdio.h>   

void func(float); 

int main(void) 
{
	float tai;
	
	while(scanf("%f",&tai)!=EOF)    { 
        	func(tai);
	}  
   	return 0;
}	 
	void func(float tai) 
	{     
	float lim[10]={48.0,51.0,54.0,57.0,60.0,64.0,69.0,75.0,81.0,91.0};   
  	char kai[11][13]={"light fly","fly","bantam","feather","light","light welter","welter","light","middle","light heavy","heavy"};    
 	int i;
       	
	for(i=0;i<10;i++)    {    
		if(lim[i]>=tai){  
			break;   
	      } 
	}     
	printf("%s\n",kai[i]);
}

C++: // 失敗するからこそ そこから立ち向かって行く強さがあってそんな強さが本当の強さだと私は思うから
#ifdef DAIJOBU
#include "/home/v-o_o-v/deb.h"
#define deb(x...) cerr << "[" << #x << "] = ["; _print(x)
#else
#include <bits/stdc++.h>
#define deb(x...)
#endif 

using namespace std;

int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);

	vector<int> a(10);
	for(int i = 0; i < 10; i++){
		int x;
		cin >> x;
		a.push_back(x);
	}
	sort(a.rbegin(), a.rend());
	for(int i = 0; i < 3; i++)cout << a[i] << '\n';
	return 0;
}
// Write Here

C++: #include <iostream>

int main() {
    int num[10] = {1819
,2003
,876
,2840
,1723
,1673
,3776
,2848
,1592
,922};
    int max1=2;
    int max2=1;
    int max3=0;
    for (int i=0; i<10; i++) {
        if (max3 < num[i]) {
            if (max2 < num[i]) {
                if (max1 < num[i]) {
                    max1 = num[i];
                }
                else {
                    max2 = num[i];
                }
            }
            else {
                max3 = num[i];
            }
        }
    }
    
    std::cout << max1 << std::endl;
    std::cout << max2 << std::endl;
    std::cout << max3 << std::endl;
    return 0;
}

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

int main(){
	vector <int> all;
	int x;
	for( int i=0 ; i<10 ; i++ ){
		cin >> x;
		all.push_back(x);
	}
	sort(all.begin() , all.end());
	int j = 0;
	for( int i=all.size()-1 ; i>=0 && j<3 ; i-- , j++ )
		cout << all[i] << endl;
	return 0;
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
    int a[10],i;
    cin>>a[0]>>a[1]>>a[2]>>a[3]>>a[4]>>a[5]>>a[6]>>a[7]>>a[8]>>a[9];
    for(i=0;i<10;i++){
        cin>>a[i];
    }
    sort(a,a+10);
    cout<<a[9]<<endl;
    cout<<a[8]<<endl;
    cout<<a[7]<<endl;
       return 0;
}

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


int main(){
	vector<int> v;
	for (int i=0;i<10;i++){
		int n;
		cin >> n;
		v.push_back(n);
	}
	sort(v.begin(),v.end(),greater<int>());
	for(int i=0;i<3;i++){
		cout<<v[i]<<endl;
	}
	return 0;
}

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

int main(void) {
    std::vector<int> mount(10, 0);
    for (int i = 0; i < 10; i++) {
        std::cin >> mount[i];
    }
    std::sort(mount.begin(), mount.end(), std::greater<int>());
    for (int i = 0; i < 3; i++) {
        std::cout << mount[i] << std::endl;
    }
    return 0;
}

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

int main() {
    vector<int> vec(10);
    for (int i=0;i<10;i++){
        cin>>vec.at(i);
    }
    sort(vec.begin(),vec.end());
    reverse(vec.begin(),vec.end());
    cout<<vec.at(0)<<endl;
    cout<<vec.at(1)<<endl;
    cout<<vec.at(2)<<endl;
}

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

int main(){
int a[10];
int b;
int c;
int d;
int e;
c=0;
d=0;
e=0;
b=0;
while(b<10){
cin >> a[b];
if(c<a[b]){e=d;
           d=c;
           c=a[b];}
else if(d<a[b]){e=d;
                d=a[b];}
else if(e<a[b]){e=a[b];}
b=b+1;
}          
cout << c <<endl;
cout << d <<endl;
cout << e <<endl;
    return 0;
}