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>
using namespace std;
int main()
{
	int mhr[20],i,j,c;
	for(i=1; i<=10; i++)
	{
		cin >> mhr[i];
	}
	for(i=1; i<=10; i++)
	{
		for(j=i+1; j<=10; j++)
		{
			if(mhr[i]<mhr[j])
			{
				c=mhr[i];
				mhr[i]=mhr[j];
				mhr[j]=c;
			}

		}
	}
	for(i=1; i<=3; i++)
	{
		cout << mhr[i] << endl;
	}

    return 0;
}

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

int N = 10, A[11];


signed main()
{
    for(int i = 0; i < N; i++){
        cin >> A[i];
    }
    sort(A, A + N);
    for(int i = N - 1; i >= N - 3; i--){
        cout << A[i] << endl;
    }

    return 0;
}

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

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int in;
    vector<int> v;
    while(cin >> in)
    {
        v.push_back(in);
    }
    sort(v.begin(), v.end(), greater<int>());
    for(auto num : v)
        cout << num << endl;
}

C++: #include <iostream>
#include <queue>
 
int main(){
    std::priority_queue<u_int> heights;
     
    for (u_int h, i = 0; i < 10; ++i){
        std::cin >> h;
        heights.push(h);
    }
     
    for (u_int i = 0; i < 3; ++i){
        std::cout << heights.top() << std::endl;
        heights.pop();
    }
	
    return 0;
}

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

int h[9]

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

  sort(h, h+10, greater<int>());

  cout<<h[0]<<h[1]<<h[2];

  return 0;
}

C++: #include<stdio.h>

int main()
{
	int mth[] = { 1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922 };
	int topthree[] = { 0, 0, 0 };
	for (int i = 0; i <= 9; i++){
		if (topthree[0] <= mth[i]){
			topthree[2] = topthree[1];
			topthree[1] = topthree[0];
			topthree[0] = mth[i];
		}
		else if (topthree[1] <= mth[i]){
			topthree[2] = topthree[1];
			topthree[1] = mth[i];
		}
		else if (topthree[2] <= mth[i]){
			topthree[2] = mth[i];
		}
	}
	for (int i = 0; i <= 2; i++){
		printf("%d\n", topthree[i]);
	}
	return 0;
}

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

int main(){
    int tinggi[100];
    int i, j, temp;

    for(i=0; i<10; i++){
        cin>>tinggi[i];
    }
    for(j=0; j<10; j++){
            for(i=0; i<10; i++){
                if(tinggi[i] > tinggi[i-1]){
                    temp = tinggi[i];
                    tinggi[i] = tinggi[i-1];
                    tinggi[i-1] = temp;
                }
        }
    }
    for(i=0; i<3; i++){
        cout<<tinggi[i]<<endl;
    }

    return 0;
}

C++: #include<stdio.h>

int main(void){
	int high[10];
	int temp, i, j;

	for(i = 0;i < 10;i++)
		scanf("%d", &high[i]);

	for(i = 0;i < 3;i++){
		for(j = i+1;j < 10;j++){
			if(high[i] < high[j]){
				temp = high[i];
				high[i] = high[j];
				high[j] = temp;
			}
		}
	}

	for(i = 0;i < 3;i++)
		printf("%d\n", high[i]);

	return 0;
}

C++: #include <functional>
#include <iostream>
#include <vector>
#include <set>
#include <algorithm>
#include <queue>
#include <string>
#include <cstring>
#include <math.h>
using namespace std;


int main() {

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

   }
  
  sort(a, a + 10, greater<int>()); 
  
   cout << a[0] << endl;
  cout << a[1] << endl;
  cout << a[2] << endl;
   
  return 0;
}

C++: #include <iostream>
#include <algorithm>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;

int main() {
    int a[10];
    REP(i,10)
        cin >> a[i];
    sort(a,a+10);
    reverse(a,a+10);
    REP(i,3)
        cout << a[i] << '\n';
}

C++: #include <iostream>
#include <vector>
using namespace std;
int main(){
  //Bubble Sort
  int tmp;
  vector<int> sort(10);
  for(int i=0;i<10;i++)cin>>sort[i];
  for(int j=9;j>=1;j--){
    for(int i=9;i>=1;i--){
      if(sort[i]<sort[i-1]){
	tmp=sort[i];
	sort[i]=sort[i-1];
	sort[i-1]=tmp;
      }
    }
  }
    
  cout<<sort[9]<<endl;
  cout<<sort[8]<<endl;
  cout<<sort[7]<<endl;
}

C++: #include <stdio.h>
#include <math.h>
#include <iostream>


int main(void){
	int x[11],top[3];
	int i;

	for(i=0;i<3;i++){
		top[i] = 0;
	}
	for(i=0;i<10;i++){
		std::cin >> x[i];
		if(top[0] < x[i]){
			top[2] = top[1];
			top[1] = top[0];
			top[0] = x[i];
		}
	}

	std::cout << top[0] << "\n" << top[1] << "\n" <<top[2] << "\n";
	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(begin(a), end(a));
	for (int i = 9; i >= 7; --i)
		cout << a[i] << endl;
	return 0;
}

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

int main() {
  int a[10];
  for (int i = 0; i < 10; ++i) {
    scanf("%d", &a[i]);
  }
  sort(a, a + 10);
  printf("%d\n%d\n%d\n", a[9], a[8], a[7]);
}

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

int main() {
	int a;
	vector<int> v;
	while (cin >> a) {
		v.push_back(a);
	}
	sort(v.begin(), v.end(), greater<int>());
	
	cout << v[0] << "\n" << v[1] << "\n" << v[2] << "\n";
	return 0;
}

C++: #include<iostream>

int main(){
            int a[10],i,j,n;
          
 
for(i=0,i<10,i++){
                std::cin>>a[i];
                          }
for(i=0,i<10,i++){
                for(j=i+1,j<10,j++){
                            if(a[i]<a[j]){
                n=a[i];
                a[i]=a[j];
                a[j]=n;
            }
       }
}
for(i=0,i<3,i++){
            std::cout<<a[i]<<std::endl;
           }
return 0;
}

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

int main()
{
	std::vector<int> height(10);

	for(size_t i=0; i<height.size(); ++i)
	{
		std::cin >> height[i];
	}

	std::sort(height.begin(),height.end());

	for(size_t i=0; i<3; ++i)
	{
		std::cout << height[height.size()-1-i] << '\n';
	}
}

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

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(void){
  int data[10];
  int count=10;
  for (int i = 0; i < count; i++) {
    cin>>data[i];
  }
  sort(data,data+10);
  for (int i = 0; i < 3; i++) {
    cout<<data[9-i]<<endl;
  }
  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.begin(),h.end());
	
	for(int i=9;i>=7;i--)
		cout<<h[i]<<endl;
	
	
	}

C++: #include <stdio.h>

int main(void)
{
	int m[10],out[3]={0,0,0};

	for(int i=0;i<10;i++) //???????????????
		scanf("%d",&m[i]);

	for(int i=0;i<10;i++){
		if(out[0]<=m[i]){
			out[2]=out[1];
			out[1]=out[0];
			out[0]=m[i];
		}else if(out[1]<=m[i]){
			out[2]=out[1];
			out[1]=m[i];
		}else if(out[2]<=m[i]){
			out[2]=m[i];
		}
	}

	for(int i=0;i<3;i++)
		printf("%d\n",out[i]);

	return 0;
}

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

int main(){
    for(int i=0;i<10;i++) cin >> a[i];
    sort(a,a+n);
    cout << a[9] << endl << a[8] << endl << a[7] << endl;
    return 0;
}

C++: #include <stdio.h>
int main(void){
    int a=0,b=0,c=0,d=10,n,t;
    while(d--){
        scanf("%d",&n);
        if(n>a)t=n,n=a,a=t;
        if(n>b)t=n,n=b,b=t;
        if(n>c)c=n;
    }
    printf("%d\n%d\n%d\n",a,b,c);
    return 0;
}

C++: file:///home/ooki/AOJ/top3.c