Go: package main

import "fmt"

func main() {
	var height int
	topHeights := [5]int{}

	for i := 0; i < 10; i++ {
		fmt.Scan(&height)

		for j := 0; j < 3; j++ {
			if topHeights[j] < height {
				topHeights[j+2] = topHeights[j+1]
				topHeights[j+1] = topHeights[j]
				topHeights[j] = height
				break
			}
		}
	}

	for i := 0; i < 3; i++ {
		fmt.Println(topHeights[i])
	}
}

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

int main(){
	int a[10];
	int b[3]={0,0,0};
	for(int i=0;i<10;i++){
		cin>>a[i];}
	for(int i=0;i<10;i++){
			if(a[i]>b[0]){
				b[2]=b[1];
				b[1]=b[0];
				b[0]=a[i];}
			else if(a[i]>b[1]){
				b[2]=b[1];
				b[1]=a[i];}
			else if(a[i]>b[2]){
				b[2]=a[i];}}
	for(int i=0;i<3;i++){
		cout<<b[i]<<endl;}
}

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

int main()
{

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

	for (int i = 0; i < 10; i++) {
		for (int j = i + 1; j < 10; j++) {
			if (hill[i] < hill[j]) {
				int tmp = hill[i];
				hill[i] = hill[j];
				hill[j] = tmp;
				//cout << "ALICE!" << endl;
			}
		}
	}

	//cout << endl << endl;

	for (int i = 0; i < 3; i++) {
		cout << hill[i] << endl;
	}

	//cin >> hill[1];
    return 0;
}

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

int main() {
    int height[10];
    for (int i = 0; i < 10; ++i) cin >> height[i];
    sort(height, height + 10, greater<int>);

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

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

using namespace std;
 
int main(){
  int x[10],tmp,i,j;

  for(i=0; i<10; ++i)
    cin >> x[i];

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

  /*
  for(i=0; i<10; ++i){
    for(j=i+1; j<10; ++j){
      if(x[i] < x[j]){
	tmp = x[i];
	x[i] = x[j];
	x[j] = tmp;
      }
    }
  */
  }

  for(i=0; i<3; ++i)
    cout << x[i] << "\n";

    return 0;
}

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

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

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

vector<int> v;

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

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

int main(){
	int height = 0;
	int rank[3] = {0,0,0};
	
	while(cin >> height){	
		if (height > rank[0]) {
			rank[2] = rank[1];
			rank[1] = rank[0];
			rank[0] = height;
		}else if (height > rank[1]) {
			rank[2] = rank[1];
			rank[1] = height;
		}else if(height > rank[2]){
			rank[2] = height;
		}
	}
	
	cout << rank[0] << endl;
	cout << rank[1] << endl;
	cout << rank[2] << endl;

	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
	int takasa[10];

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

	//????????????
	for (int i = 0; i < 9; i++) {
		for (int j = i+1; j < 10; j++) {
			if (takasa[i] <takasa[j]) {
				swap (takasa[i],takasa[j]);
			}
		}
	}
	
	for (int i = 0; i < 3; i++) {
		cout << takasa[i] << endl;
	}
	return 0;
}

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

C++: #include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(n); i++)
/*???????±±?????????3?????????*/
int main()
{
    vector<int> vc;
    int N;
    while( cin >> N )
    {
        vc.push_back( N );
    }
    sort( vc.begin(), vc.end(), greater<int>() );
    REP( i, 3 )
    {
        cout << vc[ i ] << endl;
    }
    return 0;
}

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


int main()
{
    //freopen("in.txt","r",stdin);
    //freopen("out.txt","w",stdout);
    int h[10];
    int i,j;
    for(i=0;i<10;i++)
      scanf("%d",&h[i]);
    sort(h,h+10);
    printf("%d\n%d\n%d\n",h[9],h[8],h[7]);
    //fclose(stdin);
    //fclose(stdout);
    return 0;
}

C++: #include<iostream>
using namespace std;
int main(void)
{
  int a[10]={};
  int i=0;
  int j=0;

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

  sort(a,a+10);

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

}

C++: #include<iostream>
#include<algorithm>
main(){int a[10],i;for(i=0;i<10;i++)std::cin>>a[i];std::sort(a,a+10);std::cout<<a[0]<<a[1]<<a[2]<<"\n";}

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

int main(){
long long int a[10],i,j,swap;
for(i=0;i<10;i++){
    cin>>a[i];
}
for(i=0;i<10-1;i++){
    for(j=0;j<10-i-1;j++){
        if(a[j]<a[j+1]){
            swap=a[j];
            a[j]=a[j+1];
            a[j+1]=swap;
        }
    }
}

for(i=0;i<3;i++){
    cout<<a[i]<<endl;
}
}

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

return 0;
}

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

using namespace std;

#define SIZE 10

int main(){
	int array[SIZE];

	for(int i = 0; i < SIZE; i++) {
		cin >> array[i];
	}

	sort(array, array + SIZE, greater<int>());

	for(int i = 0; i < 3; i++) {
		cout << array[i] << endl;
	}
	return 0;
}

C++: #include <stdio.h>

int main() {
    
    int n = 0, m = 0, l = 0;
    
    int i, tmp;
    for (i = 1; i <= 10; i++) {
      
        scanf("%d", &tmp);
        if (n < tmp) { l = m; m = n; n = tmp;}
        else if (m < tmp) { l = m; m = tmp; }
        else if (l < tmp) { l = tmp; }
        
    }
    
    printf("%d\n%d\n%d\n", n, m, l);
    
    return 0;
}

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

int main(){
    int i;
    int input;
    std::vector<int> height;
    for (i = 0; i < 10; i++){
        scanf("%d", &input);
        height.push_back(input);
    }

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

    printf("%d\n", height[9]);
    printf("%d\n", height[8]);
    printf("%d\n", height[7]);

    return 0;
}

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

int main(void) {
    int height[10];
    
    for(int i = 0; i < 10; ++i) {
        cin >> height[i];
    }
    sort(height, height + 10);
    
    for(int i = 0; i < 3; ++i) {
        cout << height[9 - i] << endl;
    }
}

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 >= 0; i--) {
        cout << a[i] << endl;
    }

    return 0;
}