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() {
	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;
}

C++: #include<stdio.h>
??
void swap(int *x,int *y){
????????????????int temp;
??
????????????????temp=*x;
????????????????*x=*y;
????????????????*y=temp;
??
}
??
int main(void){
????????????????int i,j,k;
????????????????int height[10];
??
????????????????i=0;
??
????????????????while(scanf("%d",&height[i])==1){
????????????????????????????????i++;
????????????????????????????????if(i==10) break;
????????????????}
??
??
????????????????for(j=0;j<10;j++){
????????????????????????????????if(height[j]<0 || height[j]>10000){
????????????????????????????????????????????????height[j]=0;
????????????????????????????????}
????????????????}
??
??
??
????????????????for(i=0;i<10;i++){
????????????????????????????????for(j=0;j<10;j++){
????????????????????????????????????????????????if(height[i]<height[j]){
????????????????????????????????????????????????swap(&height[i],&height[j]);
????????????????????????????????????????????????}
????????????????????????????????}
????????????????}???????????? /*sort*/
??
????????????????printf("\n");
??
????????????????k=9;
??
??
????????????????while(1){
????????????????????????????????printf("%d\n",height[k]);
????????????????????????????????k--;
????????????????????????????????if(k==6) break;
????????????????}
??
??
??
??
????????????????return 0;
}

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

void swap(int& a, int& b) {
	int x = a;
	a = b;
	b = x;
}

int main(){
	int first = 0;
	int second = 0;
	int third = 0;

	for(int i = 0; i < 10; ++i) {
		int x;
		cin >> x;
		if(third <= x)		third = x;
		if(second <= third)	swap(second, third);
		if(first <= second)	swap(first, second);
	}
	printf("%d\n%d\n%d\n", first, second, third);

	return 0;
}

C++: #include<iostream>
#include<vector>
std::vector<int> qsort(std::vector<int> xs);

int main(){
	std::vector<int> vec(10);
	for(int i=0;i<10;i++){
		std::cin>>vec[i];
	}
	qsort(vec);
	std::cout<<vec[9]<<vec[8]<<vec[7]<<std::endl;
	return 0;
}

std::vector<int> qsort(std::vector<int> xs){
	if(xs.empty()){
		return xs;
	}else{
		int x=xs[0];
		std::vector<int> left;
		std::vector<int> right;
		for(int i=1;i<xs.size();i++){
			if(xs[i]>x){
				left.push_back(xs[i]);
			}
			if(xs[i]<=x){
				right.push_back(xs[i]);
			}
		}
		left=qsort(left);
		right=qsort(right);
		left.push_back(x);
		left.insert(left.end(),right.begin(),right.end());
		return left;
	}
}

C++: #include<iostream>
using namespace std;
 
int main(void){
 
  int h[10];
　int a = 0;
 
  cin >> h;
 
  for(int j=0; j<3; j++){
    for(int i=0; i<10; i++){
        if(a<h[i]) a = i;
    }
    cout << h[a] << endl; 
    h[a] = 0;
  }  
 
  return 0;
}

C++: #include<iostream>
#include<algorithm>
int main() {
	int n[10];
	for (int i = 0; i < 10; i++) {
		int y;
		std::cin >> y;
		n[i] = y;
	}
	std::sort(n, n + 10);
	for (int i = 1; i < 4; i++) {
		std::cout << n[10 - i] << std::endl;
	}
}

C++: #include <stdio.h>
 
int
main(void)
{
    char line[80];
    int h[3] = { 0 };
    int m;
 
 	for (int i = 0 ; i < 10; i++) {
	    if (gets(line)) {
	        if (sscanf(line, "%d", &m) == 1) {
				if (m >= h[0]) {
					if (m > h[0]) {
						h[2] = h[1];
						h[1] = h[0];
						h[0] = m;
					}
				} else if (m >= h[1]) {
					if (m > h[1]) {
						h[2] = h[1];
						h[1] = m;
					}
					h[1] = m;
				} else if (m >= h[2]) {
					h[2] = m;
				}
			}
	    }
 	}
 	
 	for (int i = 0 ; i < 3; i++) {
 		printf("%d\n", h[i]);
 	}
 	
    return 0;
}