Dataset Viewer
Auto-converted to Parquet Duplicate
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
s246814716
p00001
u539753516
1531567934
Python
Python3
py
Accepted
20
5596
139
m1=m2=m3=0 for i in range(10): m3=max(m3,int(input())) if m3>m2:m2,m3=m3,m2 if m2>m1:m1,m2=m2,m1 print(m1) print(m2) print(m3)
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,102
s050837870
p00001
u896746547
1532076052
Python
Python3
py
Accepted
20
5592
90
s = [int(input()) for i in range(10)] s.sort(reverse = True) for i in s[: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,103
s123880047
p00001
u279605379
1534815646
Python
Python3
py
Accepted
20
5596
79
A = [int(input()) for i in range(10)] for i in sorted(A)[:-4:-1]: 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,104
s090895139
p00001
u923573620
1535101318
Python
Python3
py
Accepted
20
5600
147
mount_list = [] for i in range(10): mount_list.append(int(input())) mount_list.sort(reverse = True) for i in range(3): print(mount_list[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,105
s246267824
p00001
u525366883
1535371160
Python
Python
py
Accepted
0
4632
154
moutain = [0 for i in range(10)] for i in range(10): moutain[i] = int(raw_input()) moutain.sort(reverse=True) for i in range(3): print moutain[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,106
s543881033
p00001
u580227385
1535444415
Python
Python3
py
Accepted
20
5604
100
num = [int(input()) for i in range(10)] num.sort(reverse=True) for i in range(3): print(num[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,107
s747064922
p00001
u011621222
1545236688
Python
Python3
py
Accepted
20
5592
178
a = [] while True: try: n = int(input()) a.append(n) except: break print(max(a)) a.remove(max(a)) print(max(a)) a.remove(max(a)) print(max(a))
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,108
s872871194
p00001
u668055645
1545265915
Python
Python3
py
Accepted
20
5596
100
l = [] for i in range(10): l.append(int(input())) l.sort() for i in range(3): print(l[9-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,109
s569701431
p00001
u483716678
1546357861
Python
Python
py
Accepted
10
4640
253
def __main(): mountains = [] numOfMoun = 10 for c in range(numOfMoun): mountains.insert(c,int(input())) sorted_mounts = sorted(mountains,reverse=True) for k in range(3): print(sorted_mounts[k]) __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,110
s250444754
p00001
u177389471
1546507653
Python
Python3
py
Accepted
20
5596
111
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,111
s921420635
p00001
u179046735
1555656616
Python
Python3
py
Accepted
20
5596
80
h=sorted([int(input()) for _ in range(10)])[::-1] for i in h[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,112
s243463333
p00001
u153455779
1556007737
Python
Python3
py
Accepted
20
5596
121
mh=[] for i in range(1,11): mh.append(int(input())) mh.sort(reverse=True) print(mh[0]) print(mh[1]) print(mh[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,113
s457317546
p00001
u563307622
1556298790
Python
Python3
py
Accepted
20
5592
217
a_list = [] for i in range(10): while True: a = input() a = int(a) if 0<=a and a<=10000:break a_list.append(a) for i in range(3): print(max(a_list)) a_list.remove(max(a_list))
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,114
s503464799
p00001
u936370024
1556805545
Python
Python3
py
Accepted
20
5600
150
mountains = [] for _ in range(10): mountains.append(int(input())) mountains.sort(reverse=True) for height in mountains[: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,115
s611267236
p00001
u477023447
1558927244
Python
Python3
py
Accepted
20
5596
138
Height = [0]*10 for i in range (10): Height[i] = int(input()) Height.sort() Height.reverse() for j in range(3): print(Height[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,116
s001603790
p00001
u051394180
1558936442
Python
Python
py
Accepted
10
4636
127
arr = list([]) for i in range(10): arr.append(int(input())) arr.sort(reverse=True) for i in range(3): print arr[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,117
s318671448
p00001
u051394180
1558936858
Python
Python
py
Accepted
10
4636
105
arr = list([input() for _ in range(10)]) arr.sort(reverse=True) for i in range(3): print arr[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,118
s163773538
p00001
u051394180
1558936880
Python
Python
py
Accepted
10
4632
105
arr = list([input() for _ in range(10)]) arr.sort(reverse=True) for i in range(3): print arr[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,119
s311862165
p00001
u213571602
1559206838
Python
Python3
py
Accepted
20
5592
160
i = 0 x = [] for i in range(10): mount = int(input()) x.append(mount) sorted_x = sorted(x) print(sorted_x[-1]) print(sorted_x[-2]) print(sorted_x[-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,120
s379455535
p00001
u435158342
1559393227
Python
Python3
py
Accepted
20
5600
98
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,121
s091036030
p00001
u247705495
1559442359
Python
Python3
py
Accepted
20
5596
155
mountains = [] for i in range(10): m = int(input()) mountains.append(m) mountains.sort(reverse=True) for i in range(3): print(mountains[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,122
s058306332
p00001
u132187835
1559478614
Python
Python3
py
Accepted
20
5600
272
max = [0,0,0] for a in range(10): s = int(input()) if max[0] < s: max[2] = max[1] max[1] = max[0] max[0] = s elif max[1] < s: max[2] = max[1] max[1] = s elif max[2] < s: max[2] = s for a in max: print(a)
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,123
s054396662
p00001
u814278309
1559565394
Python
Python3
py
Accepted
20
5600
96
hs=[int(input()) for i in range(10)] h=sorted(hs,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,124
s156025368
p00001
u063179562
1406634029
Python
Python3
py
Accepted
30
6724
118
heights = [int(input()) for i in range(0, 10)] heights.sort(reverse=True) for height in heights[: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,125
s793953125
p00001
u630546605
1408570571
Python
Python3
py
Accepted
30
6720
243
# Python 3+ #------------------------------------------------------------------------------- import sys #ff = open("test.txt", "r") ff = sys.stdin arr = [ int(x) for x in ff.readlines() ] arr.sort(reverse=True) for x in arr[0: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,126
s587291382
p00001
u007052573
1409060164
Python
Python3
py
Accepted
30
6724
132
list = [] for i in range(10): n = int(input()) list.append(n) 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,127
s491345277
p00001
u450407555
1409271901
Python
Python
py
Accepted
20
4188
63
for i in sorted([input() for _ in xrange(10)])[:-4:-1]: 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,128
s827339834
p00001
u696166817
1409285261
Python
Python
py
Accepted
20
4200
236
import sys #list = sys.stdin.readlines() i=0 list = [] for line in sys.stdin.readlines(): list.append(int(line.strip("\n"))) print sorted(list, reverse=True)[0] print sorted(list, reverse=True)[1] print sorted(list, reverse=True)[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,129
s055404481
p00001
u615353970
1410752225
Python
Python
py
Accepted
20
4224
288
l=[] l.append(int(input())) l.append(int(input())) l.append(int(input())) l.append(int(input())) l.append(int(input())) l.append(int(input())) l.append(int(input())) l.append(int(input())) l.append(int(input())) 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,130
s353038005
p00001
u579833671
1410763288
Python
Python
py
Accepted
20
4196
132
list = [] for i in range(10): a = input() list.append(a) list = sorted(list) for i in range(-1, -4, -1): print(list[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,131
s459822627
p00001
u558004042
1410776776
Python
Python3
py
Accepted
30
6720
257
#!/usr/bin/env python3 #coding: utf-8 # Volume0 - 0001 (http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0001) li = [] for x in range(10): s = input() s = int(s) li.append(s) li.sort() li.reverse() for y in range(3): print(li[y])
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,132
s992043727
p00001
u855866586
1411305720
Python
Python
py
Accepted
20
4192
102
a=[] for i in range(10): x=input() a.append(x) a.sort() for i in range(9,6,-1): 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,133
s271331284
p00001
u907094926
1413637918
Python
Python
py
Accepted
20
4208
241
p1 = 0 p2 = 0 p3 = 0 for i in range(10): d = int(raw_input()) if (d > p1): p3 = p2 p2 = p1 p1 = d elif (d > p2): p3 = p2 p2 = d elif (d > p3): p3 = d print p1 print p2 print p3
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,134
s426990936
p00001
u125577958
1414660378
Python
Python3
py
Accepted
30
6724
135
mount=[] for i in range(10): tmp=int(input()) mount.append(tmp) mount.sort() mount.reverse() for i in range(3): print(mount[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,135
s834882954
p00001
u686067953
1415935427
Python
Python
py
Accepted
10
4192
70
print "\n".join(map(str,sorted([input() for _ in [0]*10]))[::-1][0: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,136
s120871773
p00001
u686067953
1415935508
Python
Python
py
Accepted
20
4192
69
print"\n".join(map(str,sorted([input() for _ in [0]*10]))[::-1][0: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,137
s809361445
p00001
u686067953
1415935736
Python
Python
py
Accepted
20
4188
60
for i in sorted([input() for _ in [0]*10])[-1:-4:-1]: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,138
s518244395
p00001
u607831289
1415989790
Python
Python
py
Accepted
10
4188
132
import sys mt_heights = map(int, sys.stdin.readlines()) mt_heights.sort(reverse=True) for height in mt_heights[: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,139
s990319478
p00001
u506132575
1416065234
Python
Python
py
Accepted
20
4212
142
#!/usr/bin/python #-coding:utf8- import sys data = map(int,sys.stdin.read().split()) data.sort() data.reverse() for s in data[:3]: print s
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,140
s955457357
p00001
u662697164
1416197491
Python
Python3
py
Accepted
30
6724
152
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,141
s829781562
p00001
u310737167
1416676123
Python
Python3
py
Accepted
30
6724
78
for i in sorted([int(input()) for i in range(10)], reverse=True)[: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,142
s517007627
p00001
u617183767
1418001837
Python
Python
py
Accepted
20
4220
420
#! /usr/bin/env python # -*- coding: utf-8 -*- import os import sys class Hoge(object): def __init__(self): pass def func(self): ''' insert your code ''' h = reversed(sorted(input() for i in range(10))) for i, e in enumerate(h): if i <= 2: print e return None if __name__ == '__main__': h = Hoge() h.func()
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,143
s253478128
p00001
u316268279
1418002094
Python
Python3
py
Accepted
30
6724
164
#!/usr/bin/env python # -*- coding: utf-8 -*- m = [] for i in range(0,10): m.append(int(input())) for i in range(0,3): print(list(reversed(sorted(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,144
s504488855
p00001
u379499530
1418050721
Python
Python
py
Accepted
20
4192
99
h = list() for i in range(10): h.append(int(input())) h.sort() for i in range(-1,-4,-1): 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,145
s009629776
p00001
u578674365
1418609695
Python
Python
py
Accepted
20
4188
119
import sys mount_list = map(int, sys.stdin.readlines()) mount_list.sort(reverse=True) for x in mount_list[: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,146
s271735084
p00001
u846356981
1418779920
Python
Python3
py
Accepted
30
6724
150
# coding: utf-8 # Here your code ! ret = [] for i in range(10): ret.append(int(input())) ret.sort() print(ret[-1]) print(ret[-2]) print(ret[-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,147
s920662433
p00001
u672822075
1418958175
Python
Python3
py
Accepted
30
6724
90
a = sorted([int(input()) for i in range(10)],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,148
s347318065
p00001
u422939201
1419317574
Python
Python
py
Accepted
20
4196
135
import sys tmp = [] for i in range(10): line = input() tmp.append(line) tmp.sort() print tmp[-1] print tmp[-2] print tmp[-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,149
s277569411
p00001
u631118941
1419325742
Python
Python
py
Accepted
20
4192
98
hills = [input() for x in xrange(10)] hills.sort(reverse=True) for x in xrange(3): print hills[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,150
s053988798
p00001
u605441342
1419694466
Python
Python3
py
Accepted
30
6724
119
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,151
s347723947
p00001
u342537066
1420699139
Python
Python3
py
Accepted
30
6720
245
lis=[] for i in range(10): h=int(input()) lis.append(h) for i in range(10): for j in range(i+1,10): if lis[i]<lis[j]: a=lis[i] lis[i]=lis[j] lis[j]=a for i in range(3): print(lis[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,152
s198062921
p00001
u567380442
1422528778
Python
Python3
py
Accepted
30
6724
108
mountains = [int(input()) for _ in range(10)] for height in sorted(mountains)[-3:][::-1]: 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,153
s366132666
p00001
u241133982
1422945711
Python
Python
py
Accepted
20
4196
118
H = [] while True: try: H.append(input()) except EOFError: break 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,154
s286060976
p00001
u442472098
1423218859
Python
Python
py
Accepted
20
4196
160
#!/usr/bin/env python3 hight = [] for i in range(10): hight.append(int(input())) hight = sorted(hight, reverse=True) for i in range(3): print(hight[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,155
s353540876
p00001
u744114948
1423629208
Python
Python3
py
Accepted
30
6724
125
#! /usr/bin/python3 m=[int(input()) for i in range(10)] m.sort() m.reverse() print("{0}\n{1}\n{2}".format(m[0], m[1], 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,156
s529877012
p00001
u349293999
1423829144
Python
Python
py
Accepted
20
4188
153
# coding: UTF-8 inputs=[] for i in range(0,10): inputs.append(input()) inputs.sort(reverse=True) #print "\n" for i in range(0,3): print inputs[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,157
s026279439
p00001
u392445270
1424412506
Python
Python
py
Accepted
20
4192
130
data = [] for i in range(10): data.append(int(raw_input())) data.sort(reverse = True) print data[0] print data[1] print data[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,158
s003877806
p00001
u492556875
1424709507
Python
Python3
py
Accepted
30
6724
130
import sys heights = [int(i) for i in sys.stdin.read().split()] heights.sort(reverse=True) print("\n".join(map(str, heights[: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,159
s232198813
p00001
u879226672
1425369865
Python
Python
py
Accepted
20
4200
169
ls = [] while True: try: n = int(raw_input()) except EOFError: break ls.append(n) ls.sort(reverse=True) print ls[0] print ls[1] print ls[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,160
s305649650
p00001
u540744789
1425535393
Python
Python
py
Accepted
20
4192
117
L=[] for i in range(0,10): x = raw_input() L.append(int(x)) L.sort() for i in range(0,3): print L.pop()
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,161
s162624028
p00001
u040533857
1425966223
Python
Python3
py
Accepted
30
6724
110
spam = [int(input()) for i in range(0, 10)] spam.sort() spam.reverse() for i in range(0,3): print(spam[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,162
s468327651
p00001
u355726239
1426589823
Python
Python3
py
Accepted
30
6724
142
#!/usr/bin/env python # -*- coding: utf-8 -*- h = [int(input()) for i in range(10)] h.sort() h.reverse() print(h[0]) print(h[1]) print(h[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,163
s616918682
p00001
u266872031
1427638009
Python
Python
py
Accepted
20
4196
100
A=[] for i in range(10): A.append(int(raw_input())) A.sort() print A[-1] print A[-2] print A[-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,164
s110230769
p00001
u888595898
1428743164
Python
Python
py
Accepted
20
4196
145
inputNum = [] for i in range(0, 10): inputNum.append(int(raw_input())) inputNum.sort(reverse=True) for i in range(0, 3): print inputNum[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,165
s077011363
p00001
u647766105
1428820667
Python
Python
py
Accepted
10
4188
72
print "\n".join(map(str, sorted([input() for _ in xrange(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,166
s349932600
p00001
u505648358
1430220334
Python
Python
py
Accepted
10
4188
98
a = list(reversed(sorted([int(raw_input()) for _ in range(10)]))) 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,167
s009470480
p00001
u886766186
1430231326
Python
Python
py
Accepted
20
4196
141
list = [] for i in range(0, 10): t = int(raw_input()) list.append(t) list.sort(reverse=True) for i in range(0, 3): print list[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,168
s092139508
p00001
u009961299
1430541260
Python
Python3
py
Accepted
30
6724
126
lis = [ ] for i in range ( 10 ): lis.append ( int ( input ( ) ) ) lis.sort ( ) for i in range ( 3 ): print ( lis.pop ( ) )
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,169
s201276326
p00001
u308369184
1430557000
Python
Python3
py
Accepted
30
6724
94
a=[int(input()) for i in range(10)] a.sort() a.reverse() 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,170
s438643000
p00001
u577850777
1431241870
Python
Python
py
Accepted
20
4196
192
# -*- config: utf-8 -*- if __name__ == '__main__': hills = [] for i in range(10): tmp = raw_input() hills.append(int(tmp)) hills.sort(reverse=True) for i in range(3): print hills[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,171
s706380784
p00001
u836030809
1431785966
Python
Python
py
Accepted
20
4196
138
mnts = [] for t in xrange(0, 10): mnts.append(int(raw_input())) tops = sorted(mnts, reverse = True) for i in xrange(0, 3): print tops[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,172
s231703553
p00001
u067299340
1432006645
Python
Python
py
Accepted
10
4192
126
m = [] while True: try: m.append(int(raw_input())) except EOFError: break m.sort() m.reverse() for h in m[0: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,173
s992840906
p00001
u067299340
1432007377
Python
Python
py
Accepted
10
4188
61
for h in sorted([input() for i in range(10)])[:-4:-1]: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,174
s560028624
p00001
u631023380
1432376137
Python
Python
py
Accepted
20
4192
90
print "\n".join(map(str, sorted([int(raw_input()) for i in range(10)], reverse=True)[: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,175
s911787434
p00001
u682755774
1433090815
Python
Python
py
Accepted
10
4192
118
#coding UTF-8 n = [] for i in range(10): n.append(input()) n.sort() n.reverse() for i in range(3): print n[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,176
s249906406
p00001
u940190657
1433566188
Python
Python3
py
Accepted
30
6724
131
hills = [] for i in range(10): hills.append(int(input())) hills.sort() hills.reverse() for i in range(3): print(hills[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,177
s900917627
p00001
u747594996
1433932735
Python
Python3
py
Accepted
30
6724
143
array = [] for i in range(10): num = int(input()) array.append(num) list = sorted(array) 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,178
s173079219
p00001
u873482706
1434185287
Python
Python
py
Accepted
20
4200
324
def main(): altitude_lis = [] for i in range(10): input_line = raw_input() altitude = int(input_line) altitude_lis.append(altitude) altitude_lis.sort() altitude_lis.reverse() for i in range(3): print(altitude_lis[i]) if __name__ == '__main__': 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,179
s540179445
p00001
u492083164
1434789816
Python
Python3
py
Accepted
30
6724
126
height=[] for i in range(10): height.append(int(input())) height.sort() height.reverse() 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,180
s928544711
p00001
u622015302
1434819559
Python
Python
py
Accepted
20
4208
600
firstMountainHeight = 0 secondMountainHeight = 0 thirdMountainHeight = 0 while 1: try : i = int(raw_input()) if firstMountainHeight < i : thirdMountainHeight = secondMountainHeight secondMountainHeight = firstMountainHeight firstMountainHeight = i elif secondMountainHeight < i : thirdMountainHeight = secondMountainHeight secondMountainHeight = i elif thirdMountainHeight < i : thirdMountainHeight = i except: print"%d" % (firstMountainHeight) print"%d" % (secondMountainHeight) print"%d" % (thirdMountainHeight) break
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,181
s775917801
p00001
u622015302
1434819645
Python
Python
py
Accepted
20
4208
556
firstMountainHeight = 0 secondMountainHeight = 0 thirdMountainHeight = 0 while 1: try : i = int(raw_input()) if firstMountainHeight<i: thirdMountainHeight=secondMountainHeight secondMountainHeight=firstMountainHeight firstMountainHeight=i elif secondMountainHeight<i: thirdMountainHeight=secondMountainHeight secondMountainHeight=i elif thirdMountainHeight<i: thirdMountainHeight=i except: print"%d" % (firstMountainHeight) print"%d" % (secondMountainHeight) print"%d" % (thirdMountainHeight) break
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,182
s997254201
p00001
u622015302
1434819756
Python
Python
py
Accepted
10
4208
273
one = 0 two = 0 three = 0 while 1: try : i = int(raw_input()) if one<i: three=two two=one one=i elif two<i: three=two two=i elif three<i: three=i except: print"%d" % (one) print"%d" % (two) print"%d" % (three) break
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,183
s769603676
p00001
u622015302
1434819887
Python
Python
py
Accepted
10
4208
256
one=0 two=0 three=0 while 1: try: i=int(raw_input()) if one<i: three=two two=one one=i elif two<i: three=two two=i elif three<i: three=i except: print"%d"%(one) print"%d"%(two) print"%d"%(three) break
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,184
s765277338
p00001
u571345655
1435349534
Python
Python
py
Accepted
20
4192
92
heights = sorted([input() for _ in xrange(10)]) for i in xrange(1, 4): 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,185
s954969955
p00001
u472944603
1437398965
Python
Python
py
Accepted
10
4196
144
data = [0] for i in range(10): data.append(int(input())) data = sorted(data) data.reverse() for i in range(3): print data[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,186
s797788119
p00001
u777299405
1437634766
Python
Python3
py
Accepted
30
6724
78
s = [int(input()) for i in range(10)] for i in sorted(s)[:-4:-1]: 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,187
s382780581
p00001
u528991554
1438500362
Python
Python
py
Accepted
20
4192
124
height = [] for i in range(10): height.append(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,188
s562996464
p00001
u722431421
1439449883
Python
Python
py
Accepted
10
4208
305
# coding: utf-8 #Problem Name: List of Top 3 Hills #ID: tabris #Mail: t123037@kaiyodai.ac.jp height = [0 for _ in range(10)] for i in range(10): height[i] = int(raw_input()) top3 = sorted(height)[:6:-1] for h in top3: print h ''' sample input 1819 2003 876 2840 1723 1673 3776 2848 1592 922 '''
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,189
s298910362
p00001
u707436329
1439665385
Python
Python
py
Accepted
20
4212
325
# coding: utf-8 """ aizu 0001 """ import sys # @profile def main(): mountaines=[] for line in sys.stdin: mountaines.append(int( line )) mountaines.sort(reverse=True) for index,x in enumerate( mountaines ): print x if index >=2: break if __name__ == '__main__': 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,190
s431750159
p00001
u071744613
1440048525
Python
Python
py
Accepted
10
6356
129
heights=[] for i in range(0,10): heights.append(input()) heights.sort() heights.reverse() 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,191
s340624823
p00001
u651428295
1441942111
Python
Python3
py
Accepted
20
7688
113
j = [] for i in range(10) : j.append(int(input())) j.sort(reverse = True) for k in range(3) : print(j[k])
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,192
s718120713
p00001
u985809245
1442583071
Python
Python3
py
Accepted
20
7568
146
myList = [] for i in range(0,10): myList.append(int(input())) myList.sort() myList.reverse() print(myList[0]) print(myList[1]) print(myList[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,193
s421872513
p00001
u305077559
1443235293
Python
Python3
py
Accepted
20
7612
187
if __name__ == "__main__": a = [] for i in range(0,10): val = input() a.append(int(val)) 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,194
s813718431
p00001
u126202702
1443538301
Python
Python
py
Accepted
10
6308
117
a = [input() for i in range(10)] print max(a) b = max(a) a.remove(b) print max(a) b = max(a) a.remove(b) print max(a)
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,195
s866608920
p00001
u467207310
1443688266
Python
Python
py
Accepted
10
6268
115
arr = [] for i in range(10): arr=arr+[int(raw_input())] arr.sort() arr.reverse() for i in range(3): print(arr[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,196
s979566013
p00001
u948218832
1443940816
Python
Python
py
Accepted
10
6368
93
l = [] for i in range(10): l.append(input()) l.sort() l.reverse() for a in l[:3]: print a
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,197
s911321383
p00001
u538041865
1444404771
Python
Python3
py
Accepted
20
7632
221
inputList = [] while True: try: num = int(input()) except EOFError: break inputList.append(num) inputList.sort() length = len(inputList) for i in range(3): print(inputList[length - i - 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,198
s482052232
p00001
u071010747
1445159253
Python
Python3
py
Accepted
20
7712
253
# -*- coding:utf-8 -*- def main(): List=[] for i in range(10): a=int(input()) List.append(a) List.sort(reverse=True) print(List[0]) print(List[1]) print(List[2]) if __name__ == '__main__': 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,199
s616072604
p00001
u802625365
1445868196
Python
Python
py
Accepted
10
6420
126
import sys arr = [] for i in sys.stdin: arr.append(int(i)) arr.sort() arr.reverse() for i in range(3): print(arr[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,200
s800527807
p00001
u342537066
1446026573
Python
Python3
py
Accepted
20
7616
268
lis=[]; for i in range(10): h=int(input()); lis.append(h); for i in range(10): for j in range(i+1,10): if lis[i]<lis[j]: a=lis[i]; lis[i]=lis[j]; lis[j]=a; for i in range(3): print(lis[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,201
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4