标签:src 注意 input block print map floor python3 图片
- 在同一层的时候时间还是要加上
data_list = list(map(int, input().split(" ")[1:]))
time = 0
floor = 0
for num in data_list:
if num > floor:
time += 6*(num-floor) + 5
elif num < floor:
time += 4*(floor-num) + 5
else:
time += 5
floor = num
print(time)
标签:src 注意 input block print map floor python3 图片
原文地址:https://www.cnblogs.com/d-i-p/p/10697877.html