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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s201459415
|
p00001
|
u585414111
|
1365337927
|
Python
|
Python
|
py
|
Accepted
| 10
|
4208
| 124
|
res = []
for l in range(0,10):
res.append(input())
res = sorted(res, reverse=True)
for i in range(0,3):
print res[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 ≤ height of mountain (integer) ≤ 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,602
|
s642692746
|
p00001
|
u455516672
|
1365667729
|
Python
|
Python
|
py
|
Accepted
| 20
|
4204
| 78
|
a=[input() for i in range(10)]
a.sort()
print "%d\n%d\n%d"%(a[-1],a[-2],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 ≤ height of mountain (integer) ≤ 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,603
|
s327094733
|
p00001
|
u097334177
|
1366016637
|
Python
|
Python
|
py
|
Accepted
| 10
|
4200
| 83
|
hs = [input() for _ in xrange(10)]
hs.sort()
for _ in xrange(3):
print hs.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 ≤ height of mountain (integer) ≤ 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,604
|
s510356637
|
p00001
|
u147801965
|
1366385739
|
Python
|
Python
|
py
|
Accepted
| 10
|
4200
| 63
|
for j in sorted([input() for i in range(10)])[-1:-4:-1]:print j
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,605
|
s752563240
|
p00001
|
u318424563
|
1366627671
|
Python
|
Python
|
py
|
Accepted
| 20
|
4232
| 355
|
data = []
for i in range(10):
data.append(int(raw_input()))
m1 = m2 = m3 = 0
for i in data:
if 0 <= i <= 10000:
if m1 <= i:
m3 = m2
m2 = m1
m1 = i
elif m2 <= i < m1:
m3 = m2
m2 = i
elif m3 <= i < m2:
m3 = i
print "{}\n{}\n{}".format(m1, m2, 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 ≤ height of mountain (integer) ≤ 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,606
|
s753666786
|
p00001
|
u363039534
|
1367903273
|
Python
|
Python
|
py
|
Accepted
| 10
|
4204
| 105
|
x=[]
for i in range(0,10):
x.append(input())
x.sort(reverse=True)
for i in range(0,3):
print x[i]
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,607
|
s811725812
|
p00001
|
u116766943
|
1368071941
|
Python
|
Python
|
py
|
Accepted
| 20
|
4204
| 98
|
lis = []
for i in xrange(10):
lis.append(input())
for a in sorted(lis,reverse=True)[: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 ≤ height of mountain (integer) ≤ 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,608
|
s833209350
|
p00001
|
u542421762
|
1368079469
|
Python
|
Python
|
py
|
Accepted
| 10
|
4196
| 138
|
import sys
file = sys.stdin
lis = file.readlines()
lis = map(int, lis)
lis.sort()
lis.reverse()
for height in lis[0: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 ≤ height of mountain (integer) ≤ 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,609
|
s642465381
|
p00001
|
u814249052
|
1368361670
|
Python
|
Python
|
py
|
Accepted
| 20
|
4236
| 211
|
import sys
import fileinput
def main():
for height in sorted(map(lambda x: int(x), fileinput.input()), reverse = True)[:3]:
print height
return 0
if __name__ == "__main__":
sys.exit(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 ≤ height of mountain (integer) ≤ 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,610
|
s996465284
|
p00001
|
u093607836
|
1368894498
|
Python
|
Python
|
py
|
Accepted
| 20
|
4204
| 118
|
list = list()
for i in xrange(10):
list.append(input())
list.sort()
list.reverse()
for i in xrange(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 ≤ height of mountain (integer) ≤ 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,611
|
s478517708
|
p00001
|
u611853667
|
1369984179
|
Python
|
Python
|
py
|
Accepted
| 20
|
4204
| 83
|
print "\n".join(map(str,sorted([input() for _ in xrange(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 ≤ height of mountain (integer) ≤ 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,612
|
s854661751
|
p00001
|
u759934006
|
1372529942
|
Python
|
Python
|
py
|
Accepted
| 10
|
4204
| 116
|
from sys import stdin
x = [int(input()) for i in range(10)]
x.sort(reverse=True)
for i in range(3):
print(x[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,613
|
s564767467
|
p00001
|
u536245846
|
1374636299
|
Python
|
Python
|
py
|
Accepted
| 10
|
4204
| 144
|
ans = []
while True:
try:
ans.append(raw_input())
except:
break
ans.sort(key=int)
ans.reverse()
print "\n".join(ans[: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 ≤ height of mountain (integer) ≤ 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,614
|
s428579072
|
p00001
|
u536245846
|
1374636830
|
Python
|
Python
|
py
|
Accepted
| 20
|
4200
| 77
|
print "\n".join(sorted([raw_input() for x in xrange(10)], key=int)[::-1][: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 ≤ height of mountain (integer) ≤ 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,615
|
s169998883
|
p00001
|
u536245846
|
1374636986
|
Python
|
Python
|
py
|
Accepted
| 10
|
4200
| 77
|
print "\n".join(sorted([raw_input() for x in xrange(10)], key=int)[::-1][: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 ≤ height of mountain (integer) ≤ 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,616
|
s993659162
|
p00001
|
u085789778
|
1374650276
|
Python
|
Python
|
py
|
Accepted
| 20
|
4204
| 138
|
# -*- utf-8 -*-
mo = [];
for i in range(10):
mo.append(int(raw_input()))
mo.sort(reverse=True)
for i in range(3):
print mo[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 ≤ height of mountain (integer) ≤ 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,617
|
s440655848
|
p00001
|
u843960735
|
1374680833
|
Python
|
Python
|
py
|
Accepted
| 20
|
4204
| 116
|
l = []
for x in range(10) :
n = int(raw_input())
l.append(n)
print '\n'.join(map(str, reversed(sorted(l)))[:3])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,618
|
s325674241
|
p00001
|
u912573907
|
1375165352
|
Python
|
Python
|
py
|
Accepted
| 10
|
4208
| 132
|
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 ≤ height of mountain (integer) ≤ 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,619
|
s999098772
|
p00001
|
u455025374
|
1376079487
|
Python
|
Python
|
py
|
Accepted
| 20
|
4200
| 63
|
for j in sorted([input() for i in range(10)])[-1:-4:-1]:print j
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,620
|
s049647435
|
p00001
|
u228756885
|
1376481585
|
Python
|
Python
|
py
|
Accepted
| 10
|
4204
| 121
|
#coding: UTF-8
num = []
for i in range(10):
num.append(input())
num.sort()
print num[-1]
print num[-2]
print num[-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 ≤ height of mountain (integer) ≤ 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,621
|
s757149643
|
p00001
|
u912237403
|
1376705945
|
Python
|
Python
|
py
|
Accepted
| 20
|
4208
| 123
|
import sys
n=10
x=[]
for i in range(n):
tmp = input()
x.append(tmp)
for i in sorted(x)[::-1][: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 ≤ height of mountain (integer) ≤ 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,622
|
s659195387
|
p00001
|
u866760195
|
1378209300
|
Python
|
Python
|
py
|
Accepted
| 10
|
4220
| 288
|
fir=0
sec=0
thi=0
for a in range(0,10):
a=input()
if a >= fir:
sec,thi = fir,sec
fir = a
elif a >= sec:
thi = sec
sec = a
elif a >= thi:
thi = a
print fir
print sec
print thi
|
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 ≤ height of mountain (integer) ≤ 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,623
|
s967180878
|
p00001
|
u813384600
|
1379065043
|
Python
|
Python
|
py
|
Accepted
| 10
|
4204
| 93
|
m = sorted([int(raw_input()) for i in range(10)], reverse = True)
for i in m[: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 ≤ height of mountain (integer) ≤ 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,624
|
s711379389
|
p00001
|
u389390219
|
1380934401
|
Python
|
Python
|
py
|
Accepted
| 20
|
4200
| 64
|
for i in sorted([input() for i in range(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 ≤ height of mountain (integer) ≤ 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,625
|
s322843439
|
p00001
|
u492005863
|
1381232777
|
Python
|
Python
|
py
|
Accepted
| 20
|
4200
| 193
|
# List of Top 3 Hills
import sys
mountains = []
for line in sys.stdin:
mountains.append(int(line))
mountains.sort(reverse=True)
print mountains[0]
print mountains[1]
print mountains[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 ≤ height of mountain (integer) ≤ 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,626
|
s013559882
|
p00001
|
u351182591
|
1381342911
|
Python
|
Python
|
py
|
Accepted
| 20
|
4208
| 120
|
a = []
for x in range(10):
a += [int(input())]
for x in range(3):
print(max(a))
a.remove(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 ≤ height of mountain (integer) ≤ 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,627
|
s237881686
|
p00001
|
u180584272
|
1381664880
|
Python
|
Python
|
py
|
Accepted
| 20
|
4196
| 108
|
hs = []
for i in xrange(10):
hs.append(int(raw_input()))
hs.sort()
print hs[9]
print hs[8]
print hs[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 ≤ height of mountain (integer) ≤ 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,628
|
s185926915
|
p00001
|
u511257811
|
1381672514
|
Python
|
Python
|
py
|
Accepted
| 20
|
4188
| 155
|
import sys
heights = []
for line in sys.stdin:
heights.append(int(line.rstrip('\n')))
for height in sorted(heights, reverse=True)[: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 ≤ height of mountain (integer) ≤ 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,629
|
s603995563
|
p00001
|
u674319057
|
1382283166
|
Python
|
Python
|
py
|
Accepted
| 10
|
4208
| 263
|
#!/usr/bin/env python
def lot3h():
mounts = []
for i in range(10):
mounts.append(int(raw_input()))
mounts.sort()
mounts.reverse()
for i in range(3):
print "%d\n" % mounts[i] ,
return
if __name__ == "__main__":
lot3h()
|
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 ≤ height of mountain (integer) ≤ 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,630
|
s126238356
|
p00001
|
u093607836
|
1382331490
|
Python
|
Python
|
py
|
Accepted
| 10
|
4188
| 106
|
import sys
l = sorted([int(s) for s in sys.stdin], reverse=True)[:3]
print '\n'.join([str(s) for s in l])
|
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 ≤ height of mountain (integer) ≤ 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,631
|
s654624024
|
p00001
|
u004899771
|
1384158569
|
Python
|
Python
|
py
|
Accepted
| 20
|
4204
| 184
|
#!/usr/bin/env python
#coding:utf-8
import sys
dat=[]
for i in range(0,10):
val=raw_input()
dat.append(int(val))
dat.sort()
dat.reverse()
for i in range(0,3):
print dat[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 ≤ height of mountain (integer) ≤ 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,632
|
s502549071
|
p00001
|
u004899771
|
1384158611
|
Python
|
Python
|
py
|
Accepted
| 20
|
4204
| 172
|
#!/usr/bin/env python
#coding:utf-8
dat=[]
for i in range(0,10):
val=raw_input()
dat.append(int(val))
dat.sort()
dat.reverse()
for i in range(0,3):
print dat[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 ≤ height of mountain (integer) ≤ 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,633
|
s492926930
|
p00001
|
u231998559
|
1386313405
|
Python
|
Python
|
py
|
Accepted
| 20
|
4208
| 340
|
first = -1
second = -1
third = -1
for i in xrange(10):
height = int(raw_input())
if first < height:
third = second
second = first
first = height
else:
if second < height:
third = second
second = height
else:
if third < height:
third = height
print first
print second
print third
|
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 ≤ height of mountain (integer) ≤ 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,634
|
s474053718
|
p00001
|
u786185717
|
1387821621
|
Python
|
Python
|
py
|
Accepted
| 20
|
4192
| 93
|
x = []
for i in range(10):
x.append(input())
x.sort()
for j in range(-1,-4,-1):
print(x[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 ≤ height of mountain (integer) ≤ 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,635
|
s489310811
|
p00001
|
u912237403
|
1390116071
|
Python
|
Python
|
py
|
Accepted
| 20
|
4188
| 82
|
import sys
x=[]
for i in range(10):x+=[input()]
for i in sorted(x)[:-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 ≤ height of mountain (integer) ≤ 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,636
|
s103959701
|
p00001
|
u912237403
|
1390116644
|
Python
|
Python
|
py
|
Accepted
| 20
|
4184
| 62
|
import sys
for i in sorted(map(int,sys.stdin))[:-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 ≤ height of mountain (integer) ≤ 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,637
|
s267334785
|
p00001
|
u912237403
|
1390116691
|
Python
|
Python
|
py
|
Accepted
| 10
|
4184
| 66
|
import sys
x=sorted(map(int,sys.stdin))[:-4:-1]
for i in x: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 ≤ height of mountain (integer) ≤ 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,638
|
s311379787
|
p00001
|
u912237403
|
1390117242
|
Python
|
Python
|
py
|
Accepted
| 20
|
4192
| 65
|
x=sorted([input() for i in range(10)])[:-4:-1]
for i in x: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 ≤ height of mountain (integer) ≤ 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,639
|
s940958786
|
p00001
|
u912237403
|
1390117291
|
Python
|
Python
|
py
|
Accepted
| 10
|
4188
| 61
|
for i in sorted([input() for i in range(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 ≤ height of mountain (integer) ≤ 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,640
|
s738647450
|
p00001
|
u099743492
|
1391311271
|
Python
|
Python
|
py
|
Accepted
| 10
|
4200
| 135
|
n = list()
for var in range(0, 10):
n.append( int(raw_input()) )
n.sort(reverse = True)
for var in range(0, 3):
print n[var]
|
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 ≤ height of mountain (integer) ≤ 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,641
|
s256848561
|
p00001
|
u633068244
|
1393346089
|
Python
|
Python
|
py
|
Accepted
| 20
|
4204
| 131
|
a = [0 for i in range(10)]
for i in range(10):
a[i] = int(raw_input())
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 ≤ height of mountain (integer) ≤ 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,642
|
s782313184
|
p00001
|
u858885710
|
1393831120
|
Python
|
Python
|
py
|
Accepted
| 10
|
4192
| 131
|
heights = []
for n in range(10):
heights.append(int(raw_input()))
heights = sorted(heights)[::-1]
for h in heights[: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 ≤ height of mountain (integer) ≤ 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,643
|
s493957427
|
p00001
|
u193025715
|
1394474275
|
Python
|
Python
|
py
|
Accepted
| 20
|
4208
| 177
|
import sys
array = [0 for i in range(10)]
for i in range(10):
array[i] = int(raw_input())
array.sort()
array.reverse()
for j in range(3):
print str(array[j])
sys.exit()
|
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 ≤ height of mountain (integer) ≤ 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,644
|
s923032156
|
p00001
|
u140201022
|
1395767615
|
Python
|
Python
|
py
|
Accepted
| 20
|
4192
| 105
|
m=[]
for i in range(10):
m.append(int(raw_input()))
m.sort()
for i in range(-1,-4,-1):
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 ≤ height of mountain (integer) ≤ 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,645
|
s862116525
|
p00001
|
u446235837
|
1395940511
|
Python
|
Python
|
py
|
Accepted
| 20
|
4216
| 235
|
a = []
for i in range(10):
a.append(input())
for i in range(len(a)):
for s in range(i+1,len(a)):
if a[i] < a[s]:
tmp = a[s]
a[s] = a[i]
a[i] = tmp
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 ≤ height of mountain (integer) ≤ 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,646
|
s763239098
|
p00001
|
u292964502
|
1396123926
|
Python
|
Python
|
py
|
Accepted
| 20
|
4188
| 104
|
a = []
for i in range(10):
a.append(input())
a.sort(reverse=True)
for j in range(3):
print a[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 ≤ height of mountain (integer) ≤ 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,647
|
s079418730
|
p00001
|
u491763171
|
1396336881
|
Python
|
Python
|
py
|
Accepted
| 20
|
4192
| 102
|
m = []
for i in range(10):
m.append(input())
m.sort(reverse=True)
print '\n'.join(map(str, m[: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 ≤ height of mountain (integer) ≤ 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,648
|
s203173391
|
p00001
|
u246033265
|
1396601822
|
Python
|
Python
|
py
|
Accepted
| 10
|
4192
| 131
|
a = []
try:
while True:
a.append(int(raw_input()))
except:
pass
a.sort()
for i in range(-1, -4, -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 ≤ height of mountain (integer) ≤ 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,649
|
s660671764
|
p00001
|
u708217907
|
1397777964
|
Python
|
Python
|
py
|
Accepted
| 20
|
4188
| 106
|
from sys import stdin
x=[int(input()) for i in range(10)]
x.sort(reverse=True)
for i in x[: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 ≤ height of mountain (integer) ≤ 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,650
|
s726815866
|
p00001
|
u708217907
|
1397778015
|
Python
|
Python
|
py
|
Accepted
| 20
|
4188
| 108
|
from sys import stdin
x = [int(input()) for i in range(10)]
x.sort(reverse=True)
for i in x[: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 ≤ height of mountain (integer) ≤ 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,651
|
s878221402
|
p00001
|
u791201756
|
1397875684
|
Python
|
Python
|
py
|
Accepted
| 20
|
4192
| 96
|
a = [int(raw_input()) for i in xrange(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 ≤ height of mountain (integer) ≤ 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,652
|
s709338430
|
p00001
|
u989992553
|
1398162105
|
Python
|
Python
|
py
|
Accepted
| 20
|
4192
| 89
|
x = [int(raw_input()) for i in range(10)]
x.sort(reverse = True)
for i in x[: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 ≤ height of mountain (integer) ≤ 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,653
|
s857003841
|
p00001
|
u146816547
|
1398676259
|
Python
|
Python
|
py
|
Accepted
| 20
|
4196
| 108
|
s = []
for i in xrange(10):
s.append(int(raw_input()))
s.sort()
s.reverse()
for i in xrange(3):
print s[i]
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,654
|
s749169586
|
p00001
|
u047988051
|
1399971047
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6724
| 94
|
a = [int(input()) for i in range(0,10)]
a.sort(reverse=True)
for i in range(0,3):
print(a[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,655
|
s812965831
|
p00001
|
u907152698
|
1400225245
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6724
| 133
|
#coding: utf-8
a = []
for i in range(10):
num = input()
a.append(int(num))
a.sort(reverse=True)
for i in range(3):
print(a[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,656
|
s588561501
|
p00001
|
u436634575
|
1400909229
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6724
| 98
|
a = []
for i in range(10):
a.append(int(input()))
a.sort()
print(a[9])
print(a[8])
print(a[7])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,657
|
s955132869
|
p00001
|
u462169221
|
1401430936
|
Python
|
Python
|
py
|
Accepted
| 10
|
4192
| 104
|
m=[]
for i in range(10):
x = input()
m.append(x)
m.sort()
m.reverse()
for i in range(0,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 ≤ height of mountain (integer) ≤ 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,658
|
s450085227
|
p00001
|
u157106727
|
1403057235
|
Python
|
Python
|
py
|
Accepted
| 20
|
4228
| 359
|
#!/usr/bin/env python
tmp_max = [0,0,0]
import sys
for line in iter(sys.stdin.readline, ""):
if int(line) > tmp_max[2]:
tmp_max[2] = int(line)
if tmp_max[2] > tmp_max[1]:
tmp_max[1],tmp_max[2] = tmp_max[2],tmp_max[1]
if tmp_max[1] > tmp_max[0]:
tmp_max[0],tmp_max[1] = tmp_max[1],tmp_max[0]
print tmp_max[0]
print tmp_max[1]
print tmp_max[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 ≤ height of mountain (integer) ≤ 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,659
|
s437418325
|
p00001
|
u618672141
|
1403736118
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6724
| 127
|
l = []
for i in range(10):
n = int(input())
l.append(n)
l.sort(reverse = True)
print(l[0])
print(l[1])
print(l[2])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,660
|
s717074840
|
p00001
|
u037566157
|
1597761284
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 123
|
a,b = [],[]
for i in range(10):
a.append(int(input()))
a.sort(reverse=True)
print(a[0])
print(a[1])
print(a[2])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,661
|
s688827395
|
p00001
|
u342624490
|
1597761199
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 95
|
a = [int(input()) for i in range(0,10)]
a.sort(reverse=True)
for i in range(0,3):
print(a[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,662
|
s775083186
|
p00001
|
u925445050
|
1597757293
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 94
|
m=[int(input()) for i in range(10)]
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 ≤ height of mountain (integer) ≤ 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,663
|
s976586341
|
p00001
|
u365131854
|
1597757239
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5600
| 104
|
a=[]
for i in range(10):
a.append(input())
a=sorted(a,key=int,reverse=True)
for i in a[0:3]:
print(i)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,664
|
s902321514
|
p00001
|
u363460225
|
1597757108
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 119
|
a=[]
for i in range (10):
c=int(input())
a.append(c)
d=sorted(a)
print(d[-1])
print(d[-2])
print(d[-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 ≤ height of mountain (integer) ≤ 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,665
|
s466603604
|
p00001
|
u885258138
|
1597729201
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 134
|
a=[]
for i in range(10):
b=int(input())
a.append(b)
for i in range(3):
print(max(a))
a.remove(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 ≤ height of mountain (integer) ≤ 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,666
|
s514376664
|
p00001
|
u645087541
|
1597725478
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 125
|
a = []
for i in range(10):
n = int(input())
a.append(n)
a.sort(reverse=True)
print(a[0])
print(a[1])
print(a[2])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,667
|
s502408337
|
p00001
|
u082412851
|
1597724806
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 402
|
mountain_heights = []
for i in range(10):
mountain_heights.append(int(input()))
for i in range(3):
maximum = 0
index = i
for j in range(i, 10):
if mountain_heights[j] > maximum:
maximum = mountain_heights[j]
index = j
temp = mountain_heights[i]
mountain_heights[i] = mountain_heights[index]
mountain_heights[index] = temp
print(maximum)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,668
|
s417049401
|
p00001
|
u329155726
|
1597724496
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 104
|
a=[]
for i in range(10):
a.append(int(input()))
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 ≤ height of mountain (integer) ≤ 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,669
|
s310510792
|
p00001
|
u852547520
|
1597722708
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 149
|
a=[]
b=[]
for i in range(10):
h=int(input())
a.append(h)
for n in range(3):
s=max(a)
b.append(s)
print(s)
a.remove(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 ≤ height of mountain (integer) ≤ 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,670
|
s794226707
|
p00001
|
u427834127
|
1597713377
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 98
|
m=[]
for i in range(10) :
m.append(int(input()))
m.sort()
print(m[9])
print(m[8])
print(m[7])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,671
|
s660650694
|
p00001
|
u476754031
|
1597680093
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 80
|
S = [int(input()) for i in range(10)]
S.sort(reverse=1)
print(*S[:3], sep='\n')
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,672
|
s757227186
|
p00001
|
u782152619
|
1597675982
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 101
|
a=[]
for i in range(10):
a.append(int(input()))
a.sort()
print(f'{a[-1]}\n{a[-2]}\n{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 ≤ height of mountain (integer) ≤ 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,673
|
s074232449
|
p00001
|
u762022668
|
1597669411
|
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 ≤ height of mountain (integer) ≤ 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,674
|
s368419665
|
p00001
|
u799076010
|
1597668245
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 96
|
A=list(int(input()) for i in range(10))
A.sort(reverse=True)
for i in range(3):
print(A[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,675
|
s788753997
|
p00001
|
u430159711
|
1597665675
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 125
|
import sys
a=[]
for i in sys.stdin:
a.append(int(i))
x=sorted(a,reverse=True)
print(x[0])
print(x[1])
print(x[2])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,676
|
s945610681
|
p00001
|
u326077502
|
1597625218
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 132
|
x=[]
for i in range(10):
n=int(input())
x.append(n)
x1=sorted(x,reverse=True)
print(x1[0])
print(x1[1])
print(x1[2])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,677
|
s958930441
|
p00001
|
u878828646
|
1597558694
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 119
|
import sys
a=[]
for i in sys.stdin:
a.append(int(i))
x=sorted(a,reverse=True)
print(x[0])
print(x[1])
print(x[2])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,678
|
s520191591
|
p00001
|
u829520323
|
1597512768
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 95
|
a = [int(input()) for i in range(0,10)]
a.sort(reverse=True)
for i in range(0,3):
print(a[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,679
|
s632690219
|
p00001
|
u799016206
|
1597507078
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 97
|
a=[]
for i in range(10):
a.append(int(input()))
a.sort()
print(a[9])
print(a[8])
print(a[7])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,680
|
s708645943
|
p00001
|
u138194441
|
1597484938
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 98
|
x = [int(input()) for i in range(0,10)]
x.sort(reverse=True)
for i in range(0,3):
print(x[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,681
|
s851779751
|
p00001
|
u419548414
|
1597414877
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 124
|
list=[]
for i in range (10):
n=int(input())
list.append(n)
list.sort()
print(list[9])
print(list[8])
print(list[7])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,682
|
s271281357
|
p00001
|
u709176169
|
1597412649
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 92
|
h=[int(input()) for i in range(10)]
h.sort()
h.reverse()
for j in range(3):
print(h[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 ≤ height of mountain (integer) ≤ 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,683
|
s144001670
|
p00001
|
u023941195
|
1597378396
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 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 ≤ height of mountain (integer) ≤ 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,684
|
s384145536
|
p00001
|
u355413291
|
1597292690
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5600
| 118
|
x=[]
for i in range (10):
a=int(input())
x.append(a)
x.sort(reverse=True)
print(x[0])
print(x[1])
print(x[2])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,685
|
s501975075
|
p00001
|
u278236319
|
1597126789
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 117
|
a = []
for i in range(10):
a.append(int(input()))
b = sorted(a,reverse=True)
print(b[0])
print(b[1])
print(b[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 ≤ height of mountain (integer) ≤ 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,686
|
s228178871
|
p00001
|
u996694149
|
1596685172
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 98
|
h = [int(input()) for i in range(10)]
h.sort(reverse = True)
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 ≤ height of mountain (integer) ≤ 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,687
|
s647718843
|
p00001
|
u421274895
|
1596619509
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 118
|
a=[]
for i in range(10):
a.append(int(input()))
a.sort()
for i in range(3):
print(a[-1])
del a[-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 ≤ height of mountain (integer) ≤ 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,688
|
s906438656
|
p00001
|
u548283997
|
1596613636
|
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 ≤ height of mountain (integer) ≤ 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,689
|
s668363440
|
p00001
|
u392970366
|
1596611059
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5600
| 68
|
print(*sorted([int(input()) for _ in range(10)])[:-4:-1], sep="\n")
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,690
|
s530315932
|
p00001
|
u309196579
|
1596607232
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 68
|
print(*sorted([int(input()) for _ in range(10)])[:-4:-1], sep="\n")
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,691
|
s061229252
|
p00001
|
u834258010
|
1596472567
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 153
|
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 ≤ height of mountain (integer) ≤ 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,692
|
s631662609
|
p00001
|
u167524059
|
1596433675
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 132
|
LIST = []
for i in range(10) :
LIST.append(int(input()))
LIST.sort(reverse = True)
print(LIST[0])
print(LIST[1])
print(LIST[2])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,693
|
s706627908
|
p00001
|
u900012957
|
1596431024
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 116
|
a = []
for i in range(10):
a.append(input())
a = sorted(a, key=int, reverse=True)
for i in a[0:3]:
print(i)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,694
|
s124442074
|
p00001
|
u056263240
|
1596430122
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 116
|
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 ≤ height of mountain (integer) ≤ 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,695
|
s829766793
|
p00001
|
u529477970
|
1596386903
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 141
|
mountain=[]
for i in range(10):
mountain.append(int(input()))
mountain.sort()
print(mountain[9])
print(mountain[8])
print(mountain[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 ≤ height of mountain (integer) ≤ 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,696
|
s727429798
|
p00001
|
u319403848
|
1596383767
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 90
|
x=[int(input()) for i in range(10)]
x.sort(reverse=True)
for i in range(3):
print(x[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,697
|
s350436147
|
p00001
|
u896809383
|
1596376888
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 67
|
print(*sorted([int(input()) for i in range(10)])[:6:-1], sep='\n')
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,698
|
s179051374
|
p00001
|
u755480664
|
1596374152
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 283
|
a = []
for i in range(10):
a.append(int(input()))
for i in range(3):
maximum = 0
index = i
for j in range(i, 10):
if a[j] > maximum:
maximum = a[j]
index = j
temp = a[i]
a[i] = a[index]
a[index] = temp
print(maximum)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,699
|
s845906736
|
p00001
|
u118506623
|
1596369431
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 110
|
a=[]
for i in range(10):
a.append(int(input()))
a.sort(reverse = True)
for i in range(3):
print(a[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,700
|
s258237429
|
p00001
|
u849721539
|
1596268651
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 115
|
Mountain = [int(input()) for i in range(10)]
Mountain.sort(reverse=True)
for i in range(3):
print(Mountain[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 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,701
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.