s_id
stringlengths
10
10
p_id
stringlengths
6
6
u_id
stringlengths
10
10
date
stringlengths
10
10
language
stringclasses
1 value
original_language
stringclasses
11 values
filename_ext
stringclasses
1 value
status
stringclasses
1 value
cpu_time
int64
0
100
memory
stringlengths
4
6
code_size
int64
15
14.7k
code
stringlengths
15
14.7k
problem_id
stringlengths
6
6
problem_description
stringlengths
358
9.83k
input
stringlengths
2
4.87k
output
stringclasses
807 values
__index_level_0__
int64
1.1k
1.22M
s841831490
p00001
u813534019
1477064605
Python
Python
py
Accepted
20
6352
105
heights = sorted([int(input()) for n in xrange(10)]) for idx in range(-1, -4, -1): print heights[idx]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,302
s987563043
p00001
u813534019
1477065008
Python
Python
py
Accepted
10
6424
83
l = sorted([input() for x in xrange(10)], reverse=True) for h in l[:3]: print h
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,303
s001741914
p00001
u950683603
1477098268
Python
Python3
py
Accepted
20
7632
121
ans=[] for i in range (0,10): ans.append(int(input())) ans.sort(reverse=True) for i in range (0,3): print(ans[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,304
s975858437
p00001
u776559258
1477308483
Python
Python3
py
Accepted
20
7692
82
h=[int(input()) for i in range(10)] h.sort(reverse=True) [print(i) for i in h[:3]]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,305
s058207294
p00001
u500396695
1477458337
Python
Python3
py
Accepted
20
7696
89
a = sorted([int(input()) for i in range(10)]) a.reverse() for i in range(3): print(a[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,306
s408220264
p00001
u193012322
1477651411
Python
Python
py
Accepted
20
6440
210
import fileinput def main(): numbers = [] for line in fileinput.input(): numbers.append(int(line)) numbers = sorted(numbers, reverse=True) for n in numbers[0:3]: print n main()
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,307
s116181552
p00001
u766597310
1477654017
Python
Python
py
Accepted
30
6428
192
a = [0, 0, 0, 0] for t in range(10): a[3] = input() for i in range(2, -1, -1): if (a[i] < a[i+1]): a[i], a[i+1] = a[i+1], a[i] for i in range(0, 3): print a[i]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,308
s495898030
p00001
u728700495
1477666692
Python
Python3
py
Accepted
30
7660
82
for i in sorted([int(input()) for _ in range(10)], reverse=True)[:3]: print(i)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,309
s315176606
p00001
u114472050
1477667458
Python
Python3
py
Accepted
10
7672
126
import sys heights = sorted([int(h) for h in sys.stdin], reverse=True) print(heights[0]) print(heights[1]) print(heights[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,310
s970339815
p00001
u659302741
1477675144
Python
Python3
py
Accepted
20
7528
117
hs = [] for i in range(10): hs.append(int(input())) hs.sort(reverse = True) for i in range(3): print(hs[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,311
s403126268
p00001
u149199817
1477914304
Python
Python3
py
Accepted
60
7740
298
# -*- coding: utf-8 -*- import sys def top_k_sort(data, k=3, reverse=True): data.sort(reverse=True) return data[:k] def main(): data = [] for line in sys.stdin: data.append(int(line)) for h in top_k_sort(data): print(h) if __name__ == '__main__': main()
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,312
s439104477
p00001
u166871988
1477922036
Python
Python3
py
Accepted
30
7672
125
mol=[] for i in range(10): mol.append(int(input())) mol.sort(key=None,reverse=True) for i in range(3): print(mol[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,313
s060497394
p00001
u175111751
1478032090
Python
Python3
py
Accepted
30
7724
82
for a in sorted([int(input()) for _ in range(10)], reverse=True)[:3]: print(a)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,314
s780221954
p00001
u873302699
1478155100
Python
Python
py
Accepted
10
6432
143
data_set=[] for i in range(0,10): data_set.append(input()) top=sorted(data_set,reverse=True) for i in range(0,3): print(top[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,315
s532032213
p00001
u886845205
1478195214
Python
Python3
py
Accepted
30
7736
139
import sys a = [] for i in sys.stdin: a.append(int(i.replace("\n", ""))) a.sort(reverse=True) del a[3:] print( "\n".join(map(str, a)))
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,316
s698813888
p00001
u660912567
1478456258
Python
Python3
py
Accepted
30
7680
99
height_list = [int(input()) for i in range(10)] for i in range(1,4): print(sorted(height_list)[-i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,317
s599470351
p00001
u252368621
1478504272
Python
Python3
py
Accepted
20
7648
136
mountain=[] for i in range(10): mountain.append(int(input())) mountain.sort() mountain.reverse() for i in range(3): print(mountain[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,318
s815088566
p00001
u044226657
1478789016
Python
Python3
py
Accepted
20
7632
250
n = [0,0,0,0,0,0,0,0,0,0] for i in range( 0, 10 ): n[i] = int(input()) mv = 0 ma = 0 for i in range( 0, 3 ): for j in range( 0, 10 ): if mv < n[j]: mv = n[j] ma = j print( mv ) n[ma] = -1 mv = 0
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,319
s747859892
p00001
u011621222
1478803916
Python
Python3
py
Accepted
20
7660
111
l = [] for i in range(0,10): l.append(int(input())) l.sort(reverse=True) l=l[:3] for j in l: print(j)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,320
s092587821
p00001
u660912567
1479268105
Python
Python3
py
Accepted
20
7564
145
import sys height_li = [] for i in range(10): height_li.append(int(input())) for i in range(3): print(sorted(height_li,reverse=True)[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,321
s648460347
p00001
u922871577
1479277649
Python
Python
py
Accepted
10
6356
83
A = sorted([int(raw_input()) for _ in xrange(10)]) print A[9] print A[8] print A[7]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,322
s100326018
p00001
u146816547
1479282673
Python
Python
py
Accepted
10
6332
174
# coding: utf-8 #Name: List of Top 3 Hills #Level: 1 #Category: ???????????? #Note: s = [int(raw_input()) for i in range(10)] s.sort() for i in range(3): print s[9-i]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,323
s869452038
p00001
u779577827
1479467720
Python
Python3
py
Accepted
50
7616
80
[print(x) for x in sorted([int(input()) for _ in range(10)], reverse=True)[0:3]]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,324
s396230467
p00001
u328069918
1479468389
Python
Python3
py
Accepted
20
7596
79
[print(y) for y in sorted([int(input()) for x in range(10)], reverse=True)[:3]]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,325
s722781748
p00001
u542645301
1479470839
Python
Python3
py
Accepted
30
7668
80
[print(i) for i in sorted([int(input()) for _ in range(10)], reverse=True)[0:3]]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,326
s962534778
p00001
u680933765
1479476889
Python
Python3
py
Accepted
20
7604
133
# Compatible with Python3 # -*- coding: utf-8 -*- [print(i) for i in sorted([input() for j in range(10)], key=int, reverse=True)[:3]]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,327
s253810656
p00001
u546285759
1479626464
Python
Python3
py
Accepted
60
7648
288
hill = [] while True: try: hill.append(int(input())) except: break for i in range(1, len(hill)): key = hill[i] j = i-1 while j >= 0 and hill[j] < key: hill[j+1] = hill[j] j -= 1 hill[j+1] = key for i in range(3): print(hill[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,328
s091361713
p00001
u292012552
1479789003
Python
Python3
py
Accepted
20
7632
133
heights = [] for _ in range(10): heights.append(int(input())) heights.sort() print(heights[9]) print(heights[8]) print(heights[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,329
s234931805
p00001
u116501200
1480144036
Python
Python3
py
Accepted
20
7636
77
[print(e)for e in sorted([int(input())for _ in range(10)],reverse=True)[0:3]]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,330
s311005625
p00001
u464972055
1480339381
Python
Python3
py
Accepted
20
7628
87
a = [int(input()) for i in range(10)] a.sort() for i in range(1, 4): print(a[-i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,331
s309112551
p00001
u043978098
1480590626
Python
Python3
py
Accepted
20
7696
83
l=[int(input()) for _ in range(10)] [print(x) for x in sorted(l, reverse=True)[:3]]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,332
s067221404
p00001
u123687446
1480649935
Python
Python3
py
Accepted
20
7696
98
mountains = [int(input()) for i in range(10)] for i in sorted(mountains)[7:10][::-1]: print(i)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,333
s858862768
p00001
u166860661
1480769126
Python
Python
py
Accepted
10
6248
137
#coding: utf-8 temp = [] for i in range(10): N = input() temp.append(N) temp.sort() print temp[-1] print temp[-2] print temp[-3]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,334
s730287333
p00001
u301729341
1480858803
Python
Python3
py
Accepted
20
7644
126
High = [] for i in range(10): High.append(int(input())) for i in range(3): print(max(High)) High.remove(max(High))
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,335
s833883921
p00001
u435300817
1480861945
Python
Python3
py
Accepted
20
7636
188
values = [] for i in range(10): values.append(int(input())) top3 = [] for i in range(3): Max = max(values) top3.append(Max) values.remove(Max) for x in top3: print(x)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,336
s851055377
p00001
u811733736
1481116029
Python
Python3
py
Accepted
20
7596
256
if __name__ == '__main__': # ??????????????\??? mountains = [int(input()) for _ in range(10)] # ??????????????? mountains.sort(reverse=True) # ??????????????? print('{0}\n{1}\n{2}'.format(mountains[0], mountains[1], mountains[2]))
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,337
s616105983
p00001
u796112608
1481179902
Python
Python3
py
Accepted
20
7580
98
a = [] for i in range(10): a.append(int(input())) a.sort() print(a[9]) print(a[8]) print(a[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,338
s325967864
p00001
u206656948
1481335168
Python
Python3
py
Accepted
20
7648
136
a = [] for i in range(10): a.append(input()) a1_list = [int(i) for i in a] a1_list.sort() for i in range(3): print(a1_list[9-i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,339
s650793975
p00001
u494314211
1481458164
Python
Python3
py
Accepted
30
7600
105
l=[] for i in range(10): l.append(int(input())) l.sort(reverse=True) print(l[0]) print(l[1]) print(l[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,340
s641393852
p00001
u890722286
1481541780
Python
Python3
py
Accepted
20
7652
95
m = [int(input()) for i in range(10)] m.sort(reverse=True) for i in range(3): print(m[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,341
s001611645
p00001
u873515891
1482677228
Python
Python3
py
Accepted
30
7672
142
# coding: utf-8 N = 10 h = [] for n in range(N): h.append(int(input())) h = sorted(h, reverse = True) for i in range(3): print(h[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,342
s112306146
p00001
u252414452
1482931481
Python
Python
py
Accepted
10
6412
162
import sys heights = [] for height in sys.stdin: heights.append(int(height.rstrip())) heights.sort() heights.reverse() for i in range(3): print heights[i]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,343
s840370634
p00001
u661290476
1482932837
Python
Python3
py
Accepted
20
7720
86
h=sorted([int(input()) for i in range(10)],reverse=True) for i in range(3):print(h[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,344
s220881421
p00001
u078042885
1483418633
Python
Python3
py
Accepted
20
7656
119
a=[] while 1: try: a.append(int(input())) except: break a.sort(reverse=1) for i in range(3):print(a[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,345
s370467487
p00001
u711765449
1483448177
Python
Python3
py
Accepted
20
7648
401
# -*- coding:utf-8 -*- import sys data = [] count = 0 for i in sys.stdin: data.append(int(i)) count = count+1 if count == 10: break N = len(data) m = 100 for i in range(m): for n in range(N-1): a = data[n] b = data[n+1] if a <= b: data[n] = b d...
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,346
s615088453
p00001
u116766943
1483545620
Python
Python
py
Accepted
10
6424
197
def main(): arr = [] for i in range(0,10): arr.append(input()) arr.sort() arr.reverse() for i in range(0,3): print arr[i] if __name__ == '__main__': main()
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,347
s880683981
p00001
u923668099
1483976805
Python
Python3
py
Accepted
20
7672
147
mountains = [] for i in range(10): mountains.append(int(input())) mountains.sort(reverse = True) for i in range(3): print(mountains[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,348
s388308290
p00001
u622250518
1484093836
Python
Python
py
Accepted
10
6396
141
# -*- coding: utf-8 -*- a = [int(raw_input()) for _ in range(10)] #print a b = sorted(a, reverse=True) #print b for c in b[0:3]: print c
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,349
s257016339
p00001
u078042885
1484319133
Python
Python3
py
Accepted
20
7732
70
[print(i) for i in (sorted([int(input()) for _ in range(10)])[:6:-1])]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,350
s982881066
p00001
u319774425
1484483748
Python
Python
py
Accepted
10
6416
515
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: ...
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,351
s658178647
p00001
u923668099
1484972450
Python
Python3
py
Accepted
20
7692
119
mountains = [int(input()) for i in range(10)] mountains.sort(reverse=True) for i in range(3): print(mountains[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,352
s256569459
p00001
u811841526
1485605084
Python
Python3
py
Accepted
20
7608
138
heights = list() for i in range(10): heights.append(int(input())) for height in list(reversed(sorted(heights)))[:3]: print(height)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,353
s879156401
p00001
u043254318
1485708129
Python
Python3
py
Accepted
20
7696
212
import fileinput mountains = [] for cnt in range(10): # for line in fileinput.input(): a = input() mountains.append(int(a)) mountains.sort() print(mountains[9]) print(mountains[8]) print(mountains[7])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,354
s685788251
p00001
u655138261
1486392408
Python
Python3
py
Accepted
20
7736
261
#! /usr/bin/env python # -*- coding: utf-8 -*- def main(): mountains = [] for i in range(10): mountains.append(int(input())) mountains = sorted(mountains, reverse = True) for i in range(3): print(mountains[i]) if __name__ == '__main__': main()
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,355
s777130129
p00001
u519227872
1486400801
Python
Python3
py
Accepted
20
7736
90
import sys m = [int(l) for l in sys.stdin] m.sort() print(m[-1]) print(m[-2]) print(m[-3])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,356
s863487915
p00001
u769829774
1486993584
Python
Python3
py
Accepted
20
7616
163
h = [] for i in range(10): h.append(int(input())) max1 = max(h) h.remove(max1) max2 = max(h) h.remove(max2) max3 = max(h) print(max1) print(max2) print(max3)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,357
s171483548
p00001
u917218626
1487227963
Python
Python3
py
Accepted
20
7648
87
a=[] for i in range(10):a.append(int(input())) a.sort() print(a[9],a[8],a[7],sep='\n');
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,358
s616315756
p00001
u823517752
1487231808
Python
Python3
py
Accepted
30
7604
115
m = [] for i in range(0, 10): m.append(int(input())) m.sort(reverse=True) for i in range(0, 3): print(m[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,359
s098250523
p00001
u630566146
1487492262
Python
Python3
py
Accepted
20
7656
84
for h in sorted([int(input()) for i in range(10)], reverse = True)[:3]: print(h)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,360
s303907758
p00001
u630566146
1487492828
Python
Python3
py
Accepted
20
7712
81
[print(h) for h in sorted([int(input()) for i in range(10)], reverse = True)[:3]]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,361
s707968375
p00001
u301461168
1487737427
Python
Python3
py
Accepted
30
7744
438
height = [0 for i in range(10)] sort_height = [0 for i in range(10)] #set for i in range(10): height[i] = int(input()) #sort for i in range(10): for j in range(10): if height[i] >= sort_height[j]: #????????? for k in range(9, j, -1): sort_height[k] = sort_height...
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,362
s043015624
p00001
u831244171
1487771415
Python
Python3
py
Accepted
20
7660
205
import sys a = list(map(int,sys.stdin.readlines())) for i in range(10): for j in range(i+1,10): if a[i] < a[j]: a[i],a[j] = a[j],a[i] for i in range(3): print(a[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,363
s581993887
p00001
u810591206
1488721172
Python
Python3
py
Accepted
30
7608
126
list = [] for i in range(10): list.append(int(input())) list.sort(reverse = True) for j in range(3): print(list[j])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,364
s565037689
p00001
u459418423
1488856108
Python
Python3
py
Accepted
30
7556
282
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 for i in range(3): print(heights[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,365
s678708145
p00001
u459418423
1488857299
Python
Python3
py
Accepted
20
7628
295
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]) print(heights[1]) print(heights[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,366
s894690754
p00001
u731896389
1489037720
Python
Python3
py
Accepted
30
7604
102
a = [] for i in range(10): a.append(int(input())) a.sort() for j in range(3): print(a[-(j+1)])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,367
s804715181
p00001
u897625141
1489213526
Python
Python3
py
Accepted
20
7588
122
array=[int(input()) for i in range(10)] array.sort() num = len(array) for i in range(num-1,num-4,-1): print(array[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,368
s543553451
p00001
u318658123
1489387483
Python
Python3
py
Accepted
20
7616
252
#coding:utf-8 import sys if __name__ == '__main__': nums = [] for line in sys.stdin: if line == "\n": break else : nums.append(int(line)) for n in sorted(nums, reverse=True)[:3]: print(n)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,369
s877765133
p00001
u921541953
1489392880
Python
Python3
py
Accepted
20
7664
145
mountains = [] [mountains.append(int(input())) for i in range(10)] mountains = sorted(mountains)[::-1] for j in range(3): print(mountains[j])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,370
s268527846
p00001
u623894175
1489396736
Python
Python3
py
Accepted
20
7688
415
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...
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,371
s816271460
p00001
u623894175
1489396981
Python
Python3
py
Accepted
20
7608
150
array = [] for _ in range(10): array.append(int(input())) sorted_array = sorted(array,reverse=True) for i in range(3): print(sorted_array[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,372
s224429001
p00001
u897625141
1489819334
Python
Python3
py
Accepted
30
7636
98
array = [int(input()) for i in range(10)] array.sort() for i in range(9,6,-1): print(array[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,373
s921634541
p00001
u462831976
1489979146
Python
Python3
py
Accepted
20
7576
140
values = [] for i in range(10): v = int(input()) values.append(v) values.sort(reverse=True) for i in range(3): print(values[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,374
s841693889
p00001
u088318049
1490587720
Python
Python3
py
Accepted
20
7808
840
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys def qsort( a ): if not isinstance(a,list): raise TypeError('qsort can only sort \'list\'') if len(a) <= 1: return a p = a[0] for i in range(1,len(a)): if a[0] != a[i]: if a[0] < a[i]: p = a[i] break elif i == len(a)-1: #all are same ...
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,375
s342687596
p00001
u036236649
1490592126
Python
Python3
py
Accepted
20
7724
249
inp = [int(input()) for i in range(10)] m1, m2, m3 = 0, 0, 0 for h in inp: if(h > m1): m3 = m2 m2 = m1 m1 = h elif(h > m2): m3 = m2 m2 = h elif(h > m3): m3 = h print(m1) print(m2) print(m3)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,376
s114182028
p00001
u728901930
1490776755
Python
Python3
py
Accepted
30
7660
101
A=[] for i in range(10): A.append(int(input())) A.sort() A.reverse() for i in range(3): print(A[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,377
s506919790
p00001
u371289566
1491157338
Python
Python3
py
Accepted
30
7660
104
h = [] for _ in range(10): h.append(int(input())) h.sort(reverse=True) for i in range(3): print(h[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,378
s219413688
p00001
u337016727
1491204349
Python
Python3
py
Accepted
30
7620
141
# coding: utf-8 list = [] for i in range(10): list.append(int(input())) slist = sorted(list) for i in range(3): print(slist[9-i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,379
s479428451
p00001
u518711553
1491485664
Python
Python3
py
Accepted
20
7488
119
rank = [0] * 4 for _ in range(10): rank[0] = int(input()) rank.sort() for r in reversed(rank[1:]): print(r)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,380
s490300959
p00001
u208157605
1491804622
Python
Python3
py
Accepted
20
7516
133
mt_list = [] for i in range(10): mt_list.append(int(input())) mt_list.sort(reverse=True) for i in range(3): print(mt_list[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,381
s491792504
p00001
u371539389
1491821083
Python
Python3
py
Accepted
20
7528
319
first=0 second=0 third=0 for i in range(10): mountain=int(input()) if mountain>first: third=second second=first first=mountain elif mountain>second: third=second second=mountain elif mountain>third: third=mountain print(first) print(second) print(third)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,382
s458193533
p00001
u307520683
1491888483
Python
Python
py
Accepted
10
6236
103
a = [input() for i in range(10)] a.sort(reverse=True) #print "answer" for i in range(3): print a[i]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,383
s214816276
p00001
u868716420
1492117066
Python
Python3
py
Accepted
30
7516
101
mountain = [int(input()) for _ in range(10)] mountain.sort() for _ in -1, -2, -3 : print(mountain[_])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,384
s337808590
p00001
u922450532
1492684253
Python
Python3
py
Accepted
30
7640
138
list =[] for i in range(10): a = int(input()) list.append(a) list.sort() list.reverse() for i in range(3): print(list[i])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,385
s058771707
p00001
u723913470
1493370126
Python
Python3
py
Accepted
20
7560
161
#a=list(map(int,input().split())) a=[] for i in range(10): tmp = int(input()) a.append(tmp) b=sorted(a, reverse=True) print(b[0]) print(b[1]) print(b[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,386
s029653534
p00001
u000317780
1493696381
Python
Python3
py
Accepted
30
7640
316
# coding: utf-8 def getint(): return int(input().rstrip()) def main(): ls = [] num_of_mount = 10 num_of_top = 3 for i in range(num_of_mount): ls.append(getint()) ls.sort(reverse=True) for i in range(num_of_top): print(ls[i]) if __name__ == '__main__': main()
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,387
s602116397
p00001
u945345165
1493777019
Python
Python3
py
Accepted
20
7592
121
arr = [] for i in range (10): arr.append(int(input())) arr.sort() arr.reverse() for a in range (3): print(arr[a])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,388
s520668092
p00001
u710016128
1493799474
Python
Python3
py
Accepted
30
7560
124
mt = list() n = 10 for i in range(n): mt.append(int(input())) mt.sort(reverse=True) for j in range(3): print(mt[j])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,389
s737543331
p00001
u717959831
1494289907
Python
Python3
py
Accepted
20
7560
186
f, s, t = 3,2,1 for i in range(10): z = int(input()) if z >= f: f,s,t = z, f, s; elif z>=s: s,t = z,s; elif z>=t: t = z print(f);print(s);print(t)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,390
s373318252
p00001
u923668099
1494496910
Python
Python3
py
Accepted
30
7592
163
import sys def solve(): a = [int(input()) for i in range(10)] a.sort(reverse=True) print(*a[:3], sep='\n') if __name__ == '__main__': solve()
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,391
s467331419
p00001
u362104929
1494575078
Python
Python3
py
Accepted
20
7680
207
def main(): l = [] for _ in range(10): l.append(int(input())) l = sorted(l, reverse=True) for i in range(3): print(l[i]) return None if __name__ == '__main__': main()
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,392
s933485001
p00001
u123596571
1494614472
Python
Python3
py
Accepted
20
7616
108
n = list() for var in range(0,10): n.append(int(input())) n.sort(reverse=True) for i in n[:3]: print(i)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,393
s898555388
p00001
u811773570
1494808520
Python
Python3
py
Accepted
30
7604
93
main = (lambda a: [print(i) for i in a[:3]])(sorted([int(input()) for i in range(10)])[::-1])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,394
s749715681
p00001
u995334180
1494957349
Python
Python
py
Accepted
10
6356
102
a = [] for i in range(10): a.append(input()) a.sort() a.reverse() print a[0] print a[1] print a[2]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,395
s518539791
p00001
u231802041
1495469340
Python
Python
py
Accepted
10
6252
100
#coding:utf-8 l = [int(raw_input()) for i in range(10)] l.sort() for i in range(3): print l[9-i]
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,396
s641079594
p00001
u589276934
1495690989
Python
Python3
py
Accepted
20
7620
239
ranking = [] while True: try: height = int(input()) ranking.append(height) except: break sortedRanking = sorted(ranking, reverse=True) print(sortedRanking[0]) print(sortedRanking[1]) print(sortedRanking[2])
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,397
s471298539
p00001
u922489088
1495794831
Python
Python3
py
Accepted
20
7620
136
import sys l = [] for i in range(10): l.append(int(sys.stdin.readline().rstrip())) for h in sorted(l,reverse=True)[:3]: print(h)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,398
s586924443
p00001
u011621222
1495900114
Python
Python3
py
Accepted
30
7568
105
a = [] for i in range(10): a.append(int(input())) a.sort() print("\n".join(list(map(str,a[9:6:-1]))))
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,399
s621518117
p00001
u151989268
1495908969
Python
Python3
py
Accepted
30
7644
82
for i in sorted([int(input()) for _ in range(10)], reverse=True)[:3]: print(i)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,400
s412417225
p00001
u905313459
1496054656
Python
Python3
py
Accepted
20
7612
115
a = [] for i in range(10): a.append(input()) a = sorted(a, key=int, reverse=True) for i in a[0:3]: print(i)
p00001
<H1>List of Top 3 Hills</H1> <p> There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. </p> <p> Write a program which prints heights of the top three mountains in descending order. </p> <H2>Input</H2> <pre> Height of mountain 1 Height of mountain 2 Height of mountain 3...
1819 2003 876 2840 1723 1673 3776 2848 1592 922
3776 2848 2840
1,401