submission_id
string
problem_id
string
status
string
code
string
input
string
output
string
problem_description
string
s460078357
p00001
Wrong Answer
l=[] for _ in range(10): l.append(int(raw_input())) sorted(l,reverse=True) for n in range(9): print l[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s718892562
p00001
Wrong Answer
def main(): l = [] for _ in range(10): l.append(input()) l = sorted(l, reverse=True) for i in range(3): print(l[i]) return None 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s434053478
p00001
Wrong Answer
#coding:utf-8 l = [int(raw_input()) for i in range(10)] l.sort() for i in range(3): print l[7+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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s294896270
p00001
Wrong Answer
a = [] for i in range(10): a.append(input()) a = a.sort(reverse=True) for i in range(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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s622476177
p00001
Wrong Answer
list=list() for i in range(10): t=input() list.append(int(t)) list.sort() for i in range(3): print(list[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s074865961
p00001
Wrong Answer
s=[] for i in range(10): s.append(int(input())) s.sort() 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s230910796
p00001
Wrong Answer
inp=[] for i in range(0,10): inp.append(input()) INP=[0,0,0,0,0,0,0,0,0,0] for i in range(0,10): for j in range(i+1,10): if inp[i]==inp[j]: INP[i]+=1 INP[j]+=1 elif inp[i]<inp[j]: INP[j]+=1 else: INP[i]+=1 z = 0 for i in range(9,-1,-1): if z >= 3: break for j in range(0,10): if i == INP[j]: print(inp[j]) z+=1 if z >= 3: break
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s380765298
p00001
Wrong Answer
a=[input() for i in range(10)] a.sort(reverse=True) print(*a[:3],sep='\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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s483200087
p00001
Wrong Answer
heightOfMountains = [] for i in range(1, 11): heightOfMountains.append(int(input())) sorted(heightOfMountains)[-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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s923840712
p00001
Wrong Answer
max = 0 middle = 0 small = 0 x = 0 for i in range(10): x = int(input()) if max < x : middle = max max = x x = 0 elif middle < x : small = middle middle = x x = 0 elif small < x : small = x x = 0 print(max) print(middle) print(small)
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s577345331
p00001
Wrong Answer
max1 = 0 middle = 0 small = 0 x = 0 for i in range(10): x = int(input()) if max1 < x : middle = max1 max1 = x x = 0 elif middle < x : small = middle middle = x x = 0 elif small < x : small = x x = 0 print(max1) print(middle) print(small)
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s861292981
p00001
Wrong Answer
max1 = 0 middle = 0 small = 0 x = 0 for i in range(10): x = int(input()) if max1 < x : middle = max1 max1 = x x = 0 elif middle < x : small = middle middle = x x = 0 elif small < x : small = x x = 0 x = 0 print(max1) print(middle) print(small)
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s584526820
p00001
Wrong Answer
max1 = 0 middle = 0 small = 0 x = 0 for i in range(10): x = int(input()) if max1 < x : middle = max1 max1 = x x = 0 elif middle < x : small = middle middle = x x = 0 elif small <= x : small = x x = 0 x = 0 print(max1) print(middle) print(small)
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s736345483
p00001
Wrong Answer
import sys a = [] for line in sys.stdin: a.append(int(line)) 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s130114657
p00001
Wrong Answer
import sys a = [] for line in sys.stdin: a.append(int(line)) a.reverse() print(a[len(a)-1]) print(a[len(a)-2]) print(a[len(a)-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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s132547142
p00001
Wrong Answer
ls = [] for i in range(0,10): ls.append(int(input())) ls.sort() print(ls[7]) print(ls[8]) print(ls[9])
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s483281167
p00001
Wrong Answer
a = [] for i in range(10): a.append(input()) a.sort() 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s450454969
p00001
Wrong Answer
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s450086208
p00001
Wrong Answer
mountain = [] for _ in range(10): mountain.append(int(input())) mountain.sort() mountain.reverse() print(mountain[0], mountain[1], mountain[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s555819879
p00001
Wrong Answer
# coding: utf-8 # Here your code ! import sys n = [int(input()) for i in range (1,11)] #t = [int(input()) for i in range(n)] n.sort() n.reverse() for j in range (1,4): print(n[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s193559912
p00001
Wrong Answer
if __name__=="__main__": dataset = [] for i in range(10): a = int(input()) dataset.append(a) print(dataset) for j in range(3): print(max(dataset)) dataset.remove(max(dataset))
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s278920461
p00001
Wrong Answer
from sys import stdin ns = [] for n in stdin: ns.append(n) ns.sort(reverse = True) for i in range(3): print(ns[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s735103347
p00001
Wrong Answer
from sys import stdin map(print,sorted([int(l) for l in stdin],reverse=True)[0: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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s175895862
p00001
Wrong Answer
x = int(input().rstrip())
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s635160220
p00001
Wrong Answer
mt = list() for i in range(10): mt.append(int(raw_input())) mt = sorted(mt) for i in range(3): print mt[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s759359357
p00001
Wrong Answer
import sys data = [] for d in sys.stdin: data.append(d) data.sort(reverse=True) for i in xrange(3): print data[i], "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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s579638347
p00001
Wrong Answer
import sys data = [] for d in sys.stdin: data.append(d) data.sort(reverse=True) for i in xrange(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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s594939669
p00001
Wrong Answer
h = [] for i in range(10): h.append(input()) h.sort(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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s768119665
p00001
Wrong Answer
def main(): mountains_list = [int(input()) for n in range(10)] print(list(reversed(sorted(mountains_list)))[:3]) 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s584009857
p00001
Wrong Answer
# -*- coding: utf-8 -*- #a = [input() for i in range(N)] #print a # [a1, a2, a3, ..., aN] import sys a = [] for line in sys.stdin: a.append(int(line)) #print a # [a1, a2, a3, ...] sorted(a, 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s908707253
p00001
Wrong Answer
height = [] while True: try: line = raw_input("") except EOFError: break height.append(int(line)) sorted(height)[: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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s064162315
p00001
Wrong Answer
A = raw_input() B = [int(i) for i in A.split()] sorted(list(B),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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s083223772
p00001
Wrong Answer
n=[] for var in range(0, 10): n.append(int(raw_input())) sorted(n,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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s029606019
p00001
Wrong Answer
n=list() for i in range(0, 10): n.append(int(raw_input())) sorted(n,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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s432351355
p00001
Wrong Answer
n=[] for var in range(0, 10): n.append(int(raw_input())) sorted(n,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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s136891475
p00001
Wrong Answer
# coding: utf-8 rank = [0,0,0] for i in range(10): t = input() if t > rank[0]: rank.insert(0, t) rank.pop() elif t > rank[1]: rank.insert(1, t) rank.pop() elif t > rank[2]: rank.insert(2, t) rank.pop() print rank[0], rank[1], rank[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s240425621
p00001
Wrong Answer
list=[] for i in range(0,10): n = int(raw_input()) list.append(n) print'---------------------' list.sort(reverse=True) for i in range(0,3): print list[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s348461335
p00001
Wrong Answer
import sys a = "" for input in sys.stdin: a += input l = sorted(a.split()) for i in range(len(l)-1,len(l)-4,-1): print int(l[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s816252174
p00001
Wrong Answer
a = [int(input()) for i in range(10)] 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s512183262
p00001
Wrong Answer
a = [int(input()) for i in range(3)] 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s427215583
p00001
Wrong Answer
a = [int(input()) for i in range(10)] 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s879349874
p00001
Wrong Answer
a = [int(input()) for i in range(10)] 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s917380307
p00001
Wrong Answer
a = [input() for i in range(10)] 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s463458198
p00001
Wrong Answer
h=sorted([int(input())for _ in range(10)]) print(h[9:6:-1],sep='\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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s419093050
p00001
Wrong Answer
N = 10 mnts = [] for i in range(N): mnts.append(int(input())) mnts.sort(reverse=True) print(mnts) for mnt in mnts[:3]: print(mnt)
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s413228408
p00001
Wrong Answer
num = 3 mountains = list(map(int, input())) mountains = sorted(mountains, reverse=True) for i in range(num): print(mountains[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s013727943
p00001
Wrong Answer
num = 10 top = 3 mountains = [input() for i in range(num)] mountains = sorted(mountains, reverse=True) for i in range(top): print(mountains[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s803456279
p00001
Wrong Answer
a = [] for i in range(10): n = int(input()) a.append(n) a.sort() 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s405178292
p00001
Wrong Answer
a = [] for i in range(10): n = int(input()) a.append(n) a = [1,3,5,6,8,11,12,14,15,17] 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s553603583
p00001
Wrong Answer
a = [] for i in range(10): n = int(input()) a.append(n) print(*sorted(a, reverse=True)[:3],sep = '¥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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s659795303
p00001
Wrong Answer
data = [] for i in range(0,10): data.append(input()) print() 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s041494663
p00001
Wrong Answer
hills = [input() for _ in range(10)] hills = list(map(int, hills)) hills.sort for i in range(3): print(hills.pop())
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s580247257
p00001
Wrong Answer
m = [int(input()) for _ in range(10)] m.sort() [print(m[-i] for i in range(1, 4))]
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s823194947
p00001
Wrong Answer
def main(): a=[] for i in range(10): a.append(int(input())) a.sort() for j in range(-1, -4, -1): print(a[j], end="")
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s568017389
p00001
Wrong Answer
def main(): a=[] for i in range(10): a.append(int(input())) a.sort() for j in range(-1, -4, -1): print(a[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s534049201
p00001
Wrong Answer
def main(): a=[] for i in range(10): a.append(int(input())) a.sort() for j in range(-1, -4, -1): print(a[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s126867860
p00001
Wrong Answer
#coding:UTF-8 l = [] first = 0 second = 0 third = 0 for num in range(10): x = int(input()) if x > first: third = second second = first first = x elif x > second: third = second second = x elif x > third: thied = x 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s678164159
p00001
Wrong Answer
#coding:UTF-8 first = 0 second = 0 third = 0 for num in range(10): x = int(input()) if x > first: third = second second = first first = x elif x > second: third = second second = x elif x > third: thied = x 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s907823766
p00001
Wrong Answer
first = 0; second = 0; third = 0; for var in range(0,9): N = input() if N>=first: third = second second = first first = N elif N>=second: third = second second = N elif N>=third: third = N 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s922860568
p00001
Wrong Answer
first = 0; second = 0; third = 0; for var in range(0,9): N = input() if N>=first: third = second second = first first = N elif N>=second: third = second second = N elif N>=third: third = N 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s804952772
p00001
Wrong Answer
first = 0; second = 0; third = 0; for var in range(0,9): N = input() if N>first: third = second second = first first = N elif N>second: third = second second = N elif N>third: third = N 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s182179613
p00001
Wrong Answer
"\n".join([str(x) for x in (sorted([input() for i in range(10)])[:-3:-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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s842730451
p00001
Wrong Answer
print '\n'.join([str(x) for x in sorted(input() for i in range(10))])
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s119039250
p00001
Wrong Answer
def aizu_vol_0_001(): height_mountain_lst = [] for i in range(10): height_mountain = int(raw_input()) if height_mountain <= 10000 and height_mountain >= 0: height_mountain_lst.append(height_mountain) height_mountain_lst.sort(reverse = True) print height_mountain_lst[0] print height_mountain_lst[1] print height_mountain_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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s639623599
p00001
Wrong Answer
l = []; for i in range(10): l.append(int(raw_input().strip())) l.sort(); 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s352859529
p00001
Wrong Answer
print sorted(map(lambda x:input(), range(10)), lambda x, y: y - x)[: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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s701871091
p00001
Wrong Answer
list = [] for x in range(10): y=input() list.append(y) list = sorted(list) list.reverse() print 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s688543965
p00001
Wrong Answer
xs = [input() for _ in xrange(3)] xs.sort() for x in xs[: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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s065262768
p00001
Wrong Answer
data = (1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922) m1 = m2 = m3 = 0 for i in data: if m1 < i < 10000: m3 = m2 m2 = m1 m1 = i elif m2 < i < m1: m3 = m2 m2 = i elif m3 < i < m2: m3 = i print m1 print m2 print m3
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s035678770
p00001
Wrong Answer
data = [] for i in range(10): data.append(int(raw_input())) m1 = m2 = m3 = 0 for i in data: if m1 < i < 10000: m3 = m2 m2 = m1 m1 = i elif m2 < i < m1: m3 = m2 m2 = i elif m3 < i < m2: m3 = i print m1 print m2 print m3
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s208324901
p00001
Wrong Answer
data = [] for i in range(10): data.append(int(raw_input("0 < num < 10000 : "))) m1 = m2 = m3 = 0 for i in data: if m1 <= i <= 10000: m3 = m2 m2 = m1 m1 = i elif m2 < i < m1: m3 = m2 m2 = i elif m3 < i < m2: m3 = i print m1 print m2 print m3
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s568182513
p00001
Wrong Answer
data = [] for i in range(10): data.append(int(raw_input())) m1 = m2 = m3 = 0 for i in data: if m1 <= i <= 10000: m3 = m2 m2 = m1 m1 = i elif m2 < i < m1: m3 = m2 m2 = i elif m3 < i < m2: m3 = i print m1 print m2 print m3
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s594914703
p00001
Wrong Answer
data = [] for i in range(10): data.append(int(raw_input())) m1 = m2 = m3 = 0 for i in data: if m1 <= i <= 10000: m3 = m2 m2 = m1 m1 = i elif m2 < i < m1: m3 = m2 m2 = i elif m3 < i < m2: m3 = i print "{}\n{}\n{}".format(m1, m2, m3)
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s394988502
p00001
Wrong Answer
data = [] for i in range(10): data.append(int(raw_input())) m1 = m2 = m3 = 0 for i in data: if 0 <= i <= 10000: if m1 <= i: m3 = m2 m2 = m1 m1 = i elif m2 < i < m1: m3 = m2 m2 = i elif m3 < i < m2: m3 = i print "{}\n{}\n{}".format(m1, m2, m3)
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s995240245
p00001
Wrong Answer
lis = [] for i in xrange(10): lis.append(input()) for a in sorted(lis)[: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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s998175758
p00001
Wrong Answer
print "\n".join(map(str,sorted([input() for x in xrange(10)])[: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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s631177546
p00001
Wrong Answer
from sys import stdin x = [int(input()) for i in range(10)] x.reverse() for i in range(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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s846293580
p00001
Wrong Answer
from sys import stdin x = [int(input()) for i in range(10)] x.sort(reverse=True) for i in range(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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s972522320
p00001
Wrong Answer
for num in sorted([raw_input() for i in range(10)])[-1: -4: -1]: 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s821301909
p00001
Wrong Answer
#coding: UTF-8 num = [] for i in range(10): num.append(input()) num.sort() print num[-3] print num[-2] print num[-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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s672943750
p00001
Wrong Answer
fir=0 sec=0 thi=0 a=input() if a > fir: fir = a else: if a > sec: sec = a else: if a > thi: thi = a print fir print sec print thi
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s222389789
p00001
Wrong Answer
fir=0 sec=0 thi=0 for a in range(0,10): a=input() if a > fir: fir = a else: if a > sec: sec = a else: if a > thi: thi = a print fir print sec print thi
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s286800641
p00001
Wrong Answer
fir=0 sec=0 thi=0 for a in range(0,10): a=input() if a > fir: sec = fir fir = a else: if a > sec: thi = sec sec = a else: if a > thi: thi = a print fir print sec print thi
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s938779256
p00001
Wrong Answer
fir=0 sec=0 thi=0 for a in range(0,10): a=input() if a >= fir: sec = fir fir = a else: if a >= sec: thi = sec sec = a else: if a >= thi: thi = a print fir print sec print thi
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s053069322
p00001
Wrong Answer
fir=0 sec=0 thi=0 for a in range(0,10): a=input() if a >= fir: sec = fir fir = a elif a >= sec: thi = sec sec = a elif a >= thi: thi = a print fir print sec print thi
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s055904782
p00001
Wrong Answer
fir=0 sec=0 thi=0 for a in range(0,10): a=input() if a >= fir: sec = fir thi = sec fir = a elif a >= sec: thi = sec sec = a elif a >= thi: thi = a print fir print sec print thi
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s619933880
p00001
Wrong Answer
import sys heights = [] for line in sys.stdin: heights.append(int(line.rstrip('\n'))) for height in sorted(heights)[: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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s360757531
p00001
Wrong Answer
#!/usr/bin/env python def lot3h(): mounts = [] for i in range(10): mounts.append(int(raw_input())) mounts.sort() mounts.reverse() for i in range(10): print "%d\n" % mounts[i] , return if __name__ == "__main__": lot3h()
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s879243209
p00001
Wrong Answer
x = [] for i in range(3): x.append(input()) x.sort() for j in range(-1,-4,-1): print(x[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s072005676
p00001
Wrong Answer
import sys for i in sorted(map(int,sys.stdin)[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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s607536069
p00001
Wrong Answer
heights = [] for n in range(10): heights.append(int(raw_input())) heights = sorted(heights)[::-1] for h in heights: print h
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s030544909
p00001
Wrong Answer
#!/usr/bin/python import sys array = [0 for i in range(10)] for i in range(10): array[i] = raw_input() for j in range(3): print max(array) + "\n" array.remove(max(array)) sys.exit()
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s463574356
p00001
Wrong Answer
#!/usr/bin/python import sys array = [0 for i in range(10)] for i in range(10): array[i] = raw_input() array.sort() for j in range(3): print array[j] + "\n" sys.exit()
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s245495734
p00001
Wrong Answer
#!/usr/bin/python import sys array = [0 for i in range(10)] for i in range(10): array[i] = raw_input() array.sort() array.reverse() for j in range(3): print array[j] + "\n" sys.exit()
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s013030641
p00001
Wrong Answer
#!/usr/bin/python import sys array = [0 for i in range(10)] for i in range(10): array[i] = raw_input() array.sort() array.reverse() for j in range(3): print str(array[j]) + "\n" sys.exit()
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s814570955
p00001
Wrong Answer
import sys array = [0 for i in range(10)] for i in range(10): array[i] = raw_input() array.sort() array.reverse() for j in range(3): print str(array[j]) sys.exit()
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s277635718
p00001
Wrong Answer
a = [] for i in range(10): a.append(input()) print a for i in range(len(a)): for s in range(i+1,len(a)): if a[i] < a[s]: tmp = a[s] a[s] = a[i] a[i] = tmp for i in range(3): print a[i]
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s271263065
p00001
Wrong Answer
a = [] for item in range(10): a.append(input()) a.sort() min1 = a[0] min2 = a[1] min3 = a[2] print min1 print min2 print min3
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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s427916202
p00001
Wrong Answer
a = [int(raw_input()) for i in xrange(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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s426243553
p00001
Wrong Answer
s = [] for i in xrange(10): s.append(raw_input()) s.sort() for i in xrange(9,7,-1): 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 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>