Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	heights := make([]int, 10)
	for i := 0; i < 10; i++ {
		sc.Scan()
		heights[i], _ = strconv.Atoi(sc.Text())
	}

	sort.Sort(sort.Reverse(sort.IntSlice(heights)))
	for i := 0; i < 3; i++ {
		fmt.Println(heights[i])
	}
}

C++: #include<iostream>
using namespace std;
int main() {
	typedef unsigned short int mew;
	mew mountain[10];
	for (int i = 0; i < 10; i++) {
		cin >> mountain[i];
	}

	mew taller[3];
	mew a, b, c;

	a = mountain[0];
	b = mountain[1];
	c = mountain[2];

	for (int y = 3; y <= 9; y++) {
		if (a<=b){
			if (a<=c){
				if (a < mountain[y]) {
				???a = mountain[y];}
			}
			else{
				if (c < mountain[y]) {
					c = mountain[y];}
			}
		}
		else if (b<=c)
		{
			if (b < mountain[y]) {
				b = mountain[y];}
		}
	}

	//biggest->taller[0],bigger->taller[1],taller[2]
	{
		if (a >= b&&a >= c)
		{
			taller[0] = a;
			if (b >= c)
			{
				taller[1] = b;
				taller[2] = c;
			}
			else {
				taller[1] = c;
				taller[2] = b;
			}
		}
		if (b >= a&&b >= c)
		{
			taller[0] = b;
			if (a >= c)
			{
				taller[1] = a;
				taller[2] = c;
			}
			else {
				taller[1] = c;
				taller[2] = a;
			}
		}
		if (c >= b&&c >= a)
		{
			taller[0] = c;
			if (b >= a)
			{
				taller[1] = b;
				taller[2] = a;
			}
			else {
				taller[1] = a;
				taller[2] = b;
			}
		}
	} 

	cout << taller[0] << endl;
	cout << taller[1] << endl;
	cout << taller[2] << endl;

        char a____;
        cin>>a____;

	return 0;
}

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

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

int main(){
  int yama[10];
  for(int i=0;i<10;i++){
    cin>>yama[i];
  }
  sort(yama,yama +10,greater<int>());
  for(int j=0;j<3;j++){
    cout<<yama[j]<<endl;
  }
}

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


int main(void){

	int a[11],i,max1,max2,max3;

	for (int i=1; i<11; i++){
		while (true){ 
		cout << "山の高さ" << i << "（整数）" ;			
		cin >> a[i];
		if ((cin.good() == 1) && (a[i] >= 0) && (a[i] <= 10000)) {
			break;
		}
		}	
	}

	max1 = a[1];

	for (i=2; i<11; i++){
		if (max1 < a[i]){
			swap(max1,a[i]);
		}
	}
	max2 = a[2];

	for (i=3; i<11; i++){
		if (max2 < a[i]){
			swap(max2,a[i]);
		}
	}
	max3 = a[3];

	for (i=4; i<11; i++){
		if (max3 < a[i]){
			swap(max3,a[i]);
		}
	}


		cout << max1 << endl;
		cout << max2 << endl;
		cout << max3 << endl;
		

return 0;
	}

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

int main(){
	int yama[10];
	// int first = 0;
	// int second = 0;
	// int third = 0;

	for(int i=0; i<10; i++){
		cin >> yama[i];
	// 	if(yama[i] > first){
	// 		third = second;
	// 		second = first;
	// 		first = yama[i];
	// 	}
	// 	if(yama[i] > second && yama[i] < first)second = yama[i];
	// 	if(yama[i] > third && yama[i] < second)third = yama[i];
	}

	// cout << first << endl;
	// cout << second << endl;
	// cout << third << endl;
	
	int one,two;//??????????????¨
	for(int k=0; k<10; k++){
		for(int i=0; i<9; i++){
			if(yama[i] > yama[i+1]){
				one = yama[i];
				two = yama[i+1];
				yama[i] = two;
				yama[i+1] = one;

				// for(int j=0; j<10; j++){
				// cout << yama[j] << " ";
				// }
				// cout << endl;
			}
		}
	}

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

	return 0;
}

C++: //http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0001

#include <iostream>
#include <algorithm>
using namespace std;
int main() {
	int d[10] = { 0 };
	for (int i = 0; i < 10;i++) cin >> d[i];
	sort(d, d + 10);
	reverse(d, d + 10);
	cout << d[0] << endl << d[1] << endl << d[2] << endl;
}

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

int main(){

  int a[10],i=1;
  cin << i;
  while(cin >> a[i]){
    i++
  }
  sort(a,a+i);
  cout << a[i-1] << endl;
  cout << a[n-2] << endl;
  cout << a[i-3] << endl;

  return 0;
}

C++: #include<stdio.h>

int main(void)
{
	int high[10]={1819,2003,876,2840,1723,1673,3776,2848,1592,922};
	int x,max,time;


	for(time=1;time<=3;time++)
	{
		max=0;

		for(x=0;x<10;x++)
		{
			if(max<high[x])
			{
				max=high[x];
			}
		}
		for(x=0;x<10;x++)
		{
			if(max==high[x])
			{
				printf("%d\n",high[x]);
				high[x]=0;
			}
		}
	}

	return 0;
}

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

int main(){
	int mountain[10]={}, first=0, second=0, third=0;

	for(int i=0; i<10; i++){
		cin >> mountain[i];
		if(first <= mountain[i]){
			first = mountain[i];	
		}
		else if(mountain[i]<=first && mountain[i]>=second){
			second = mountain[i];
		}
		else if(mountain[i]<=second && mountain[i]>=third){
			third = mountain[i];
		}
	}
	cout << first << "\n" << second << "\n" << third << endl;

	return 0;
}

C++: num = []
i=0
while i < 10
      num[i] = gets.to_i
      i+=1
end

num.sort!{|a, b| (-1) * (a <=> b)}

puts "result"
for n in 0..2
    puts "#{num[n]}"
end

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

int main(){
	int height[10];
	// input
	for(int i = 0; i < 10; i++){
		cin >> height[i];
	} 
	// sort
	sort(height, height + 10, greater<int>());
	// output
	for(int i = 0; i < 3; i++){
		cout << height[i] << endl;
	}
	return 0;
}

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

using namespace std;

int main(){

	vector<int> mountains;
	
	for(int i= 0 ; i<10 ; i++){
		int a;
		cin>>a;
		mountains.push_back(a);
	}

	for(int i=0 ; i<mountains.size()-1 ; i++){
		for(int j=0 ; j<mountains.size()-1 ; j++){
			if(mountains[j] < mountaians[j+1]){
				int tmp;
				
				tmp = mountains[j];
				mountains[j] = mountains[j+1];
				mountains[j+1] = tmp;
			}
		}
	}

	for(int i ; i<3 ; i++){
		cout<<mountains[i]<<endl;
	}

return 0;
}

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

int main(){
	int a[10];

    for(int i=0;i<10;i++){
 		cin >> a[i];
    }
	sort(a,a+10);

	for(int i=9;i>6;i--){
		cout << a[i] << endl;
    }
    return 0;
}

C++: #include<cstdio>

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

}

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

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

C++: #include<iostream>
using namespace std;
int main()
{
int i,h,m1,m2,m3;
m1=0;
m2=0;
m3=0;
for(i=0;i<10;i++)
{
	cin>>h;
	if(h>m1)
	{
		m3=m2;
		m2=m1; 
		m1=h;
	}
	else if(h>m2)
	{
		m3=m2;
		m2=h;
	}
	else if(h>m3)
	{
		m3=h;
	}
}
cout<<m1<<endl;
cout<<m2<<endl;
cout<<m3<<endl;
return 0;
}

C++: #include <iostream>
 
using namespace std;
 
int main() {
 
        int height[10];
        
        for(int i=0;i<10;++i){
                cin >> height[i];
        }
 
        int temp;
        for(int i=0;i<10;++i){
                for(int j=0;j<i;++j){
                        if(height[i]>height[j]){
                                temp = height[j];
                                height[j] = height[i];
                                height[i] = temp;
                        }
                }
        }
 
        cout << height[0] << "\n";
        cout << height[1] << "\n";
        cout << height[2] << "\n";
        
        
        return 0;
}