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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 thirdMountainHeigh...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
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 secondMountainH...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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): ...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
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): ...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
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): ...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
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...
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...
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...
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...
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...
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...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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: ...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
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...
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...
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...
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...
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...
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...
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...
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...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
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...
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...
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...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
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...
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...
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...
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...