submission_id string | problem_id string | status string | code string | input string | output string | problem_description string |
|---|---|---|---|---|---|---|
s979566013 | p00001 | Accepted | l = []
for i in range(10):
l.append(input())
l.sort()
l.reverse()
for a in l[:3]:
print a | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s911321383 | p00001 | Accepted | inputList = []
while True:
try:
num = int(input())
except EOFError:
break
inputList.append(num)
inputList.sort()
length = len(inputList)
for i in range(3):
print(inputList[length - i - 1]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s482052232 | p00001 | Accepted | # -*- coding:utf-8 -*-
def main():
List=[]
for i in range(10):
a=int(input())
List.append(a)
List.sort(reverse=True)
print(List[0])
print(List[1])
print(List[2])
if __name__ == '__main__':
main() | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s616072604 | p00001 | Accepted | import sys
arr = []
for i in sys.stdin:
arr.append(int(i))
arr.sort()
arr.reverse()
for i in range(3):
print(arr[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s800527807 | p00001 | Accepted | lis=[];
for i in range(10):
h=int(input());
lis.append(h);
for i in range(10):
for j in range(i+1,10):
if lis[i]<lis[j]:
a=lis[i];
lis[i]=lis[j];
lis[j]=a;
for i in range(3):
print(lis[i]); | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s463874149 | p00001 | Accepted | mountain = []
for i in range(10):
mountain.append(int(input()))
mountain.sort(reverse = True)
for j in range(3):
print(mountain[j]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s846843896 | p00001 | Accepted | li = sorted([int(input()) for i in range(10)], reverse=True)
print("\n".join(map(str, li[:3]))) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s786324387 | p00001 | Accepted | import sys
def main():
l = []
for line in sys.stdin.readlines():
l.append(int(line.rstrip()))
for _ in range(3):
print max(l)
l.remove(max(l))
main() | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s417092533 | p00001 | Accepted | a=[int(input()) for i in range(10)]
a.sort()
a.reverse()
print(a[0])
print(a[1])
print(a[2]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s649125665 | p00001 | Accepted | s = 10*[0]
for i in range(10):
s[i] = input()
s.sort(reverse = True)
for i in range(3):
print s[i] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s494939633 | p00001 | Accepted | heap = []
while True:
try:
n = int(raw_input())
if len(heap) == 0:
heap.append(n)
elif len(heap) == 1:
if n <= heap[0]:
heap.append(n)
else:
heap.insert(0, n)
elif len(heap) == 2:
if n > heap[0]:
heap.insert(0, n)
elif n <= heap[1]:
heap.append(n)
else:
heap.insert(1, n)
elif n > heap[2]:
if n >= heap[0]:
heap.insert(0, n)
elif n >= heap[1]:
heap.insert(1, n)
else:
heap.insert(2, n)
heap.pop()
except (EOFError):
break
for num in heap:
print num | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s085793749 | p00001 | Accepted | # -*- coding: UTF-8 -*-
lst = [int(raw_input()) for i in range(10)]
lst.sort()
lst.reverse()
print lst[0]
print lst[1]
print lst[2] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s022989280 | p00001 | Accepted | mt = []
for i in range(10):
mt.append(int(input()))
mt.sort()
print( mt[9] )
print( mt[8] )
print( mt[7] ) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s957086370 | p00001 | Accepted | x=sorted([input() for _ in range(10)],reverse=True)[0:3]
for y in x:
print y | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s506106815 | p00001 | Accepted | s=[int(input()) for x in range(10)]
print(sorted(s)[-1])
print(sorted(s)[-2])
print(sorted(s)[-3]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s762109412 | p00001 | Accepted | res = []
while True:
try:
n = input()
res.append(n)
except EOFError:
break
res.sort()
res = res[len(res)-3:]
for x in reversed(res):
print x | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s354025938 | p00001 | Accepted | import sys
heights = []
for i in range(10):
line = sys.stdin.readline()
height = int(line)
heights.append(height)
heights.sort()
heights.reverse()
for i in range(3):
print (heights[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s122665549 | p00001 | Accepted | a=[]
for i in range(1,11):
b=int(input())
a.append(b)
a.sort(reverse=True)
for i in range(3):
print(a[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s691785675 | p00001 | Accepted | def get_input():
while True:
try:
yield ''.join(raw_input().strip())
except EOFError:
break
height = list(get_input())
height = sorted(map(int,height),reverse=True)
print height[0]
print height[1]
print height[2] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s812890390 | p00001 | Accepted | li = []
for i in xrange(10):
s = map(str, raw_input().split())
li.append(int(s[-1]))
li.sort(reverse=True)
for i in xrange(3):
print li[i] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s352826515 | p00001 | Accepted | a = []
for i in range(10):
a.append(int(input()))
for i in sorted(a)[-1:-4:-1]:
print(i) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s458669563 | p00001 | Accepted | mountains = []
for x in range(10):
mountains.append(int(raw_input()))
mountains.sort()
mountains.reverse()
print mountains[0]
print mountains[1]
print mountains[2] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s325469580 | p00001 | Accepted | import sys
def solve():
a = []
for line in sys.stdin:
a.append(int(line))
a.sort()
a.reverse()
for k in xrange(3):
print a[k]
if __name__ == '__main__':
solve() | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s605283529 | p00001 | Accepted | import sys
print('\n'.join(map(str, sorted([int(h.strip()) for h in sys.stdin], reverse=True)[:3]))) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s112185685 | p00001 | Accepted | import sys
a = []
for line in sys.stdin:
a.append(int(line))
b = [0, 0, 0]
for i in a:
j = 0
while j < 3:
if i > b[j]:
b.insert(j, i)
break
j += 1
for i in b[:3]:
print i | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s306011015 | p00001 | Accepted | list1=[]
for i in range(10):
list1.append(int(input()))
list1=sorted(list1)
list1.reverse()
for i in range(3):
print(list1[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s217564607 | p00001 | Accepted | # coding: utf-8
# Here your code !
array = []
for i in range(10):
line = int(input())
array += [line]
result = sorted(array)[::-1]
print(result[0])
print(result[1])
print(result[2]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s593867604 | p00001 | Accepted |
mt=[]
high=[0,0,0]
for i in range(10):
mt.append(int(input()))
if mt[i] > high[0]:
high=[mt[i]]+high[:2]
elif mt[i] > high[1]:
high=[high[0]]+[mt[i]]+[high[1]]
elif mt[i] > high[2]:
high=high[:2]+[mt[i]]
print ('\n'.join(map(str,high))) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s294522361 | p00001 | Accepted | import string
import sys
#??????????????\????????????ip?????\??????
ip = sys.stdin.readlines()
for i in range(len(ip)):
ip[i] = int(ip[i].strip("\n"))
#??????3??????????????????
h = [0]*3
#?????????????????????
for i in range(len(ip)):
for j in range(len(ip)):
if ip[i] > ip[j]:
tmp = ip[i]
ip[i] = ip[j]
ip[j] = tmp
for i in range(3):
if h != 0:
print(ip[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s501899535 | p00001 | Accepted | a = []
for i in range(10):
a.append(int(raw_input()))
a.sort()
a.reverse()
for i in range(3):
print a[i] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s984673604 | p00001 | Accepted | mountains = []
for i in range(10):
mountains.append(int(input()))
for m in sorted(mountains)[-1:-4:-1]:
print(m) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s533937048 | p00001 | Accepted | a = [0]
for i in range(10):
if i == 0:
a[0] = input()
else:
a.append(input())
else:
a.sort()
a.reverse()
print a[0]
print a[1]
print a[2] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s179258496 | p00001 | Accepted | M = [0 for i in xrange(10)]
for i in xrange(10):
M[i] = int(raw_input())
M.sort()
M.reverse()
for i in xrange(3):
print M[i] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s129861242 | p00001 | Accepted | height=[]
for i in xrange(10):
mountain=input()
height.append(mountain)
height.sort()
height.reverse()
for i in xrange(3):
print(height[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s464517964 | p00001 | Accepted | mtheight = []
for i in xrange(0,10):
mtheight.append(input())
mtheight.sort()
for i in xrange(0,3):
print mtheight[9 - i] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s011215917 | p00001 | Accepted | m=[]
for i in range(10):
x = input()
m.append(x)
m.sort()
m.reverse()
for i in range(0,3):
print m[i]
| 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s730782999 | p00001 | Accepted | yama = []
for i in range(10):
yama.append(int(input()))
yama.sort()
print( yama[9] )
print( yama[8] )
print( yama[7] ) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s948635622 | p00001 | Accepted | #coding:utf-8
l = []
for i in xrange(10):
a = input()
l.append(a)
for n in xrange(3):
print(max(l))
l.remove(max(l)) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s827930122 | p00001 | Accepted | x = []
for i in xrange(10):
x.append(input())
x.sort()
x = x[::-1]
for i in xrange(3):
print x[i] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s773882558 | p00001 | Accepted | A=[]
for i in range(10):
A.append(int(input()))
A.sort()
A.reverse()
for i in range(3):
print(A[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s657972230 | p00001 | Accepted | # -*- coding: utf-8 -*-
hills_list = []
while len(hills_list) != 10:
hills = raw_input()
if (10000 >= int(hills)) and (int(hills) >= 0):
hills_list.append(int(hills))
hills_list.sort()
print hills_list[-1]
print hills_list[-2]
print hills_list[-3] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s216738207 | p00001 | Accepted | a=[]
for i in range(10):
a.append(input())
a.sort()
a=a[::-1]
a=a[:3]
print(a[0])
print(a[1])
print(a[2]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s181481750 | p00001 | Accepted | def main():
a = []
for i in range(10):
a.append(int(input()))
a.sort()
a.reverse()
for i in range(3):
print(a[i])
if __name__ == '__main__':
main() | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s930830991 | p00001 | Accepted | mountains = []
for n in range(10):
mountains.append(int(input()))
mountains.sort()
mountains.reverse()
for n in [0,1,2]:
print(mountains[n]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s665239621 | p00001 | Accepted | # -*- coding: utf-8 -*-
import sys
def merge(A, left, mid, right):
n1 = mid-left
n2 = right-mid
L = [0]*(n1+1)
R = [0]*(n2+1)
for i in range(n1):
L[i] = A[left+i]
for i in range(n2):
R[i] = A[mid+i]
L[n1] = R[n2] = sys.maxint
i = j = 0
for k in range(left, right):
if L[i] <= R[j]:
A[k] = L[i]
i += 1
else:
A[k] = R[j]
j += 1
def mergeSort(A, left, right):
if left+1 < right:
mid = (left+right)/2
mergeSort(A, left, mid)
mergeSort(A, mid, right)
merge(A, left, mid, right)
M = [int(raw_input()) for i in range(10)]
mergeSort(M, 0, len(M))
for i in range(1, 4):
print M[len(M)-i] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s550856794 | p00001 | Accepted | import sys
ms =list(map(int, sys.stdin.read().rstrip('\n').split('\n')))
ms.sort()
ms.reverse()
for i in range(3):
print(ms[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s066277429 | p00001 | Accepted | height_list = []
for i in range(10):
height_list.append(input())
height_list.sort()
height_list.reverse()
for height in height_list[:3]:
print height | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s100591683 | p00001 | Accepted | # coding: utf-8
list = []
for i in range(10):
list.append(int(raw_input()))
for i in range(3):
max = list[0]
idx = 0
for i in range(len(list)):
if i != idx and list[i] > max:
max = list[i]
idx = i
print max
del list[idx]
| 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s733651494 | p00001 | Accepted | data=[]
for i in range(10):
data.append(int(input()))
data.sort()
data.reverse()
for i in range(3):
print(data[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s836858025 | p00001 | Accepted | hight = []
for i in range(10):
hight.append(int(input()))
hight.sort(reverse=True)
print(hight[0])
print(hight[1])
print(hight[2]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s143570144 | p00001 | Accepted | #List of Top 3 Hills
set = []
a = 9
for i in range(10):
n = int(input())
set.append(n)
set.sort()
while a >= 7:
print(set[a])
a -= 1 | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s256180297 | p00001 | Accepted | s = list()
for i in range(10):
s.append(input())
s.sort(reverse = True)
for i in range(3):
print s[i] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s035107414 | p00001 | Accepted | mounts = []
for i in range(10):
mounts.append(int(input()))
mounts.sort()
mounts.reverse()
for i in range(3):
print(mounts[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s796589255 | p00001 | Accepted | l = []
for i in range(10):
l.append(int(input()))
l.sort()
for i in range(3):
print(l[-1 * (i+1)]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s163702816 | p00001 | Accepted | mounts =[int(input()) for i in range(10)]
mounts.sort(reverse = True)
for i in range(3):
print(mounts[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s091750003 | p00001 | Accepted | A=[]
F=[]
for i in range(0,10):
B1=raw_input()
B=int(B1)
A.append(B)
for i in range(0,10):
F.append(1)
for num in range(0,3):
M=0
m=0
for i in range(0,10):
if(M<A[i]):
if(F[i]==1):
M=A[i]
m=i
print(M)
F[m]=0
| 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s989037015 | p00001 | Accepted | import sys
list = []
for i in range(10):
list.append(input())
list.sort()
list.reverse()
print list[0]
print list[1]
print list[2] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s835440901 | p00001 | Accepted | # -*- coding:utf-8 -*-
first = 0
second = 0
third = 0
i = 0
for i in range(0,10):
line = int(input())
if first < int(line):
third = second
second = first
first = int(line)
elif second < int(line):
third = second
second = int(line)
elif third < int(line):
third = int(line)
print(first)
print(second)
print(third) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s947924972 | p00001 | Accepted | d = [int(input()) for _ in range(10)]
d.sort(reverse=True)
[print(x) for x in d[:3]] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s169849033 | p00001 | Accepted | n = 0
list = []
while n < 10:
x = int(input())
list.append(x)
n += 1
list.sort()
print(list[9])
print(list[8])
print(list[7]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s305936542 | p00001 | Accepted | hills = []
for i in range(10):
hills.append(int(input()))
hills.sort(reverse=True)
for i in range(3):
print(hills[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s413662482 | p00001 | Accepted | l = [int(input()) for i in range(10)]
for i in sorted(l,reverse=True)[:3]:
print(i) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s435877742 | p00001 | Accepted | l=[int(input()) for _ in range(10)]
[print(x) for x in sorted(l, reverse=True)[:3]] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s766383036 | p00001 | Accepted | l=[int(input()) for _ in range(10)]
[print(x) for x in sorted(l,reverse=True)[:3]] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s675519869 | p00001 | Accepted | import itertools
l = [int(input()) for i in range(10)]
r = reversed(sorted(l))
for x in itertools.islice(r, 3):
print(x) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s118794885 | p00001 | Accepted | def qsort(l):
if l == []: return []
else:
pv = l[0]
left = []
right = []
for i in range(1, len(l)):
if l[i] > pv:
left.append(l[i])
else:
right.append(l[i])
left = qsort(left)
right = qsort(right)
left.append(pv)
return left + right
def main():
lst = []
for i in range(0, 10):
lst.append(int(raw_input()))
lst = qsort(lst)
for i in range(0, 3):
print(lst[i])
main() | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s816214716 | p00001 | Accepted | L=list(range(10))
for i in range(10):
L[i]=int(input())
print(max(L))
L.remove(max(L))
print(max(L))
L.remove(max(L))
print(max(L)) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s338914299 | p00001 | Accepted | order=[]
for number in range(10):
hight=int(input())
order.append(hight)
for j in range(9):
for i in range(9):
if order[i] < order[i+1]:
a = order[i]
b = order[i+1]
order[i] = b
order[i+1] = a
for i in range(3):
print(order[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s869599651 | p00001 | Accepted | arr = []
for i in range(10):
arr.append(int(input()))
arr.sort()
arr.reverse()
for i in range(3):
print(arr[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s856875055 | p00001 | Accepted | a=[]
for i in range(10):
a.append(int(input()))
a.sort()
for i in range(3):
print(a[9-i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s386569993 | p00001 | Accepted | mountains = []
for x in range(10):
mountains.append(int(raw_input()))
mountains.sort()
print(mountains[-1])
print(mountains[-2])
print(mountains[-3]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s515720895 | p00001 | Accepted | data = []
for i in range(10):
data.append(int(input()))
sdata = sorted(data)
for i in range(3):
print(sdata[9-i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s754566172 | p00001 | Accepted | M=[]
for i in range(10):
k=int(input())
M.append(k)
N=sorted(M)
print(N[-1])
print(N[-2])
print(N[-3]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s496582372 | p00001 | Accepted | a = [input() for i in range(10)]
a.sort(reverse=True)
print a[0]
print a[1]
print a[2] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s176999370 | p00001 | Accepted | a = []
for i in range(10) :
a.append(int(input()))
a.sort()
a.reverse()
print("%d\n%d\n%d" % (a[0], a[1], a[2])) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s836819524 | p00001 | Accepted | # coding: utf-8
mountain = [int(input()) for i in range(10)]
for i in range(3):
print(max(mountain))
mountain.remove(max(mountain)) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s684325965 | p00001 | Accepted | #coding:utf-8
h = []
for i in range(10):
h.append(int(input()))
h = sorted(h,reverse = True)
for i in h[:3]:
print(i) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s535569308 | p00001 | Accepted | [print(x) for x in sorted([int(input()) for i in range(10)])[-1:-4:-1]] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s732542541 | p00001 | Accepted | s = []
for i in range(10):
s.append(int(raw_input()))
s.sort()
for i in range(3):
print s[9-i] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s416125847 | p00001 | Accepted | m = []
for _ in range(10):
r = int(input())
m.append(r)
m.sort()
print (m[9]);
print (m[8]);
print (m[7]); | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s550272761 | p00001 | Accepted | a = []
for i in range(10):
a.append(input())
a.sort()
a.reverse()
print a[0]
print a[1]
print a[2] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s811131227 | p00001 | Accepted | f=s=t=0
for i in range(10):
n=int(input())
if(n > f):
t = s
s = f
f = n
elif(n > s):
t = s
s = n
elif(n > t):
t = n
print('%d\n%d\n%d'%(f,s,t)) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s527120946 | p00001 | Accepted |
m = []
for i in range(10):
m.append(input())
m.sort()
m.reverse()
for i in range(3):
print m[i] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s753214883 | p00001 | Accepted | heightlist = list()
for i in range(10):
heightlist.append(eval(input()))
heightlist.sort()
for i in range(-1, -4, -1):
print(heightlist[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s556929554 | p00001 | Accepted | heights = []
for _ in range(10):
heights.append(int(input()))
heights.sort(reverse=True)
for i in range(3):
print(heights[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s699631242 | p00001 | Accepted | import sys
a = sorted([int(x) for x in sys.stdin.readlines()], reverse=True)
for i in range(3):
print(a[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s613129443 | p00001 | Accepted | L = []
for _ in range(10):
L.append(int(input()))
L.sort(reverse=True)
for m in L[:3]:
print(m) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s717374360 | p00001 | Accepted | import sys
a = []
for line in sys.stdin:
a.append(int(line))
a.sort()
a.reverse()
print(a[0])
print(a[1])
print(a[2]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s988525077 | p00001 | Accepted | import sys
hills = []
for _ in range(10):
height = int(sys.stdin.readline().strip())
hills.append(height)
hills.sort(reverse=True)
for i in range(3):
print(hills[i])
| 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s164899766 | p00001 | Accepted | a=[]
for i in range(10):
inp=input()
a.append(inp)
if i>=3:
a.sort()
del a[0]
print a[2]
print a[1]
print a[0] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s162189893 | p00001 | Accepted | high=[0 for i in range(10)]
for i in range(10):
high[i]=int(input())
ans=[0 for i in range(3)]
for i in range(3):
ans[i]=max(high)
high.remove(ans[i])
print(ans[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s968484140 | p00001 | Accepted | import sys
l = sorted(map(int,sys.stdin.readlines()),reverse=True)
for i in l[:3]:
print(i) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s201001920 | p00001 | Accepted |
mons = list()
for i in range(0, 10):
mons.append(int(input()))
mons = sorted(mons)
for i in range(9, 6, -1):
print(mons[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s597314008 | p00001 | Accepted | import sys
heights = []
for l in sys.stdin:
heights.append(int(l))
heights = sorted(heights, reverse=True)
print(heights[0])
print(heights[1])
print(heights[2]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s677519271 | p00001 | Accepted | a=[]
for i in range(10):
num = int(input())
a.append(num)
a=sorted(a)
for i in range(3):
print('{0}'.format(a[9-i])) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s488691501 | p00001 | Accepted | import sys
li = []
for line in sys.stdin:
li.append(int(line))
if len(li) == 10:
break
li.sort(reverse=True)
li = li[0:3]
for i in li:
print(i) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s109968795 | p00001 | Accepted | mount = []
for i in range(0, 10):
n = input()
mount.append(n)
mount.sort(reverse = True)
for i in range(0, 3):
print mount[i] | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s874533006 | p00001 | Accepted | h=sorted([int(input()) for i in range(10)],reverse=True)
for i in range(3):
print(h[i]) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s630899474 | p00001 | Accepted | #coding:UTF-8
def LoT(List):
List2=sorted(List)
for i in range(3):
print(List2[len(List)-1-i])
if __name__=="__main__":
List=[]
for i in range(10):
List.append(int(input()))
LoT(List) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
s761347758 | p00001 | Accepted | lis=[]
for i in range(10):
lis.append(int(input()))
for i in sorted(lis,reverse=True)[:3]:
print(i) | 1819
2003
876
2840
1723
1673
3776
2848
1592
922
| 3776
2848
2840
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</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>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.