Go: package main

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

func main() {
        fp := os.Stdin
        scanner := bufio.NewScanner(fp)
        var lst [3]int

        for scanner.Scan() {
                num, _ := strconv.Atoi(scanner.Text())
                if lst[0] < num {
                        lst[2] = lst[1]
                        lst[1] = lst[0]
                        lst[0] = num
                } else if lst[1] < num {
                        lst[2] = lst[1]
                        lst[1] = num
                } else if lst[2] < num {
                        lst[2] = num
                }
        }

        for _, i := range lst {
                fmt.Printf("%d\n", i)
        }
}

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

using namespace std;

int main(){

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

	for(int i=0;i<10;i++){
		higher.push_back(high[i]);
	}

	sort(higher.begin(),higher.end());

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

C++: #include<iostream>
#include<sstream>
#include<cstdio>
#include<fstream>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<deque>
#include<map>
#include<set>
#include<algorithm>
#include<string>
#include<cstdlib>
#include<cmath>
using namespace std;

int main(){
	vector<int> args;
	for(int x=0;x<10;x++){
		int j;scanf("%d",&j);args.push_back(j);
	}
	sort(args.begin(),args.end());
	for(int x=0;x<3;x++){
		printf("%d\n",args[args.size()-1-x]);
	}
	return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <algorithm>
#include <functional>
#include <cstring>
#include <queue>
#include <math.h>
#include <iterator>
using namespace std;

int main() {
	short mountain[10] = {0};
	for (short i = 0;i < 10;++i) {
		scanf("%d", &mountain[i]);
	}
	sort(mountain, mountain + 10,greater<short>());
	for (short i = 0;i < 3;++i) {
		printf("%d\n", mountain[i]);
	}
}

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


int main()
{
	using namespace std;

	deque<int> nums;
        int tmp = 0;
	for (int i=0; i<10; ++i){
             cin >> tmp;
             nums.push_back(tmp);
        }

	// ソート実行
	sort( nums.begin(), nums.end(), greater<int>() );

	// 結果を出力
	deque<int>::iterator it = nums.begin();
        int n=0;
	while(( it != nums.end() ) && (n<3))
	{
		cout << *it << endl;
		++it;
                ++n;
	}

	return 0;
}

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

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

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

C++: #include<iostream>
using namespace std;
void sort(int[]);
int main()
{
	int list[10];
	for(int i=0;i<10;i++)
		cin>>list[i];
	sort(list);
	cout<<list[9]<<endl<<list[8]<<endl<<list[7]<<endl;
	return 0;
}
void sort(int list[10])
{
	for(int i=0;i<10;i++)
	{
		for(int j=0;j<9;j++)
			if(list[j+1]<list[j])
			{
				int temp=list[j];
				list[j]=list[j+1];
				list[j+1]=temp;
			}
	}
}

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

	for (int t = 0; t < p - 1; t++) {
		for (int s = t + 1; s < p; s++) {
			if (mountain[s] > mountain[t]) {
			//?????????
				int osu = mountain[t];
				mountain[t] = mountain[s];
				mountain[s] = osu;
			}
		}
	}
	for (int k = 0; k < 3; k++) { cout << mountain[k] << endl; }
}

C++: #include <iostream>
int main(){
	int a,b,c;
		for(a=1;a<10;++a){
			for(b=1;b<10;++b){
				c=a*b;
				std::cout<<a<<"x"<<b<<"="<<c<<std::endl;
				}
		}
	 return 0;
	}

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

int main(){
	int example=0;
	int top3[3]={0};

	for(int i=0; i<10 ; i++){
	cin>>example;
	for(int ia=0 ; ia<3 ; ia++){
		if(top3[ia]<=example){
			for(int ib=0 ; ib<(2-ia) ; ib++){
				top3[2-ib] = top3[1-ib];
			}
			top3[ia] = example;
			break;
		}
	}
	}
	
	for(int i=0 ; i<3 ; i++){
	cout << top3[i] << endl;
	}

	return 0;
}

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

using namespace std;

int main() {
int a[10];
for(int i=0; i<10; i++) cin >> a[i];
sort(a, a+10);
reverse(a, a+10);
cout << a[0] << endl;
cout << a[1] << endl;
cout << a[2] << endl;
return 0;
}

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

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

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

int main(){
	int b;
	int a[10];
	for (int i=0;i<10;i++){
		cin >> a[i];
		
	}
	for (int d = 0;d<12;d++){
	for (int j = 0;j<9;j++){
		if(a[j]<a[j+1]){
			b = a[j];
			a[j] = a[j+1];
			a[j+1] = b;
		}
	}
	}
	cout << a[0] << endl;
	cout << a[1] << endl;
	cout << a[2] << endl;
	return 0;




}

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

using namespace std;

int main(){
    int height[10];
    for(int i = 0; i < 10; i++){
        scanf("%d", &height[i]);
    }

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

    printf("%d\n%d\n%d\n", height[0], height[1], height[2]);
    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[i] = input;
    }

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

    printf("%d\n", height[0]);
    printf("%d\n", height[1]);
    printf("%d\n", height[2]);

    return 0;
}

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

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

    for (int i = 0; i < 3; i++) {
        cout << mountain.at(i) << endl;
    }
}

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

int main()

{
    int i,j,n,temp;
    int a[10];
    n=10;

    for(i=0;i<n;i++){
        scanf("%d",&a);
    }

    for(i=0;i<10;i++){
        for(j=i+1;j<10;j++){

               if(a[i] < a[j]) {
                temp=a[i];
                a[i]=a[j];
                temp=a[j];
               }

        }
    }

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

return 0;
}

C++: #define _USE_MATH_DEFINES
#include <algorithm>
#include <cstdio>
#include <functional>
#include <iostream>
#include <cstring>
#include <climits>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
using namespace std;
 
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> i_i;
typedef pair<ll, int> ll_i;
typedef pair<double, int> d_i;
typedef pair<ll, ll> ll_ll;
typedef pair<double, double> d_d;
struct edge { int u, v; ll w; };
 
int MOD = 1000000007;

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