系统版本[root@ga-sit-cssjgj-db-01u ~]# nkvers
############## Kylin Linux Version #################
Release:
Kylin Linux Advanced Server release V10 (Lance)
Kernel:
4.19.90-52.39.v2207.ky10.aarch64
编程农场通关全部代码
在这里插入图片描述
#pumpkin###############################
#set_execution_speed(1)
clear()
while True:
for c in range(3):
for i in range(get_world_size()):
for m in range(get_world_size()):
一、明确需求
输入井的深度n、蠕虫每分钟上爬距离u、休息时下滑距离d。
若蠕虫能爬出井,输出所需时间(分钟);若不能,输出 “The worm cannot climb out of the well.”。
蠕虫只要在某次上爬过程中头部到达井口(高度\(\geq n\)),就完成任务。