s_id
stringlengths
10
10
p_id
stringlengths
6
6
u_id
stringlengths
10
10
date
stringlengths
10
10
language
stringclasses
1 value
original_language
stringclasses
11 values
filename_ext
stringclasses
1 value
status
stringclasses
1 value
cpu_time
int64
0
100
memory
stringlengths
4
6
code_size
int64
15
14.7k
code
stringlengths
15
14.7k
problem_id
stringlengths
6
6
problem_description
stringlengths
358
9.83k
input
stringlengths
2
4.87k
output
stringclasses
807 values
__index_level_0__
int64
1.1k
1.22M
s855500594
p00001
u862272701
1589698278
Python
Python3
py
Accepted
20
5596
145
i = 1 x = [] while i <= 10: n = int(input()) x.append(n) i += 1 a = sorted(x, reverse=True) print(a[0]) print(a[1]) print(a[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,802
s067018766
p00001
u289521002
1589641718
Python
Python3
py
Accepted
20
5596
112
num = [] for i in range(10): num.append(int(input())) num.sort() print(num[9]) print(num[8]) print(num[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,803
s311101985
p00001
u322428339
1589615147
Python
Python3
py
Accepted
20
5604
132
import sys x = [] for i in range(10): x.append(int(input())) x.sort(reverse=True) #print(x) print(x[0]) print(x[1]) print(x[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,804
s862949001
p00001
u814278309
1589460622
Python
Python3
py
Accepted
20
5604
93
x = [int(input()) for i in range(10)] x.sort(reverse=True) for i in range(3): print(x[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,805
s286253355
p00001
u519248451
1589372336
Python
Python3
py
Accepted
20
5604
101
#0001 l = [int(input()) for i in range(10)] l.sort(reverse=True) print(l[0]) print(l[1]) print(l[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,806
s293884337
p00001
u583329397
1589180186
Python
Python3
py
Accepted
20
5588
246
max1=0; max2=0; max3=0 for i in range(10): x=int(input()) if max1<x: max3=max2 max2=max1 max1=x elif max2<x: max3=max2 max2=x elif max3<x: max3=x print(max1) print(max2) print(max3)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,807
s238505016
p00001
u884758681
1589169241
Python
Python3
py
Accepted
20
5596
132
x=[] for i in range(10): n=int(input()) x.append(n) x1=sorted(x,reverse=True) print(x1[0]) print(x1[1]) print(x1[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,808
s678485130
p00001
u128671689
1589120065
Python
Python3
py
Accepted
20
5600
124
x1=[] for i in range(10): h=int(input()) x1.append(h) x=sorted(x1,reverse=True) print(x[0]) print(x[1]) print(x[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,809
s436447587
p00001
u350963229
1589100248
Python
Python3
py
Accepted
20
5592
247
a1=int(input()) a2=int(input()) a3=int(input()) a4=int(input()) a5=int(input()) a6=int(input()) a7=int(input()) a8=int(input()) a9=int(input()) a10=int(input()) s=[] s=[a1,a2,a3,a4,a5,a6,a7,a8,a9,a10] s.sort() print(s[9]) print(s[8]) print(s[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,810
s118239452
p00001
u011621222
1589098483
Python
Python3
py
Accepted
20
5596
403
mountain_heights = [] for i in range(10): mountain_heights.append(int(input())) for i in range(3): maximum = 0 index = i for j in range(i, 10): if mountain_heights[j] > maximum: maximum = mountain_heights[j] index = j temp = mountain_heights[i] mountain_heights[i] = mountain_heights[index] mountain_heights[index] = temp print(maximum)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,811
s427884263
p00001
u647921435
1589090849
Python
Python3
py
Accepted
20
5596
115
x=[] for i in range(10): s=int(input()) x.append(int(s)) y=sorted(x) print(y[9]) print(y[8]) print(y[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,812
s177323336
p00001
u240091169
1588744886
Python
Python3
py
Accepted
20
5600
132
LIST = [] for i in range(10) : LIST.append(int(input())) LIST.sort(reverse = True) print(LIST[0]) print(LIST[1]) print(LIST[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,813
s289480968
p00001
u260980560
1588727467
Python
Python3
py
Accepted
20
5604
81
S = [int(input()) for i in range(10)] S.sort(reverse=1) print(*S[:3], sep='\n')
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,814
s203541288
p00001
u014861569
1588528854
Python
Python3
py
Accepted
20
5596
129
y=[] for i in range(1,11): x=int(input()) y.append(x) for i in range(1,4): ma=max(y) print(ma) y.remove(ma)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,815
s039287553
p00001
u095087680
1588485894
Python
Python3
py
Accepted
30
5996
192
from collections import deque Meter = [] for i in range(10): Meter.append(int(input())) Meter_new = deque(sorted(Meter, reverse=True)) for i in range(3): print(Meter_new.popleft())
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,816
s484533805
p00001
u560578228
1588461532
Python
Python3
py
Accepted
20
5656
196
def main(): import heapq h = [0]*10 for i in range(10): h[i] = int(input()) * (-1) heapq.heapify(h) for _ in range(3): print(heapq.heappop(h) * (-1)) main()
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,817
s899084299
p00001
u842461513
1588295195
Python
Python3
py
Accepted
20
5600
167
int_list = [] for num in range(10): int_line = int(input()) int_list.append(int_line) int_list.sort() print(int_list[9]) print(int_list[8]) print(int_list[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,818
s583714800
p00001
u235330043
1588083550
Python
Python3
py
Accepted
20
5600
129
line = [] for i in range(10): line.append(int(input())) line.sort(reverse=True) top3 = line[:3] for j in top3: print(j)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,819
s753491574
p00001
u037441960
1588081415
Python
Python3
py
Accepted
20
5596
130
M = [] for i in range(10) : M.append(int(input())) Ms = sorted(M, reverse = True) for j in range(3) : print(Ms[j])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,820
s495783257
p00001
u352646821
1587870991
Python
Python3
py
Accepted
20
5600
173
mountain_high = [] for i in range(10): a = int(input()) mountain_high.append(a) mountain_high.sort(reverse = True) for i in range(3): print(mountain_high[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,821
s867022232
p00001
u353890989
1587021829
Python
Python3
py
Accepted
20
5596
119
l = [] for i in range(10): l.append(int(input())) l = sorted(l, reverse=True) for i in range(3): print(l[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,822
s916253738
p00001
u744927780
1586618387
Python
Python3
py
Accepted
20
5600
109
l=[] for i in range(10): l.append(int(input())) l.sort() l.reverse() print(l[0]) print(l[1]) print(l[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,823
s199934327
p00001
u543574811
1586607410
Python
Python3
py
Accepted
20
5600
114
list = [int(input()) for _ in range(10)] list.sort(reverse = True) print(list[0]) print(list[1]) print(list[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,824
s669952546
p00001
u713674793
1586517030
Python
Python3
py
Accepted
20
5604
122
ans = [] for i in range(10): a = int(input()) ans.append(a) ans = sorted(ans, reverse=True) print(*ans[:3],sep='\n')
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,825
s569829133
p00001
u230927103
1586076237
Python
Python3
py
Accepted
20
5600
110
l = [] for i in range(10): l.append(int(input())) l.sort(reverse=True) for i in range(3): print(l[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,826
s443289408
p00001
u722719595
1585153895
Python
Python
py
Accepted
10
4640
137
array = [0 for i in range(10)] for i in range(10): array[i] = int(input()) array.sort() for i in range(9,6,-1): print(array[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,827
s902954302
p00001
u490578380
1584682800
Python
Python3
py
Accepted
20
5600
157
mountainList = [] for i in range(10): mountainList.append(int(input())) mountainList.sort(reverse=True) for i in range(3): print(mountainList[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,828
s361332788
p00001
u123017074
1584516356
Python
Python3
py
Accepted
20
5600
124
height = [int(input()) for _ in range(10)] height = list(reversed(sorted(height))) for i in range(3): print(height[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,829
s601922586
p00001
u104239930
1584461399
Python
Python3
py
Accepted
20
5600
116
hs = [0] * 10 for i in range(10): hs[i] = int(input()) hs = sorted(hs) for i in range(1, 4): print(hs[-i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,830
s838170916
p00001
u630911389
1583943878
Python
Python3
py
Accepted
20
5600
139
heights = [] for i in range(0,10): heights.append(int(input())) heights.sort(reverse=True) for i in range(0,3): print(heights[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,831
s078894253
p00001
u808372529
1583573720
Python
Python3
py
Accepted
20
5604
115
a = [list(map(int,input().split()))for i in range(10)] a = sorted(a)[::-1] for i in a[:3]: print(*i, sep='\n')
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,832
s185597489
p00001
u998478961
1583476977
Python
Python3
py
Accepted
20
5600
277
a = int(input()) b = int(input()) c = int(input()) d = int(input()) e = int(input()) f = int(input()) g = int(input()) h = int(input()) i = int(input()) j = int(input()) hights = [a,b,c,d,e,f,g,h,i,j] hights.sort(reverse = True) print(hights[0],hights[1],hights[2],sep="\n")
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,833
s778804666
p00001
u642972715
1582100345
Python
Python3
py
Accepted
20
5596
261
i = 0 input_null = 0 input_list = [] n = 10 #input個数 while i < n: input_list.append(int(input())) #print(input_list[i]) i += 1 sort_input_list = sorted(input_list,reverse=True) j = 0 while j < 3: print(sort_input_list[j]) j += 1
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,834
s931441279
p00001
u701163915
1581428641
Python
Python3
py
Accepted
20
5600
85
h=[int(input()) for i in range(10)] h.sort() print(h[-1]) print(h[-2]) print(h[-3])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,835
s842266961
p00001
u616752689
1581051343
Python
Python3
py
Accepted
20
5600
188
# coding: utf-8 # Your code here! lul = [] for i in range(10): line = input() n = int(line) lul.append(n) lul.sort() print(str(lul[9])) print(str(lul[8])) print(str(lul[7]))
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,836
s968645565
p00001
u590304514
1580094748
Python
Python3
py
Accepted
20
5596
111
L=list() for i in range(10): L.append(int(input())) L.sort(reverse=True) print(L[0]) print(L[1]) print(L[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,837
s340411655
p00001
u737849944
1579260514
Python
Python3
py
Accepted
30
5588
182
a = 0 b = 0 c = 0 for i in range(10): x=int(input()) if x>=a: c = b b = a a = x elif x>=b: c = b b = x elif x >=c: c = x print(a) print(b) print(c)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,838
s491796164
p00001
u668489394
1579071651
Python
Python3
py
Accepted
20
5596
119
arr = [] for _ in range(10): arr.append(int(input().strip())) for x in sorted(arr, reverse=True)[:3]: print(x)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,839
s131697481
p00001
u617401892
1576246290
Python
Python3
py
Accepted
20
5596
144
height_list = [] for _ in range(0, 10): height_list.append(int(input())) for height in sorted(height_list)[::-1][:3]: print(height)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,840
s568599106
p00001
u153447291
1574769103
Python
Python3
py
Accepted
20
5596
124
a = [] for _ in range(10): b = int(input()) a.append(b) a.sort(reverse = True) print(a[0]) print(a[1]) print(a[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,841
s798890692
p00001
u004929098
1573542111
Python
Python
py
Accepted
10
4636
105
M = [] for i in range(10): M+=[int(input())] M.sort() for i in range(3): print M[-1-i]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,842
s631529793
p00001
u405880526
1573541791
Python
Python3
py
Accepted
20
5600
165
M=[] for i in range(1,11): #j="number"+str(i)+" " i=input() M.append(int(i)) M.sort(reverse=True) #print(M[:3]) print(M[0]) print(M[1]) print(M[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,843
s907945175
p00001
u072053884
1573472737
Python
Python3
py
Accepted
20
5608
175
def solve(): from sys import stdin f_i = stdin M = list(int(f_i.readline()) for m in range(10)) M.sort(reverse=True) print(*M[:3], sep='\n') solve()
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,844
s814572495
p00001
u297517978
1573378841
Python
Python3
py
Accepted
20
5604
88
m=list(int(input()) for i in range(10)) m.sort() h=[print(m[i]) for i in range(9,6,-1)]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,845
s417610063
p00001
u933957884
1572604935
Python
Python3
py
Accepted
20
5604
75
print("\n".join(map(str,sorted(int(input()) for x in range(10))[:-4:-1])))
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,846
s228309056
p00001
u055940027
1571827743
Python
Python3
py
Accepted
20
5596
88
l=list(int(input()) for i in range(10)) l.sort() print(l[-1]) print(l[-2]) print(l[-3])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,847
s168539161
p00001
u635209856
1571404378
Python
Python3
py
Accepted
20
5604
144
mountains=[int(input()) for i in range(10)] mountains=sorted(mountains) rmountains=mountains[::-1] for i in range(3): print(rmountains[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,848
s766187438
p00001
u030718354
1571084339
Python
Python3
py
Accepted
20
5596
140
T=10 li = [] while T>0: H = int(input()) li.append(H) T -= 1 li.sort() H = len(li) print(li[H-1]) print(li[H-2]) print(li[H-3])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,849
s276537850
p00001
u803862921
1570536665
Python
Python3
py
Accepted
20
5596
112
L = [] for i in range(10): L.append(int(input())) L.sort(reverse=True) for i in range(3): print(L[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,850
s127458223
p00001
u595265835
1570363673
Python
Python3
py
Accepted
20
5600
117
l = [] for i in range(0, 10): l.append(int(input())) l.sort(reverse = True) l = l[:3]; for j in l: print(j);
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,851
s442531465
p00001
u852592538
1569674976
Python
Python3
py
Accepted
20
5600
146
mountain = [] for i in range(10): mountain.append(int(input())) mountain.sort() mountain.reverse() for i in range(3): print(mountain[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,852
s832462490
p00001
u447421429
1569571784
Python
Python3
py
Accepted
20
5600
93
m=[int(input()) for _ in range(10)] m.sort(reverse=True) print(m[0]) print(m[1]) print(m[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,853
s812677961
p00001
u381304373
1568267916
Python
Python3
py
Accepted
20
5592
152
mountains = list() for i in range(10): mountains.append(int(input())) for j in range(3): print(mountains.pop(mountains.index(max(mountains))))
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,854
s532067817
p00001
u215365777
1568022006
Python
Python3
py
Accepted
20
5600
121
lst = [0] * 10 for i in range(10): lst[i] = int(input()) lst.sort(reverse=True) for i in range(3): print(lst[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,855
s545818959
p00001
u629170852
1567956479
Python
Python3
py
Accepted
20
5600
132
k=[] try: while True: k.append(int(input())) except EOFError: pass k.sort() print(k[-1]) print(k[-2]) print(k[-3])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,856
s450501281
p00001
u881327778
1567407876
Python
Python3
py
Accepted
20
5596
112
s = [] for i in range(10): s.append(int(input())) s.sort(reverse=True) for i in range(3): print(s[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,857
s714410866
p00001
u511231264
1566969803
Python
Python3
py
Accepted
30
5600
97
h = [int(input()) for i in range(10)] h.sort(reverse = True) for i in range(3): print(h[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,858
s646250742
p00001
u813197825
1566220056
Python
Python3
py
Accepted
20
5600
83
a = sorted([int(input()) for _ in range(10)]) print(a[9]) print(a[8]) print(a[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,859
s983151969
p00001
u824708460
1566036665
Python
Python3
py
Accepted
20
5600
109
height = [int(input()) for i in range(10)] height.sort(reverse=1) for i in range(3): print(height[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,860
s121460781
p00001
u081389879
1565748832
Python
Python3
py
Accepted
20
5600
112
lst = [] for i in range(10): lst.append(int(input())) lst.sort() print(lst[9]) print(lst[8]) print(lst[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,861
s919962361
p00001
u445425884
1564923217
Python
Python3
py
Accepted
20
5600
163
import sys a = [] s = sys.stdin.readline() while s : a.append(int(s)) s = sys.stdin.readline() a.sort() a.reverse() for i in range(3) : print(a[i]);
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,862
s118782426
p00001
u218784088
1564919487
Python
Python3
py
Accepted
20
5600
110
h=[] for i in range(10): h.append((int)(input())) h.sort() h.reverse() for i in range(3): print(h[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,863
s678497232
p00001
u821561321
1564916803
Python
Python3
py
Accepted
20
5600
116
list=[] for i in range(10): list.append(int(input())) list.sort() print(list[-1]) print(list[-2]) print(list[-3])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,864
s990866605
p00001
u586792237
1564916793
Python
Python3
py
Accepted
20
5600
110
h=[] for i in range(10): h.append((int)(input())) h.sort() h.reverse() for i in range(3): print(h[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,865
s249143200
p00001
u250040203
1564914970
Python
Python3
py
Accepted
20
5600
109
m=[] for i in range(10): m.append(int(input())) m.sort(reverse=True) for i in range(3): print(m[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,866
s093667060
p00001
u939401108
1564887642
Python
Python3
py
Accepted
20
5600
109
l = [] for _ in range(10): l.append(int(input())) l.sort(reverse = True) for ll in l[:3]: print(ll)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,867
s495299815
p00001
u455877373
1564853830
Python
Python3
py
Accepted
20
5596
116
a = [] for i in range(10): a.append(input()) a = sorted(a, key=int, reverse=True) for i in a[0:3]: print(i)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,868
s348769318
p00001
u108130680
1564751149
Python
Python3
py
Accepted
20
5600
114
list=[] for x in range(10): list.append(int(input())) list.sort() print(list[9]) print(list[8]) print(list[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,869
s387383042
p00001
u312033355
1564720063
Python
Python3
py
Accepted
20
5600
107
lst=[] for i in range(10): lst.append(int(input())) lst.sort() print(lst[9]) print(lst[8]) print(lst[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,870
s189352543
p00001
u212392281
1564577825
Python
Python3
py
Accepted
20
5600
133
a = [] x = 0 for i in range(10): a.append(int(input())) for i in range(3): x = a.index(max(a)) print(a[x]) del a[x]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,871
s498053899
p00001
u529337794
1564577056
Python
Python3
py
Accepted
20
5604
98
a = [int(input()) for i in range(0,10)] a.sort(reverse=True) for i in range(0,3): print(a[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,872
s690119447
p00001
u804558166
1564510445
Python
Python3
py
Accepted
20
5600
95
a = [int(input()) for i in range(10)] a.sort(reverse=True) print(a[0]) print(a[1]) print(a[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,873
s532425820
p00001
u074302614
1564498576
Python
Python3
py
Accepted
20
5604
96
a = [int(input()) for i in range(10)] a.sort(reverse=True) for i in range(3): print(a[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,874
s797105915
p00001
u427219397
1563771779
Python
Python3
py
Accepted
20
5596
71
[print(i) for i in (sorted([int(input()) for _ in range(10)])[:6:-1])]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,875
s104224160
p00001
u001166815
1563506450
Python
Python3
py
Accepted
20
5600
108
a = [] for i in range(0,10): a.append(int(input())) a.sort(); print(a[9]) print(a[8]) print(a[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,876
s613520387
p00001
u921810101
1563447525
Python
Python3
py
Accepted
20
5608
127
import sys heights = sorted([int(h) for h in sys.stdin], reverse=True) print(heights[0]) print(heights[1]) print(heights[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,877
s714528728
p00001
u052791913
1563256922
Python
Python3
py
Accepted
20
5596
137
yama = [] for i in range(10): yama.append(int(input())) yama = sorted(yama , reverse = True) for n in range(3): print(yama[n])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,878
s726258487
p00001
u480501638
1563170143
Python
Python3
py
Accepted
20
5600
113
l = [] for i in range(0,10): l.append(int(input())) l.sort(reverse=True) l=l[:3] for j in l: print(j)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,879
s130017309
p00001
u090921599
1563170022
Python
Python3
py
Accepted
20
5600
112
l = [] for i in range(0,10): l.append(int(input())) l.sort(reverse=True) l=l[:3] for j in l: print(j)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,880
s957759718
p00001
u397862444
1563165055
Python
Python3
py
Accepted
20
5604
68
print(*sorted([int(input()) for i in range(10)])[:6:-1], sep='\n')
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,881
s012016818
p00001
u678843586
1562830401
Python
Python3
py
Accepted
20
5600
109
lst = [] for i in range(10): lst.append(int(input())) lst.sort() print(lst[9]) print(lst[8]) print(lst[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,882
s566655383
p00001
u433250944
1562768298
Python
Python3
py
Accepted
20
5596
116
mou = [] for i in range(10): mou.append(int(input())) mou.sort() print(mou[9]) print(mou[8]) print(mou[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,883
s158402863
p00001
u351754662
1562565529
Python
Python3
py
Accepted
20
5604
98
a = [int(input()) for i in range(0,10)] a.sort(reverse=True) for i in range(0,3): print(a[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,884
s607396621
p00001
u266648647
1562313402
Python
Python3
py
Accepted
20
5600
103
list1 = [int(input()) for i in range(10)] list1.sort() print(list1[9]) print(list1[8]) print(list1[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,885
s596127287
p00001
u051789695
1561983426
Python
Python3
py
Accepted
20
5600
75
a=sorted([int(input()) for _ in range(10)]) print(a[9],a[8],a[7],sep='\n')
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,886
s742453779
p00001
u313600138
1561960353
Python
Python3
py
Accepted
20
5596
113
A=[] for i in range(10): n= int(input()) A.append(n) A.sort() A.reverse() for i in range(0,3): print(A[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,887
s052242928
p00001
u607723579
1561960037
Python
Python3
py
Accepted
20
5604
67
print(*sorted([int(input()) for i in range(10)])[:6:-1], sep='\n')
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,888
s994967626
p00001
u013648252
1561959523
Python
Python3
py
Accepted
20
5604
67
print(*sorted([int(input()) for i in range(10)])[:6:-1], sep='\n')
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,889
s324233466
p00001
u997476941
1561957637
Python
Python3
py
Accepted
20
5600
67
print(*sorted([int(input()) for i in range(10)])[:6:-1], sep='\n')
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,890
s583194557
p00001
u089486079
1561704418
Python
Python3
py
Accepted
20
5600
463
top_three = [0, 0, 0] for i in range(10): input_height = int(input()) if top_three[0] < input_height: top_three[2] = top_three[1] top_three[1] = top_three[0] top_three[0] = input_height elif top_three[1] < input_height: top_three[2] = top_three[1] top_three[1] = input_height elif top_three[2] < input_height: top_three[2] = input_height print(top_three[0]) print(top_three[1]) print(top_three[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,891
s704461421
p00001
u739211158
1560484086
Python
Python3
py
Accepted
20
5600
130
height = [] for i in range(10): height . append(int(input())) height . sort(reverse = True) for i in range(3): print(height[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,892
s145364929
p00001
u614095715
1560481485
Python
Python3
py
Accepted
20
5604
111
height = [int(input()) for i in range(10)] height.sort(reverse = True) for i in range(3): print(height[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,893
s314758435
p00001
u264450287
1560322987
Python
Python3
py
Accepted
20
5600
122
yama=[] for i in range(10): n=int(input()) yama.append(n) yama.sort(reverse=True) for i in range(3): print(yama[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,894
s246122544
p00001
u800408401
1560143367
Python
Python3
py
Accepted
20
5596
90
l = [int(input()) for i in range(10)] list.sort(l) print(l[-1]) print(l[-2]) print(l[-3])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,895
s602223104
p00001
u548252256
1560090372
Python
Python3
py
Accepted
20
5604
140
if __name__ == '__main__': tmp = [ int(input()) for _ in range(10)] ans = sorted(tmp,reverse=True) for i in range(3): print(ans[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,896
s485744886
p00001
u506537276
1559974214
Python
Python3
py
Accepted
20
5596
97
m = [] for i in range(10): m.append(int(input())) m.sort() print(m[9]) print(m[8]) print(m[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,897
s688073834
p00001
u850181309
1558858048
Python
Python
py
Accepted
10
4640
115
# -*- coding: utf-8 -*- list = [int(input()) for i in range(10)] for h in sorted(list, reverse=True)[:3]: print h
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,898
s410546296
p00001
u555040407
1558857004
Python
Python3
py
Accepted
30
5596
125
height = [] for i in range(10): height.append(int(input())) height.sort() for i in range(3): print(height[-1-i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,899
s621627037
p00001
u990459103
1558855860
Python
Python3
py
Accepted
20
5596
120
high = [] for i in range(10): high.append(int(input())) high.sort() high.reverse() for i in high[:3]: print(i)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,900
s207628965
p00001
u257754197
1558701571
Python
Python3
py
Accepted
20
5596
148
number=[] while(1): try: s=int(input("")) number.append(s) except:break print(*sorted(number,reverse=True)[0:3],sep='\n')
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,901