#!/usr/local/python3/bin/python3
import random
l = []
for i in range(20):
    l.append(random.randrange(10))
#print(max(l))
for a in range(len(l) - 1):
    for aa in range(len(l)-a-1):
        if l[aa] > l[aa+1]:
            l[aa], l[aa+1] = l[aa+1],l[aa]
_,*_,b,c,d = l
print(b,c,d)



"""
(0 + 0)

    用函数封装
"""
3ecf8b462f2d58cd2647e2b5878626a0503b0369
<mask token>

<mask token>
for i in range(20):
    l.append(random.randrange(10))
for a in range(len(l) - 1):
    for aa in range(len(l) - a - 1):
        if l[aa] > l[aa + 1]:
            l[aa], l[aa + 1] = l[aa + 1], l[aa]
<mask token>
print(b, c, d)
<mask token>

<mask token>
l = []
for i in range(20):
    l.append(random.randrange(10))
for a in range(len(l) - 1):
    for aa in range(len(l) - a - 1):
        if l[aa] > l[aa + 1]:
            l[aa], l[aa + 1] = l[aa + 1], l[aa]
_, *_, b, c, d = l
print(b, c, d)
<mask token>

import random
l = []
for i in range(20):
    l.append(random.randrange(10))
for a in range(len(l) - 1):
    for aa in range(len(l) - a - 1):
        if l[aa] > l[aa + 1]:
            l[aa], l[aa + 1] = l[aa + 1], l[aa]
_, *_, b, c, d = l
print(b, c, d)
<mask token>

#!/usr/local/python3/bin/python3
import random
l = []
for i in range(20):
    l.append(random.randrange(10))
#print(max(l))
for a in range(len(l) - 1):
    for aa in range(len(l)-a-1):
        if l[aa] > l[aa+1]:
            l[aa], l[aa+1] = l[aa+1],l[aa]
_,*_,b,c,d = l
print(b,c,d)



"""
(0 + 0)

    用函数封装
"""