Commit 57d79cb3 by BellCodeEditor

auto save

parent 52b4cfd5
Showing with 10 additions and 29 deletions
n = int(input()) import turtle来覅哦i进去看咯iVS反对x
k = 0 pen=turtle.Pen()
while n>0: list=["green","blue","red"]
m = int(input()) pen.speed(90)
if m>k: # 获得最大值 for i in range(300):
k = m pen.color(list[i%3])
n = n-1 pen.forward(i)
print(k) pen.left(91)
turtle.done()
n = int(input()) \ No newline at end of file
k = 101
while n>0:
m = int(input())
if m<k: # 获得最小值
k = m
n = n-1
print(k)
n = int(input())
max = 0
min = 1001
while n>0:
m = int(input())
if max<m: #获得最大值
max = m
if min>m: #获得最小值
min = m
n = n-1
print(max-min)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment