Go: package main

import (
	"fmt"
	"sort"
)

func main() {
	mt := make([]int, 10)

	for i := 0; i < 10; i++ {
		fmt.Scan(&mt[i])
	}

	sort.Ints(mt)
	fmt.Printf("%d\n%d\n%d\n", mt[9], mt[8], mt[7])

}

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

int main() {
	int m[10], t[3]={0,0,0};
	for (int n = 0; n < 10; n++) {
		scanf("%d",&m[n]);
	}
	for (int n = 0; n < 10; n++) {
		if (t[0] < m[n]) {
			t[2] = t[1];
			t[1] = t[0];
			t[0] = m[n];
		}else if(t[1] < m[n]) {
			t[2] = t[1];
			t[1] = m[n];
		}
		else if(t[2] <m[n]) {
			t[2] = m[n];
		}
	}
	for (int n = 0; n < 3; n++) {
		printf("%d\n",t[n]);
	}
	return 0;
}

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

int main() {
  int top=0;
  int second=0;
  int third=0;
  int height;
  std::vector<int> heights;

  while(scanf("%d\n", &height) != EOF) {
    heights.push_back(height);
  }

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

  for(int i=0;i<3;i++) {
    std::cout << heights.back() << std::endl;
    heights.pop_back();
  }
}

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

int main()
{
	int x[10];
	int i,j,tmp;
	for(i=0;i<10;i++){
		cin >> x[i];
	}
	for(i=0;i<9;i++){
		for(j=9;j>i;j--){
			if(x[j]<x[j-1]){
				tmp = x[j];
				x[j] = x[j-1];
				x[j-1] = x[j];
			}
		}
	}
	cout <<x[0] <<endl;
	cout <<x[1] <<endl;
	cout <<x[2] <<endl;
    
    
	for(i=1;i<=9;i++){
		for(j=1;j<=9;j++){
			cout << i << "x" << j <<"=" <<i*j <<endl;
		}
	}
	
	
	return 0;
}

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

using namespace std;

int main() {

	int data[10];
	int kari;

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

	for (int j = 9; j > 0; j--) {
		for (int k = 0; k < j; k++) {
			if(data[k] > data[k+1]) {
				kari = data[k];
				data[k] = data[k+1];
				data[k+1] = kari;
			}
		}
	}

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

	return 0;
}

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

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

  return 0;
}

C++: #include <iostream>
#include <array>
#include <algorithm>
 
int main(void) {
    std::array<u_int, 10> heights;
	//??\???
    for (u_int i = 0; i < 10; ++i) {
        std::cin >> heights[i];
    }
	//?????????
    std::sort(heights.begin(), heights.end(), std::greater<u_int>());
	//??????
    for (u_int i = 0; i < 3; ++i) {
        std::cout << heights[i] << std::endl;
    }
    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(a,a+10);
for(int i=9;i>6;i--)cout << a[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);
cout<<a[9]<<endl;
cout<<a[8]<<endl;
cout<<a[7]<<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[i]){
    n = h[i];
    h[i] = -1;
   }
  cout << n << '\n';
 }

 return 0;
}

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

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

	for (int i = 0; i < 3; ++i)	cout << out[i] << endl;

	return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(void) {
	int h[20];
	for (int i = 0; i < 10; i++) {
		cin >> h[i];
	}
	sort(h, h + 10);
	for (int i = 9; i > 6; i--) {
		cout << h[i] << endl;
	}
	return 0;
}

C++:  #include<stdio.h>
int main()
{
  long long array[100],i,j,n,k,temp;

    while(scanf("%lld",&n)!=EOF)
    {
        for(i=0; i<n; i++){
            scanf("%lld",&array[i]);
        }
        for(i=0; i<n-1; i++)
        {
            for(j=i+1; j<n; j++)
            {
                if(array[i]>array[j])
                {
                    temp=array[i];
                    array[i]=array[j];
                    array[j]=temp;
                }
            }
        }

        for(k=9; k>6; k--)
        {
            printf("%lld\n",array[k]);
        }
    }
    return 0;
}

C++: #include <cstdio>

int main()
{
        unsigned int hill[10];

        for (int i = 0; i < 10; i++) {
                scanf("%u", &hill[i]);
        }
        for (int i = 0; i < 3; i++) {
                for (int j = 9; j > i; j--) {
                        if (hill[j - 1] < hill[j]) {
                                unsigned int tmp = hill[j - 1];
                                hill[j - 1] = hill[j];
                                hill[j] = tmp;
                        }
                }
        }
        for (int i = 0; i < 3; i++) {
                printf("%u\n", hill[i]);
        }

        return 0;
}

C++: #include<stdio.h>

int main(){
	int rank[4];
	int M;
	int A,B;	
	rank[0]=rank[1]=rank[2]=0;
	for(A=0;A<10;A++){
		scanf("%d",&M);
		for(B=0;B<3;B++)
			if(rank[B]<M){
				rank[B+1]=rank[B];
				rank[B]=M;
				break;
			}
	}
	printf("%d\n%d\n%d\n",rank[0],rank[1],rank[2]);
	return 0;
}

C++: 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include<iostream>
using namespace std;
int main()
{
   int d[10],i,j,tmp;
   for(i=0;i<10;i++)
        cin >> d[10]; 
   for(i=0;i<9;i++)
     {
        for(j=i+1;j<10;j++)
          { 
             if(d[i]<d[j])
                {
                   tmp=d[i];
                   d[i]=d[j];
                   d[j]=tmp;
                }
           }
     }
    for(i=0;i<3;i++)
       cout << d[i] <<endl;
    return 0;
}

C++: //
//  main.cpp
//  sanpie
//
//  Created by h3037178 on 2017/07/28.
//  Copyright ?? 2017??´ ?????£?????????. All rights reserved.
//

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

C++: //AOJ
//2018/07/08
//F_Naru

#include<iostream>
using namespace std;

int main(){
  int hst[3];
  hst[0]=0;
  hst[1]=0;
  hst[2]=0;
  int h;

  for(int i=0; i<10; i++){
    cin >> h;
    if(hst[0]<h){
      hst[2]=hst[1];
      hst[1]=hst[0];
      hst[0]=h;
    }else if(hst[1]<h){
      hst[2]=hst[1];
      hst[1]=h;
    }else if(hst[2]<h){
      hst[2]=h;
    }
  }
  
  cout << hst[0] << endl;
  cout << hst[1] << endl;
  cout << hst[2] << endl;

  return 0;
}

C++: #include <iostream>
#include <queue>
using namespace std;
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;
}

C++: //
//  main.cpp
//  kyougi
//
//  Created by 寺林 一旭 on 2018/08/27.
//  Copyright © 2018年 寺林 一旭. All rights reserved.
//

#include <iostream>
int main(int argc, const char * argv[]) {
 
    int n = 0;
    while(std::cin >> n)
    {
    std::string str;
    getline(std::cin, str);
   // std::cin.ignore();
        std::cout << str << std::endl;
    }
    
    
    
    return 0;
}

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

int main()
{
	int ta;
	int top,se,sa;
	int dumy;

	for(int i=0;i<10;i++)
	{
		cin>>ta;
		if(ta>sa)
		{
			sa=ta;
		}
		if(sa>se)
		{
			dumy=se;
			se=sa;
			sa=dumy;
		}
		if(se>top)
		{
			dumy=top;
			top=se;
			se=dumy;
		}
		if(sa>se)
		{
			dumy=se;
			se=sa;
			sa=dumy;
		}
	}
	cout<<top<<endl;
	cout<<se<<endl;
	cout<<sa<<endl;

	return 0;
}