Go: // 九九を出すだけ
package main
import (
	"fmt"
	"os"
	"bufio"
	"strconv"
	"sort"
)

var sc = bufio.NewScanner(os.Stdin)
var out = bufio.NewWriter(os.Stdout)

func main(){
	sc.Split(bufio.ScanWords)
	defer out.Flush()
	mountains := make([]int, 10)
	for i:=0; i<10; i++{
		mountains[i]=nextInt()
	}
	sort.Sort(sort.Reverse(sort.IntSlice(mountains)))
	for _, v := range mountains[:3]{
		fmt.Fprintln(out, v)
	}
}

func next() string{
	sc.Scan()
	return sc.Text()
}

func nextInt() int{
	a, _ := strconv.Atoi(next())
	return a
}

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

using namespace std;

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

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

int main()
{
 int h[10];
 for(int i=0; i<10; i++) cin >> h[i];

 for(int i=0; i<3; i++){
  int n = h[0];
  for(int j=1; j<10; j++)
   if(n < h[j]){
    n = h[j];
    h[j] = -1;
   }
  cout << n << '\n';
 }

 return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
    int data[11];
    int temp;
    cout << "Input 10 Data(value = 1-10000): " << endl;
    for(int a = 0;a<10;a++)
    {
        cin >> data[a];
        if(data[a]<0||data[a]>10000)return 0;
    }

    for(int x=0;x<10;x++)
    {
        for(int y=0;y<10;y++)
        {
            if(data[y]<data[y+1])
            {
                temp = data[y];
                data[y] = data[y+1];
                data[y+1] = temp;
            }
        }
    }
    cout << data[0] << data[1] << data[2];
}

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

void updateRank(int *a,int in){
    int tmp;
    for(int ii=0;ii<3;ii++){
        if(a[ii] < in){            
            tmp = a[ii];
            a[ii] = in;
            
            for(int jj=ii+1;jj<3;jj++){
                int tmp2;
                tmp2 = a[jj];
                a[jj] = tmp;
                tmp = tmp2;
            }
            break;
        }
    }
}
int main(){
    
    int out[3];
    for(int ii=0;ii<10;ii++){
        int in;
        cin >> in;
        updateRank(out,in);
    }
    
    for(int ii=0;ii<3;ii++){
        cout << out[ii] << endl;
    }
    return 0;
}

C++: #include<stdio.h>
int main(void){
	int d, m1 = 0, m2 = 0, m3 = 0, i;{
	scanf("%d", &d);
		for(i=1;i<10;i++){
			scanf("%d", &d);
			if(d > m1){
			m3 = m2;
			m2 = m1;
			m1 = d;
				}else if(d > m2){
				m3 = m2;
				m2 = d;
					} else if(d > m3){
					m3 = d;
					}
		}
	printf("%d\f""%d\f""%d\f", m1, m2, m3);
	return 0;
	}
}

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

int main() {
	vector<int>a(10);
	for (int b = 0; b < 10; b++)cin >> a[b];
	sort(a.begin(), a.end());
	printf("%d\n%d\n%d\n", a[9], a[8], a[7]);
}

C++: 
#include <iostream>
#include <stdlib.h>
using namespace std;
int com(const void *a, const void *b)
{
	return *(int*)b-*(int*)a;
}

int main()
{
	int H[11]={0},*p=H;
	while(cin>>*p++)
	qsort(H,11,sizeof(int),com);
	cout<<H[0]<<endl;
	cout<<H[1]<<endl;
	cout<<H[2]<<endl;
	return 0;
}

C++: #include <stdio.h>

int main(void)
{

	int a[3] = {0,0,0};
	int b,c;

	for(int i = 0; i < 10; i++){
		scanf("%d", &b);
		for(int j = 2; j >= 0; j--){
			if(a[j] < b){
				c = a[j];
				a[j] = b;
				b = c;
			}
		}
	}
	for(int i = 2; i >= 0; i--)
		printf("%d\n", a[i]);


return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
   int mountain [10] = {100,400,550,800,150,700,1800,6000,7800,890};
   cout << mountain [8] << endl;
   cout << mountain [7] << endl;
   cout << mountain [6] << endl;


    return 0;
}

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

main()
{
    int n=0;
    int num[100];
    int t;
    while(scanf("%d",&t)!=EOF)
    {
        num[n++]=t;
    }
    sort(num,num+n);
    printf("%d\n%d\n%d\n",num[n-1],num[n-2],num[n-3]);
}

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

int cmp(const void* a, const void* b);

int main() {
	int mt[10];
	for(int i=0; i<10; ++i) {
		cin >> mt[i];
	}

	qsort(mt, 10, sizeof(int), cmp);
	
	cout << mt[0] << endl
		 << mt[1] << endl
		 << mt[2] << endl;
		 
}

int cmp(const void* a, const void* b) {
	return ( *(int*)b - *(int*)a );
}

C++: import scala.io.Source

object Main extends App {
  val src = Source.io.stdin.getLines.map(_.toInt).toList
  val top3: List[Int] = src.sortWith(_<_).take(3)
  top3.map(println)
}

C++: #include<stdio.h>

int main()
{
    int h1, h2, h3;
    h1 = 0; h2 = 0; h3 = 0;
    int height;
    while (scanf("%d", &height) != EOF) {
        if (height > h1) {
            h3 = h2;
            h2 = h1;
            h1 = height;
        } else if (h1 >= height && height > h2) {
            h3 = h2;
            h2 = height;
        } else if (h2 >= height && height > h3) {
            h3 = height;
        }
    }
    printf("%d\n%d\n%d\n", h1, h2, h3);
    return 0;
}

C++: #include<bits/stdc++.h>
#define sf1(x)      scanf("%d",&x)
#define pf3(x,y,z)  printf("%d\n%d\n%d\n",x,y,z)
#define FOR(i,x)    for(int i=0;i<x;i++)
using namespace std;
int main()
{
    int a[15];
    FOR(i,10)   sf1(a[i]);
    sort(a,a+10);
    pf3(a[9],a[8],a[7]);

    return 0;
}

C++: #include <bits/stdc++.h>

using namespace std;
int a[12];
int main(){
	for(int i=1; i<=10;i++){
		cin>>a[i];
	}
	sort(a+1, a+11);
	cout<<a[10]<<endl;
	cout<<a[9]<<endl;
	cout<<a[8]<<endl;
}

C++: #include <iostream>
#include <stdio.h>
#include <vector>
#include <algorithm>

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

using namespace std;

int main(void){
    
    int high[100] = {0};
    int temp;
    REP(i, 10)
    cin >> high[i];
    REP(i,9)
    REP(j,9)
    {
        if(high[j] <high[j+1])
        {
            temp = high[j+1];
            high[j+1] = high[j];
            high[j] = temp;
        }
    }
    REP(i,3)
    printf("%d\n",high[i]);
    return 0;


}

C++: #include <iostream>
#include <queue>

int main() {
  priority_queue<int> q;
  int c;
  for (int i = 0; i < 10; ++i) {
    cin >> c;
    q.push(c);
  }
  for (int i = 0; i < 3; ++i) {
    cout << q.top() << endl;
    q.pop();
  }
  return 0;
}