Dataset Viewer
Auto-converted to Parquet
submission_id
string
problem_id
string
status
string
code
string
input
string
output
string
problem_description
string
s476257913
p00001
Wrong Answer
mount_list = [] for i in range(1, 11): mount_list.append(input("Height of mountain" + str(i))) mount_list.sort(reverse = True) for sorted_mounts in mount_list: print(sorted_mounts)
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>
s669636125
p00001
Wrong Answer
mount_list = [] for i in range(1, 11): mount_list.append(int(input("Height of mountain" + str(i) + ":"))) mount_list.sort(reverse = True) for sorted_mounts in mount_list: print(sorted_mounts)
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>
s668718514
p00001
Wrong Answer
if __name__ == '__main__': a = [1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922] print(sorted(a, reverse=True)[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>
s977121104
p00001
Wrong Answer
l = [] for i in range(10): l.append(int(input())) l.sort() for i in range(3): print(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>
s354838143
p00001
Wrong Answer
def __main(): mountains = [] numOfMoun = 10 for c in range(numOfMoun): mountains.insert(c,int(input('Height of the mountain '))) sorted_mounts = sorted(mountains,reverse=True) print(sorted_mounts[0]) print(sorted_mounts[1]) print(sorted_mounts[2]) __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>
s786284892
p00001
Wrong Answer
def __main(): mountains = [] numOfMoun = 10 for c in range(numOfMoun): mountains.insert(c,int(input('Height of the mountain '))) sorted_mounts = sorted(mountains,reverse=True) for k in range(3): print(sorted_mounts[k]) __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>
s425739582
p00001
Wrong Answer
mh=[] for i in range(1,11): mh.append(int(input())) mh.sort(reverse=True) print(mh[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>
s609084189
p00001
Wrong Answer
Height = [0]*10 for i in range (10): Height[i] = int(input("Height of mountain " + str(i+1) + ":")) Height.sort() Height.reverse() for j in range(3): print(Height[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>
s781889873
p00001
Wrong Answer
# -*- coding: utf-8 -*- while True: try: a, b = (int(s) for s in input().split()) print len(str(a + b)) except: 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>
s640065067
p00001
Wrong Answer
# -*- coding: utf-8 -*- while True: try: a, b = {int(s) for s in input().split()} print len(str(a + b)) except: 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>
s292072645
p00001
Wrong Answer
mountains = [] for i in range(10): m = int(input()) mountains.append(m) mountains.sort() for i in range(3): 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>
s021362759
p00001
Wrong Answer
hs=[list(map(int, input().split())) for _ in range(10)] h=sorted(hs,reverse=True)[:3] print(h[0]) print(h[1]) print(h[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>
s466661940
p00001
Wrong Answer
l=[] l.append(int(input())) l.append(int(input())) l.append(int(input())) l.append(int(input())) l.append(int(input())) l.append(int(input())) l.append(int(input())) l.append(int(input())) l.append(int(input())) l.append(int(input())) l.sort() l.reverse() print l[0],l[1],l[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>
s398057391
p00001
Wrong Answer
#!/usr/bin/env python3 #coding: utf-8 # Volume0 - 0001 (http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0001) li = [] for x in range(10): y = input() li.append(y) li.reverse() for y in range(3): print(li[y])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s889389732
p00001
Wrong Answer
#!/usr/bin/env python3 #coding: utf-8 # Volume0 - 0001 (http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0001) li = [] for x in range(10): y = input() li.append(y) li.sort() li.reverse() for y in range(3): print(li[y])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s225227665
p00001
Wrong Answer
#!/usr/bin/env python3 #coding: utf-8 # Volume0 - 0001 (http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0001) li = [] for x in range(10): s = input() int(s) li.append(s) li.sort() li.reverse() for y in range(3): print(li[y])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s324109094
p00001
Wrong Answer
#!/usr/bin/env python3 #coding: utf-8 # Volume0 - 0001 (http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0001) li = [] for x in range(3): s = input() s = int(s) li.append(s) li.sort() li.reverse() for y in range(3): print(li[y])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s912396630
p00001
Wrong Answer
def main(): n = 10 num = 0 mtns = [] final = [] while n > 0: num = int(raw_input()) mtns.append(num) n -= 1 mtns.sort() mtns.reverse() return mtns print 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>
s414945599
p00001
Wrong Answer
m=[input() for i in range(10)] m.sort() m.reverse() print("{0}\n{1}\n{2}".format(m[0],m[1],m[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>
s279270097
p00001
Wrong Answer
# coding: UTF-8 inputs=[] for i in range(1,10): inputs.append(input()) inputs.sort(reverse=True) for i in range(0,3): print inputs[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>
s736157512
p00001
Wrong Answer
spam = [int(input()) for i in range(0, 10)] spam.sort() spam.reverse() for i in range(1, 3): print('{}'.format(spam[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>
s958597185
p00001
Wrong Answer
1819 2003 876 2840 1723 1673 3776 2848 1592 922
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>
s437149641
p00001
Wrong Answer
a = 0 b = 0 c = 0 for i in range(0, 10): inputNum = int(raw_input()) if a < inputNum: a = inputNum continue elif b < inputNum: b = inputNum continue elif c < inputNum: c = inputNum print a print b print c
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>
s859147541
p00001
Wrong Answer
for i in range(0, 10): inputNum = int(raw_input()) if i == 0: a = inputNum b = inputNum c = inputNum if a < inputNum: a = inputNum continue elif b < inputNum: b = inputNum continue elif c < inputNum: c = inputNum print a print b print c
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>
s564259013
p00001
Wrong Answer
a=[int(input()) for i in range(10)] a.sort() a.reverse() print(a[0: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>
s536274981
p00001
Wrong Answer
firstMountainHeight = 0 secondMountainHeight = 0 thirdMountainHeight = 0 while 1: try : i = int(raw_input()) if firstMountainHeight < i : firstMountainHeight = i print"first compare" elif secondMountainHeight < i : secondMountainHeight = i print"second compare" elif thirdMountainHeight < i : thirdMountainHeight = i print"third compare" except: print"%d" % (firstMountainHeight) print"%d" % (secondMountainHeight) print"%d" % (thirdMountainHeight) 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>
s129684396
p00001
Wrong Answer
firstMountainHeight = 0 secondMountainHeight = 0 thirdMountainHeight = 0 while 1: try : i = int(raw_input()) if firstMountainHeight < i : print"first compare" thirdMountainHeight = secondMountainHeight secondMountainHeight = firstMountainHeight firstMountainHeight = i elif secondMountainHeight < i : print"second compare" thirdMountainHeight = secondMountainHeight secondMountainHeight = i elif thirdMountainHeight < i : print"third compare" thirdMountainHeight = i except: print"%d" % (firstMountainHeight) print"%d" % (secondMountainHeight) print"%d" % (thirdMountainHeight) 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>
s569627732
p00001
Wrong Answer
j = [] for i in range(10) : j.append(int(input())) j.reverse() for k in range(3) : print(j[k])
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>
s431690791
p00001
Wrong Answer
if __name__ == "__main__": a = [] for i in range(0,10): val = input() int(val) a.append(val) a.reverse() for i in range(0,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>
s322307301
p00001
Wrong Answer
if __name__ == "__main__": a = [] for i in range(0,10): val = input() a.append(int(val)) a.sort() a.reverse() for i in range(0,3): print(a[i]) 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>
s142939560
p00001
Wrong Answer
inputList = [] while True: try: num = int(input()) except EOFError: break inputList.append(num) inputList.sort() for x in range(len(inputList) - 1, -1, -1): print(inputList[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>
s854638558
p00001
Wrong Answer
# -*- coding:utf-8 -*- def main(): List=[] for i in range(10): a=input() List.append(a) List.sort(reverse=True) print(List[0]) print(List[1]) print(List[2]) if __name__ == '__main__': main()
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s698381261
p00001
Wrong Answer
lis=[]; for i in range(10): h=int(input()); lis.append(h); for i in range(10): for j in range(10): if lis[i]<lis[j]: a=lis[i]; lis[i]=lis[j]; lis[j]=a; for i in range(3): print(lis[i]);
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s434965304
p00001
Wrong Answer
input = [12,123,1221,5231,412,5123,4512,21234,21351,1143] input.sort() for x in range(1,4): print input[-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>
s865339412
p00001
Wrong Answer
mt = [] for i in range(10): mt.append(input()) print(mt.pop(mt.index(max(mt)))) print(mt.pop(mt.index(max(mt)))) print(mt.pop(mt.index(max(mt))))
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>
s937883861
p00001
Wrong Answer
mt = [] for i in range(10): mt.append(input()) print(mt.pop(mt.index(max(mt)))) print(mt.pop(mt.index(max(mt)))) print(mt.pop(mt.index(max(mt))))
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>
s926125786
p00001
Wrong Answer
mt = [] for i in range(10): mt.append(input()) print(str(mt.pop(mt.index(max(mt))))) print(str(mt.pop(mt.index(max(mt))))) print(str(mt.pop(mt.index(max(mt)))))
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>
s522155242
p00001
Wrong Answer
x = [input() for _ in range(10)] x.reverse() for i in range(3): print x[i]
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s761715457
p00001
Wrong Answer
x = [input() for _ in xrange(10)] x.reverse() for i in xrange(3): print x[i]
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s811583870
p00001
Wrong Answer
s=[int(input(x)) for x in range(10)] print(sorted(s)[-1]) print(sorted(s)[-2]) print(sorted(s)[-3])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s715349977
p00001
Wrong Answer
mt=[] for i in range(10): mt.append(int(input())) high=[0,0,0] for i in range(10): if mt[i] > high[0]: high=[mt[i]]+high[:2] elif mt[i] > high[1]: high=[high[0]]+[mt[1]]+[high[1]] elif mt[i] > high[2]: high=high[:2]+[mt[i]] print(high,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>
s413807151
p00001
Wrong Answer
height=[] for i in xrange(10): mountain=input() height.append(mountain) height.sort() for i in xrange(3): print(height[i])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s696718733
p00001
Wrong Answer
height=[] for i in xrange(10): mountain=input() height.append(mountain) height.reverse() for i in xrange(3): print(height[i])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s773769388
p00001
Wrong Answer
mtheight = [] for i in xrange(0,10): mtheight.append(raw_input()) mtheight.sort() mtheight.reverse() for i in xrange(0,2): print(mtheight[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>
s753529354
p00001
Wrong Answer
m=[] for i in range(10): x = raw_input() m.append(x) m.sort() m.reverse() for i in range(0,3): print m[i]
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s290367265
p00001
Wrong Answer
import sys m=[] for i in range(10): x = raw_input() m.append(x) m.sort() m.reverse() for i in range(0,3): print m[i]
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s237936682
p00001
Wrong Answer
# -*- coding: utf-8 -*- hills_list = [] while len(hills_list) != 10: hills = raw_input() if (10000 >= int(hills)) and (int(hills) >= 0): hills_list.append(int(hills)) hills_list.sort() print hills_list[0] print hills_list[1] print hills_list[2]
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s220660136
p00001
Wrong Answer
def main(): a = [] for i in range(10): a.append(input()) a.sort() a.reverse() for i in range(3): print(i) if __name__ == '__main__': main()
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s197860542
p00001
Wrong Answer
def main(): a = [] for i in range(10): a.append(int(input())) a.sort() a.reverse() for i in range(3): print(i) if __name__ == '__main__': main()
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s386853863
p00001
Wrong Answer
yama = [] for i in range(10): n = input() yama.append(n) yamaLen = len(yama) yamaLen -= 1 print "%d" % (yama[yamaLen]) yamaLen -= 1 print "%d" % (yama[yamaLen]) yamaLen -= 1 print "%d" % (yama[yamaLen])
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>
s289146713
p00001
Wrong Answer
yama = [] for i in range(10): n = input() yama.append(n) sorted(yama) print yama[9] print yama[8] print yama[7]
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s850568732
p00001
Wrong Answer
hight = [] for i in range(10): hight.append(int(input())) hight.sort() print(hight[0]) print(hight[1]) print(hight[2])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s300560716
p00001
Wrong Answer
print("Hello,world!")
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>
s317225189
p00001
Wrong Answer
# -*- coding:utf-8 -*- first = 0 second = 0 third = 0 i = 0 for i in range(0,9): line = int(input()) if first < int(line): third = second second = first first = int(line) elif second < int(line): third = second second = int(line) elif third < int(line): third = int(line) print(first) print(second) print(third)
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s594064461
p00001
Wrong Answer
# -*- coding:utf-8 -*- first = 0 second = 0 third = 0 i = 0 for i in range(0,9): line = int(input()) if first < int(line): third = second second = first first = int(line) elif second < int(line): third = second second = int(line) elif third < int(line): third = int(line) print(first) print(second) print(third)
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s880819545
p00001
Wrong Answer
# -*- coding:utf-8 -*- first = 0 second = 0 third = 0 i = 0 for i in range(0,9): line = int(input()) if first < int(line): third = second second = first first = int(line) elif second < int(line): third = second second = int(line) elif third < int(line): third = int(line) print(first) print(second) print(third) 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>
s336080406
p00001
Wrong Answer
n = 0 list = [] while n < 10: x = input() list.append(x) n += 1 list.sort() print(list[7]) print(list[8]) print(list[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>
s605917913
p00001
Wrong Answer
n = 0 list = [] while n < 10: x = input() list.append(x) n += 1 list.sort() print(list[9]) print(list[8]) print(list[7])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s744644983
p00001
Wrong Answer
a = [input() for i in range(10)] a.sort() print a[0],a[1],a[2]
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s258123386
p00001
Wrong Answer
a = [input() for i in range(10)] a.reverse() print a[0],a[1],a[2]
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s187716096
p00001
Wrong Answer
a = [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>
s926977486
p00001
Wrong Answer
height = [ 1819,2003,876,2840,1723,1673,3776,2848,1592,922 ] top = height[0] for x in height : if top < x: top = x height.remove(top); second = height[0] for x in height : if second < x: second= x height.remove(second); third = height[0] for x in height : if third < x: third = x print(top) 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>
s211199532
p00001
Wrong Answer
a = [] for i in range(10): a.append(input()) a.sort() a.reverse() 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>
s269662177
p00001
Wrong Answer
a = [] for i in range(10): a.append(input()) a.sort() a.reverse() print 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>
s250226615
p00001
Wrong Answer
import sys a = [] for line in sys.stdin: a.append(int(line)) a.sort() print(str(a[0])) print(str(a[1])) print(str(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>
s814007809
p00001
Wrong Answer
lis=[] for i in range(10): lis.append(input()) for i,j in enumerate(sorted(lis,reverse=True)): print(i) if i==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>
s457832544
p00001
Wrong Answer
lis=[] for i in range(10): lis.append(input()) for i,j in enumerate(sorted(lis,reverse=True)): print(j) if i==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>
s067976199
p00001
Wrong Answer
lis=[] for i in range(10): lis.append(input()) for i,j in enumerate(sorted(lis,reverse=True)): print(j) if i==2: 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>
s919388359
p00001
Wrong Answer
lis=[] for i in range(10): lis.append(input()) for i in enumerate(sorted(lis,reverse=True)[:3]): print(i)
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s371812091
p00001
Wrong Answer
lis=[] for i in range(10): lis.append(input()) for i in sorted(lis,reverse=True)[:3]: print(i)
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s391955661
p00001
Wrong Answer
# your code goes here import sys a=[] for line in sys.stdin: tmp=line.split(" ") a.append(tmp[-1]) a.sort(reverse=True) for i in a: 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>
s299413108
p00001
Wrong Answer
# your code goes here import sys a=[] for line in sys.stdin: line.rstrip('rn') tmp=line.split(" ") a.append(int(tmp[-1])) a.sort(reverse=True) for i in a: if i>=0 and i<=10000: 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>
s056549925
p00001
Wrong Answer
ans=[] for i in range (0,10): ans.append(input()) ans.sort(reverse=True) for i in range (0,3): print(ans[i])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s797800118
p00001
Wrong Answer
# -*- coding: utf-8 -*- import sys def top_k_sort(data, k=3, reverse=True): data.sort(reverse=True) return data[:k] def main(): argv = sys.argv argc = len(argv) data = [int(v) for v in argv[1:]] for h in top_k_sort(data): print(h) 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>
s565104464
p00001
Wrong Answer
data_set=[] for i in range(0,10): data_set.append(raw_input()) top=sorted(data_set,reverse=True) for i in range(0,3): print(top[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>
s148230190
p00001
Wrong Answer
s = [raw_input() for i in xrange(10)] s.sort() for i in range(3): print s[9-i]
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s525825394
p00001
Wrong Answer
import sys [print(d) for i, d in enumerate(sorted([i for i in sys.stdin], reverse=True)) if i < 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>
s104489502
p00001
Wrong Answer
[print(d) for i, d in enumerate(sorted([i for i in input() for _ in range(10)], reverse=True)) if i < 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>
s944336489
p00001
Wrong Answer
[print(i) for i, in sorted([i for i in input() for _ in range(10)], 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>
s491852741
p00001
Wrong Answer
High = [] for i in range(10): High.append(input()) High.sort(reverse = True) for i in range(3): print(High[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>
s578798812
p00001
Wrong Answer
height = [] for i in range(10): height.append(int(input())) height.sort() for i in range(3): print(height[i])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s928787854
p00001
Wrong Answer
a = [] for i in range(10): a.append(int(input())) a.sort print(a[9]) print(a[8]) print(a[7])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s451692548
p00001
Wrong Answer
import sys heights = [] for height in sys.stdin: heights.append(int(height)) heights.reverse() for i in range(3): print heights[i]
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s922437874
p00001
Wrong Answer
import sys heights = [] for height in sys.stdin: heights.append(int(height.rstrip())) heights.reverse() for i in range(3): print heights[i]
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s140090521
p00001
Wrong Answer
def calc_mount_1(height_list): for i in range(len(height_list)): for i in range(len(height_list)-1): if height_list[i+1] < height_list[i]: tmp = height_list[i+1] height_list[i+1] = height_list[i] height_list[i] = tmp else: break return height_list N = 10 l = [input() for i in range(N)] answer_array = calc_mount_1(l) print "%d" % answer_array[-1] print "%d" % answer_array[-2] print "%d" % answer_array[-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>
s796627904
p00001
Wrong Answer
#! /usr/bin/env python # -*- coding: utf-8 -*- def main(): mountains = [] for i in range(3): mountains.append(int(input())) mountains = sorted(mountains, reverse = True) for i in range(3): print(mountains[i]) if __name__ == '__main__': main()
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s486220738
p00001
Wrong Answer
#! /usr/bin/env python # -*- coding: utf-8 -*- def main(): mountains = [] for i in range(3): mountains.append(input()) mountains = sorted(mountains, reverse = True) for i in range(3): print(mountains[i]) if __name__ == '__main__': main()
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s625386379
p00001
Wrong Answer
m = [] for i in range(0, 10): m.append(input()) m.sort(reverse=True) for i in range(0, 3): print(m[i])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s102280834
p00001
Wrong Answer
list = [] for i in range(10): list.append(input()) list.sort(reverse = True) 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>
s215868140
p00001
Wrong Answer
list = [] for i in range(10): list.append(input()) list.sort(reverse = True) for i in range(3): print(int(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>
s969366821
p00001
Wrong Answer
heights = [] for i in range(10): heights.append(int(input())) for i in range(10): for j in range(i,10): if (heights[j] > heights[i]): w = heights[i] heights[i] = heights[j] heights[j] = w print(heights[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>
s798044546
p00001
Wrong Answer
Array = [] for i in range(10): Array.append(int(input())) Anum = len(Array) for i in range(Anum-1,Anum-4,-1): print(Array[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>
s229490058
p00001
Wrong Answer
def quicksort(array): if len(array) < 2: return array else: pivot = array[0] less = [i for i in array[1:] if i <= pivot] greater = [i for i in array[1:] if i > pivot] return quicksort(less) + [pivot] + quicksort(greater) array = [] for _ in range(10): array.append(int(input('input integer'))) sorted_array = quicksort(array) for i in range(3): print(sorted_array[9-i])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s186914114
p00001
Wrong Answer
# coding: utf-8 list = [] for i in range(10): list.append(int(input())) slist = sorted(list) for i in range(3): print(slist[i+1])
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
s705078863
p00001
Wrong Answer
from heapq import heappush, heappop import sys def heapsort(itr): h=[] [heappush(h, int(val)) for val in itr] return [heappop(h) for i in range(len(h))] def rep(s): return s.strip() l = heapsort(list(map(rep, sys.stdin.readlines()))) l.reverse() print(str(l[0])+' '+str(l[1])+' '+str(l[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>
s151284087
p00001
Wrong Answer
from heapq import heappush, heappop def heapsort(itr): h=[] [heappush(h, val) for val in itr] return [heappop(h) for i in range(len(h))] def rep(s): return s.strip() l=[] lap=l.append while True: try: lap(int(input())) except EOFError: break l = heapsort(l) l.reverse() print(str(l[0])+' '+str(l[1])+' '+str(l[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>
s544669702
p00001
Wrong Answer
a=[] for i in range(10): tmp = input() a.append(tmp) b=sorted(a, reverse=True) print(b[0]) print(b[1]) print(b[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>
s336534662
p00001
Wrong Answer
mt = list() n = 10 for i in range(n): mt.append(int(input())) mt.sort(reverse=True) print(mt[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>
s056775437
p00001
Wrong Answer
l=[] for _ in range(10): l.append(int(raw_input())) print sorted(l,reverse=True)
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>
s638681747
p00001
Wrong Answer
l=[] for _ in range(10): l.append(int(raw_input())) sorted(l,reverse=True) for n in range(9): print l[0]
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3 . . Height of mountain 10 </pre> <h2>Constraints</h2> <p> 0 &le; height of mountain (integer) &le; 10,000 </p> <H2>Output</H2> <pre> Height of the 1st mountain Height of the 2nd mountain Height of the 3rd mountain </pre> <H2>Sample Input 1</H2> <pre> 1819 2003 876 2840 1723 1673 3776 2848 1592 922 </pre> <H2>Output for the Sample Input 1</H2> <pre> 3776 2848 2840 </pre> <H2>Sample Input 2</H2> <pre> 100 200 300 400 500 600 700 800 900 900 </pre> <H2>Output for the Sample Input 2</H2> <pre> 900 900 800 </pre>
End of preview. Expand in Data Studio
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)

This is a programming problem-solving dataset extracted from CodeNet, containing three different scale versions of the dataset.

This dataset contains programming problems and their solutions extracted from the CodeNet platform. Each sample includes:

  • submission_id: Submission ID
  • problem_id: Problem ID
  • status: Submission status (e.g., "Accepted")
  • code: Solution code
  • input: Test input
  • output: Expected output
  • problem_description: Problem description

Dataset Versions

  • 'tiny': A small subset with deduplicated submissions
  • 'normal': A subset with deduplicated submissions
  • 'full': Complete dataset without deduplication
Downloads last month
36