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
s152452383
p00001
u421983421
1496060248
Python
Python
py
Accepted
10
6316
142
hillheight = [] for i in range(0, 10): hillheight.append(int(raw_input())) hillheight.sort() for i in range(0, 3): print(hillheight[-1-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,402
s052113091
p00001
u602903519
1496584353
Python
Python3
py
Accepted
30
7536
131
list=list() for i in range(10): t=input() list.append(int(t)) list.sort(reverse=True) 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,403
s776468696
p00001
u589276934
1496637282
Python
Python3
py
Accepted
10
7640
238
# coding: utf-8 mountains = [] for i in range(10): mountains.append(int(input())) outputCount = 3 for height in list(reversed(sorted(mountains))): print(height) outputCount -= 1 if outputCount == 0: break
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,404
s429082702
p00001
u342125850
1496747544
Python
Python3
py
Accepted
20
7624
127
data = [] for i in range(10): data.append(int(input())) data = sorted(data) print(data[-1]) print(data[-2]) print(data[-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,405
s847721795
p00001
u440180827
1496821600
Python
Python3
py
Accepted
20
7660
115
m = [0 for i in range(10)] for i in range(10): m[i] = int(input()) m.sort() print(m[9]) print(m[8]) print(m[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,406
s097717258
p00001
u837811962
1497065714
Python
Python
py
Accepted
10
6292
215
m1 = 0;m2 = 0;m3 = 0 for i in range(1,11): m = int(input()) if m>=m1: m3 = m2;m2 = m1;m1 = m elif m2<=m<m1: m3 = m2;m2 = m elif m3<=m<m2: m3 = m 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,407
s714514925
p00001
u568287817
1497400574
Python
Python3
py
Accepted
30
7648
190
import sys a = [] for i in range(10): a.append(int(input())) #num = [1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922] a.sort(reverse = True) 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,408
s459982723
p00001
u928051788
1497723263
Python
Python3
py
Accepted
30
7664
97
s=[] for i in range(10): s.append(int(input())) 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,409
s998751919
p00001
u387731924
1498022897
Python
Python3
py
Accepted
20
7540
130
lis=list() for a in range(1,11): num=int(input()) lis.append(num) lis.sort() for va in range(9,6,-1): print(lis[va])
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,410
s002946064
p00001
u731290703
1498084316
Python
Python3
py
Accepted
20
7612
140
lists = [] for i in range(10): a = int(input()) lists.append(a) f = sorted(lists, reverse = True) for i in range(3): print(f[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,411
s535362378
p00001
u584935933
1498145774
Python
Python3
py
Accepted
20
7648
498
a=[] for i in range(0,10): a.append(input()) inp = list(map(int,a)) INP=[0,0,0,0,0,0,0,0,0,0] for i in range(0,10): for j in range(i+1,10): if inp[i]<inp[j]: INP[j]+=1 elif inp[i]>inp[j]: INP[i]+=1 else: INP[i]+=1 INP[j]+=1 z = 0 for 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,412
s968055780
p00001
u144068724
1499014366
Python
Python3
py
Accepted
20
7724
175
# coding: utf-8 # Here your code ! mount = [int(input()) for i in range(10)] a = max(mount) mount.remove(a) b = max(mount) mount.remove(b) print(a) print(b) print(max(mount))
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,413
s244934112
p00001
u503263570
1499048139
Python
Python3
py
Accepted
20
7680
114
a=[int(input()) for i in range(10)] a.sort(reverse=True) for i, iv in enumerate(a): print(iv) if i >= 2: break
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,414
s739786550
p00001
u340500592
1499402994
Python
Python3
py
Accepted
20
7664
162
heightOfMountains = [] for i in range(1, 11): heightOfMountains.append(int(input())) heightOfMountains.sort() for i in range(1, 4): print(heightOfMountains[-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,415
s882675079
p00001
u184989919
1499583961
Python
Python3
py
Accepted
20
7656
173
def ListofTopHills(): h=[] for i in range(10): h.append(int(input())) h=sorted(h) for i in range(3): print(h[9-i]) ListofTopHills()
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,416
s646981858
p00001
u490583481
1499612110
Python
Python
py
Accepted
10
6440
245
def get_input(): while True: try: yield ''.join(raw_input()) except EOFError: break if __name__ == '__main__': l = map(int, list(get_input())) for elem in sorted(l)[:-4:-1]: print elem
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,417
s804982567
p00001
u501510481
1500021402
Python
Python3
py
Accepted
20
7696
132
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,418
s534000808
p00001
u498511622
1500080135
Python
Python3
py
Accepted
30
7536
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,419
s891056906
p00001
u498511622
1500080456
Python
Python3
py
Accepted
20
7656
136
mountain=[] for s in range(0,10): mountain.append(int(input())) mountain.sort(reverse=True) for s in range(0,3): print(mountain[s])
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,420
s040232397
p00001
u546285759
1500178241
Python
Python3
py
Accepted
20
7700
63
print(*sorted([int(input()) for _ in [0]*10])[:6:-1], 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,421
s821185478
p00001
u914146430
1500342745
Python
Python3
py
Accepted
20
7628
104
m_h=[int(input()) for i in range(10)] m_h.sort(reverse=True) print(m_h[0]) print(m_h[1]) print(m_h[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,422
s474118327
p00001
u914146430
1500342962
Python
Python3
py
Accepted
20
7636
104
m_h=[int(input()) for i in range(10)] m_h.sort(reverse=True) print(m_h[0]) print(m_h[1]) print(m_h[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,423
s521298732
p00001
u531592024
1500454424
Python
Python3
py
Accepted
20
7612
122
import sys a = [] for line in sys.stdin: a.append(int(line)) a.sort() a.reverse() print(a[0]) print(a[1]) print(a[2])
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,424
s940575905
p00001
u130855721
1500965144
Python
Python3
py
Accepted
20
7596
160
height =[] inp = "" for i in range(0,10): inp = input() height.append(int(inp)) height.sort(reverse=True) for i in range(0,3): print(str(height[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,425
s629805379
p00001
u369093003
1501415067
Python
Python3
py
Accepted
30
7688
346
l = [] a = int(input()) b = int(input()) c = int(input()) d = int(input()) e = int(input()) f = int(input()) g = int(input()) h = int(input()) i = int(input()) j = int(input()) l.append(a) l.append(b) l.append(c) l.append(d) l.append(e) l.append(f) l.append(g) l.append(h) l.append(i) l.append(j) l.sort() print(l[-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,426
s898880183
p00001
u350064373
1501480706
Python
Python3
py
Accepted
20
7644
106
ls = [] for i in range(0,10): ls.append(int(input())) ls.sort() print(ls[9]) print(ls[8]) print(ls[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,427
s615920175
p00001
u027634846
1501482884
Python
Python3
py
Accepted
20
7708
118
mounts = [int(input()) for i in range(1,11)] mounts.sort() print(mounts.pop()) print(mounts.pop()) print(mounts.pop())
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,428
s144793363
p00001
u354053070
1501673853
Python
Python3
py
Accepted
30
7656
110
h = [] for i in range(10): h.append(int(input())) h.sort(reverse=True) print(h[0]) print(h[1]) print(h[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,429
s565782319
p00001
u957028788
1501971181
Python
Python3
py
Accepted
20
7640
110
data = [] for i in range(1,11): h = int(input()) data.append(h) for i in sorted(data)[::-1][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,430
s697544738
p00001
u724606305
1502270360
Python
Python3
py
Accepted
20
7648
109
u = [] for i in range(10): u.append(int(input())) u.sort(reverse=True) for i in range(3): print(u[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,431
s021152399
p00001
u821624310
1502455221
Python
Python3
py
Accepted
20
7644
116
height = [int(input()) for i in range(10)] sort = sorted(height, reverse=True) for i in range(3): print(sort[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,432
s907644629
p00001
u988834390
1502716499
Python
Python3
py
Accepted
20
7652
118
spam=[] for i in range(10): spam.append(int(input())) spam.sort() print(spam[-1]) print(spam[-2]) print(spam[-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,433
s254331958
p00001
u214404619
1502746852
Python
Python3
py
Accepted
20
7588
117
a = []; for i in range(0, 10): a.append(int(input())); a.sort(reverse = True); 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,434
s043147008
p00001
u267909338
1502762587
Python
Python3
py
Accepted
30
7660
179
lists = [] for x in range (0, 10): num = int(input()) lists.append(num) results = sorted(lists, reverse = True) print(results[0]) print(results[1]) print(results[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,435
s750947822
p00001
u234052535
1502787028
Python
Python3
py
Accepted
20
7644
137
line = [0]*10 for i in range(0, 10): line[i] = int(input()) line.sort(reverse=True, key=int) for i in range(0, 3): print(line[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,436
s824986832
p00001
u551456712
1502847327
Python
Python3
py
Accepted
30
7668
99
rank = sorted([int(input()) for i in range(10)], reverse=True) print('\n'.join(map(str, rank[: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,437
s469159937
p00001
u299798926
1502854048
Python
Python3
py
Accepted
20
7652
95
N=10 A=[int(input()) for i in range(N)] A.sort(reverse=True) 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,438
s427686373
p00001
u471400255
1502860106
Python
Python3
py
Accepted
20
7636
140
mylist = [] for i in range(10): mylist.append(int(input())) mylist.sort(reverse=True) print(mylist[0]) print(mylist[1]) print(mylist[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,439
s989414987
p00001
u624454021
1502862922
Python
Python3
py
Accepted
20
7652
97
a = [(int)(input()) for i in range(10)] for i in range(3): print(max(a)) a.remove(max(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,440
s111543886
p00001
u633333374
1503278004
Python
Python
py
Accepted
10
6376
120
lst = [] for i in range(10): lst.append(int(input())) for j in range(3): print max(lst) lst.remove(max(lst))
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,441
s926179545
p00001
u193453446
1503368921
Python
Python3
py
Accepted
20
7704
206
def main(): """ ????????? """ m = [] for i in range(10): m.append(int(input())) m.sort(reverse=True) for i in range(3): print(m[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,442
s527340259
p00001
u428982301
1503639461
Python
Python3
py
Accepted
20
7636
124
values = [] for n in range(10): values.append(int(input())) values.sort(reverse=True) for v in values[:3]: print(v)
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,443
s529931460
p00001
u855694108
1504078768
Python
Python3
py
Accepted
20
7652
188
def main(): m = [] for _ in range(10): m.append(int(input())) m.sort(reverse = True) for i in range(3): print(m[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,444
s748803535
p00001
u123964252
1504084135
Python
Python3
py
Accepted
20
7580
83
for h in sorted([int(input()) for i in range(10)], reverse=True)[0: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,445
s432765575
p00001
u105694406
1504162222
Python
Python3
py
Accepted
20
7600
161
mountain = [] for _ in range(10): mountain.append(int(input())) mountain.sort() mountain.reverse() print(mountain[0]) print(mountain[1]) print(mountain[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,446
s133515745
p00001
u197615397
1504163489
Python
Python3
py
Accepted
30
7600
71
print("\n".join(map(str,sorted([int(input())for _ in[0]*10])[:-4:-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,447
s056327297
p00001
u957021183
1504682956
Python
Python3
py
Accepted
20
7816
261
# Aizu Problem 0001: List of Top 3 Hills # import sys, math, os # read input: PYDEV = os.environ.get('PYDEV') if PYDEV=="True": sys.stdin = open("sample-input2.txt", "rt") for h in sorted([int(input()) for _ 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,448
s260833855
p00001
u525269094
1504856721
Python
Python3
py
Accepted
30
7680
188
# coding: utf-8 # Here your code ! import sys n = [int(input()) for i in range (1,11)] #t = [int(input()) for i in range(n)] n.sort() n.reverse() for j in range (0,3): print(n[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,449
s903008456
p00001
u877201735
1505646303
Python
Python3
py
Accepted
20
7748
316
import sys def qsort(seq): if seq == []: return seq return qsort([x for x in seq[1:] if x < seq[0]]) + seq[0:1] + qsort([x for x in seq[1:] if x >= seq[0]]) data_set = [] for i in range(0, 10): data_set.append(int(input())) rank = qsort(data_set) for i in range(0,3): print(rank.pop(-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,450
s287354820
p00001
u741801763
1505716732
Python
Python3
py
Accepted
20
7760
204
if __name__=="__main__": dataset = [] for i in range(10): a = int(input()) dataset.append(a) for j in range(3): print(max(dataset)) dataset.remove(max(dataset))
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,451
s131704592
p00001
u933096856
1505791390
Python
Python3
py
Accepted
20
7612
104
a=[] for i in range(10): a.append(int(input())) a=sorted(a)[::-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,452
s548286912
p00001
u531482846
1506199073
Python
Python3
py
Accepted
20
7756
108
from sys import stdin ns = [int(n) for n in stdin] ns.sort(reverse = True) for i in range(3): print(ns[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,453
s082644872
p00001
u531482846
1506199560
Python
Python3
py
Accepted
60
7768
93
from sys import stdin for x in sorted([int(l) for l in stdin],reverse=True)[0:3]: 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,454
s961034072
p00001
u506705885
1506349187
Python
Python3
py
Accepted
40
7724
418
mountains_high=[] for i in range(10): mountains_high.append(int(input())) mountains_high_copy=mountains_high.copy() for i in range(9): for j in range(9): if mountains_high_copy[j]>mountains_high_copy[j+1]: num=mountains_high_copy[j] mountains_high_copy[j]=mountains_high_copy[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,455
s723456244
p00001
u424041287
1506561671
Python
Python3
py
Accepted
20
7724
331
num =[0,0,0] for a in range(10): x = int(input().rstrip()) if x > num[0]: num[2] = num[1] num[1] = num[0] num[0] = x continue elif x > num[1]: num[2] = num[1] num[1] = x continue elif x > num[2]: num[2] = x for a in range(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,456
s472359955
p00001
u256256172
1506939794
Python
Python3
py
Accepted
20
7676
94
x = sorted([int(input()) for i in range(10)], reverse=True) for i in range(3): print(x[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,457
s056054436
p00001
u343251190
1507220066
Python
Python3
py
Accepted
20
7696
121
data = [] for i in range(10): data.append(int(input())) data.sort(reverse=True) for i in range(3): print(data[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,458
s635446168
p00001
u411772182
1507515512
Python
Python3
py
Accepted
20
7748
175
# coding:utf-8 mountlist = [] for _ in range(10): height = int(input()) mountlist.append(height) mountlist.sort() mountlist.reverse() [print(x) for x in mountlist[: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,459
s313467726
p00001
u947762778
1507531134
Python
Python3
py
Accepted
30
7764
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,460
s951478064
p00001
u166520445
1507703479
Python
Python3
py
Accepted
20
7716
419
# coding: utf-8 # Here your code ! import sys line = sys.stdin.readlines() top = [0,0,0] for i in range(len(line)): line[i] = int(line[i].rstrip("\n")) if top[0] < line[i]: top[2] = top[1] top[1] = top[0] top[0] = line[i] elif top[1] < line[i]: top[2] = top[1] top[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,461
s192371589
p00001
u197670577
1508082931
Python
Python
py
Accepted
30
6348
128
mt = list() for i in range(10): mt.append(int(raw_input())) mt = sorted(mt,reverse=True) for i in range(3): print mt[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,462
s790176394
p00001
u228488524
1508222621
Python
Python3
py
Accepted
20
7688
123
l = [] for i in range(10): inp = input() l.append(int(inp)) l.sort() l.reverse() for i in range(3): print(l[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,463
s553404412
p00001
u123686770
1508386526
Python
Python
py
Accepted
10
6428
125
import sys data = [] for d in sys.stdin: data.append(int(d)) data.sort(reverse=True) for i in xrange(3): print data[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,464
s927324921
p00001
u422087503
1508706406
Python
Python3
py
Accepted
20
7684
103
h = [] for i 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,465
s430217941
p00001
u926657458
1508755866
Python
Python3
py
Accepted
40
7760
188
def main(): N=10 l = list() for i in range(N): l.append(int(input())) l.sort(reverse=True) for x in l[:3]: print(x) 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,466
s690734577
p00001
u886119481
1508915127
Python
Python
py
Accepted
10
6404
339
result = [0, 0, 0] for i in range(10): inp = int(raw_input()) if result[2] >= inp: continue elif result[1] >= inp > result[2]: result[2] = inp elif result[0] >= inp > result[1]: result[2] = result[1] result[1] = inp else: result[2] = result[1] result[1] = result[0] result[0] = inp for i in range(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,467
s592900341
p00001
u926657458
1508955164
Python
Python3
py
Accepted
20
7684
169
import sys data = sys.stdin.readline() l = list() while data: l.append(int(data)) data = sys.stdin.readline() for x in sorted(l,reverse=True)[:3]: 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,468
s973005860
p00001
u008204061
1508961325
Python
Python3
py
Accepted
50
7712
111
import sys 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,469
s116429740
p00001
u846136461
1509259528
Python
Python
py
Accepted
10
6620
509
# coding: utf-8 import codecs import sys sys.stdout = codecs.getwriter("shift_jis")(sys.stdout) # ?????? sys.stdin = codecs.getreader("shift_jis")(sys.stdin) # ??\??? # ??\??¬?????????print??????????????´?????? print(u'?????????') ??¨?????? # ??\??¬?????????input??? input(u'?????????') ??§OK # ??°?¢?????????????????...
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,470
s862390096
p00001
u914007790
1509343130
Python
Python3
py
Accepted
30
7704
101
a = [] for i in range(10): a.append(int(input())) 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,471
s410621712
p00001
u776758454
1510334356
Python
Python3
py
Accepted
20
7680
159
def main(): mountains_list = [int(input()) for n in range(10)] for i in range(3): print(list(reversed(sorted(mountains_list)))[i]) 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,472
s203371652
p00001
u917432951
1510658147
Python
Python3
py
Accepted
20
7652
201
if __name__ == '__main__': height = [] for _ in range(0,10): height.append((int)(input())) height.sort(reverse = True) print(height[0]) print(height[1]) print(height[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,473
s105926465
p00001
u139200784
1510665306
Python
Python3
py
Accepted
40
7656
243
# -*- coding: utf-8 -*- #a = [input() for i in range(N)] #print a # [a1, a2, a3, ..., aN] import sys a = [] for line in sys.stdin: a.append(int(line)) #print a # [a1, a2, a3, ...] a.sort(reverse=True) 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,474
s381960785
p00001
u187646742
1510803341
Python
Python3
py
Accepted
30
7712
179
l = [] while True: try: x = int(input()) l.append(x) except Exception: break l.sort(reverse=True) print("\n".join([str(l[0]),str(l[1]),str(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,475
s362669231
p00001
u784787519
1510810741
Python
Python3
py
Accepted
30
7688
139
mountains = [] for i in range(10): mountains.append(int(input())) mountains.sort(reverse=True) for m in mountains[0:3]: print(m)
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,476
s015849544
p00001
u742178809
1511254949
Python
Python3
py
Accepted
30
7708
105
m=[] for line in range(10): m.append(int(input())) m.sort(reverse=True) for h in m[0: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,477
s850934701
p00001
u742178809
1511326745
Python
Python3
py
Accepted
40
7696
210
import sys #from me.io import dup_file_stdin #@dup_file_stdin def solve(): m=[] for line in sys.stdin: m.append(int(line)) m.sort(reverse=True) for h in m[0:3]: print(h) 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,478
s507029277
p00001
u947718497
1511524990
Python
Python
py
Accepted
10
6432
271
import sys import operator # l = sys.stdin.readline() l= [] for i in xrange(10): l.append(int(sys.stdin.readline())) first = max(l) print(first) del l[l.index(first)] first = max(l) print(first) del l[l.index(first)] first = max(l) print(first) del l[l.index(first)]
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,479
s119031845
p00001
u255925718
1512161984
Python
Python
py
Accepted
10
4624
107
n=[] for i in range(0, 10): n.append(int(raw_input())) for i in sorted(n,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,480
s274716467
p00001
u548155360
1512379771
Python
Python3
py
Accepted
20
5604
198
# coding=utf-8 mountain_hills = [int(input()) for j in range(10)] mountain_hills.sort() mountain_hills.reverse() mountain_hills = mountain_hills[:3] for i in range(3): print(mountain_hills[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,481
s060790763
p00001
u072683688
1512875845
Python
Python3
py
Accepted
30
5600
107
M=[] for i in range(10): M.append(int(input())) M.sort() M.reverse() for j in range(3): print(M[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,482
s033177274
p00001
u779220087
1512985634
Python
Python3
py
Accepted
20
5604
647
# usr/bin/python # coding: utf-8 ################################################################################ # List of Top 3 Hills #There is a data which provides heights (in meter) of mountains. The data is only for ten mountains. # #Write a program which prints heights of the top three mountains in descending or...
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,483
s217250238
p00001
u706217959
1513074903
Python
Python3
py
Accepted
20
5600
235
def main(): moutain = [] for i in range(0,10): n = int(input()) moutain.append(n) temp = sorted(moutain,reverse=True) for i in range(0,3): print(temp[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,484
s483719510
p00001
u842823276
1513129841
Python
Python3
py
Accepted
20
5588
90
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,485
s678290731
p00001
u181768286
1513155610
Python
Python
py
Accepted
10
4664
318
# coding: utf-8 rank = [0,0,0] for i in range(10): t = input() if t > rank[0]: rank.insert(0, t) rank.pop() elif t > rank[1]: rank.insert(1, t) rank.pop() elif t > rank[2]: rank.insert(2, t) rank.pop() print "{}\n{}\n{}".format(rank[0], rank[1], rank[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,486
s274208452
p00001
u987649781
1513170185
Python
Python3
py
Accepted
20
5600
115
h = [] for x in range(0,10): h.append(int(input())) h.sort() h.reverse() print(h[0]) print(h[1]) print(h[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,487
s435305577
p00001
u024715419
1513241709
Python
Python3
py
Accepted
20
5600
106
hills = [int(input()) for i in range(10)] hills.sort() print(hills[-1]) print(hills[-2]) print(hills[-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,488
s468435701
p00001
u546285759
1513492148
Python
Python3
py
Accepted
30
5600
67
print(*sorted([int(input()) for _ in range(10)])[:-4:-1], 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,489
s546738228
p00001
u183079216
1513764887
Python
Python3
py
Accepted
20
5600
122
lst=[] for n in range(10): lst.append(int(input())) res=sorted(lst, reverse=True) for i in range(3): print(res[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,490
s735635345
p00001
u298999032
1513841808
Python
Python3
py
Accepted
20
5592
158
a=[] for i in range(10): a.append(int(input())) counter=3 for u in list(reversed(sorted(a))): print(u) counter-=1 if counter==0: break
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,491
s255761272
p00001
u298999032
1513841897
Python
Python3
py
Accepted
20
5596
140
a=[] for i in range(10): a.append(int(input())) c=3 for u in list(reversed(sorted(a))): print(u) c-=1 if c==0: break
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,492
s635902305
p00001
u764789069
1514010494
Python
Python
py
Accepted
10
4632
191
#List of Top3 Hills list=[] while True: try: n = int(raw_input()) list.append(n) except: break list.sort(reverse=True) for i in range(0,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,493
s473321906
p00001
u764789069
1514010884
Python
Python
py
Accepted
10
4636
166
list=[] for i in range(0,10): n = int(raw_input()) list.append(n) #print'---------------------' list.sort(reverse=True) for i in range(0,3): print list[i]
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,494
s521594985
p00001
u480287988
1514104731
Python
Python3
py
Accepted
20
5596
90
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,495
s596871664
p00001
u600263347
1514193266
Python
Python3
py
Accepted
20
5592
281
def main(): Array = [] for i in range(10): Array.append(int(input())) Array.sort() Array.reverse() count = 0 for value in Array : if count == 3: break print(value) count+=1 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,496
s616938632
p00001
u028347703
1514528389
Python
Python3
py
Accepted
20
5604
94
l = [int(input()) for i in range(10)] l.sort(reverse=True) for i in range(0, 3): print(l[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,497
s284858426
p00001
u585035894
1514532858
Python
Python3
py
Accepted
20
5604
78
print(*sorted([int(input()) for _ in range(10)], reverse=True)[0:3], 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,498
s349727760
p00001
u183224403
1514881795
Python
Python3
py
Accepted
20
5600
205
mountains = [] for i in range(0,10): input_line = input() mountains.append(int(input_line)) sorted_mountains = sorted(mountains, reverse=True) for i in range(0, 3): print(sorted_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,499
s813531257
p00001
u009288816
1515076373
Python
Python
py
Accepted
10
4636
178
import sys a = "" l = [] for input in sys.stdin: a += input for i in a.split(): l.append(int(i)) l = sorted(l) for i in range(len(l)-1,len(l)-4,-1): print int(l[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,500
s889610061
p00001
u538972897
1515112378
Python
Python3
py
Accepted
20
5600
176
try: meters = [] while True: meters.append(int(input().strip())) except EOFError: meters.sort(reverse=True) for i in range(3): print(meters[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,501