2025年中国区决赛(专属赛前模拟)
Python 小学组 第9题

方法1 图形化

方法2 图形化

方法三: python:
(-1) ** i (其余不变)
Dev.turnLeft()for i in range(3):Dev.step(-6)Dev.step(2)Dev.turnRight()Dev.step((-1)**i*2)Dev.turnRight()Dev.step(2)Dev.step(-6)
图形化小高组 第9题

常规解法: 普通E字型,超步数。共60步只允许42步

通关解法:

小低组第20题


WRC 第15题(小低组)


通项公式调整 当通项公式中: 循环变量不是从 0 开始,需要将 i 进行归零 补偿。


for i in range(4):Dev.step(-(6-1*i))if i==1:Spaceship.step(2)Spaceship.turnLeft()Spaceship.step(1)else :Dev.turnLeft()Dev.step(2)Dev.turnRight()Dev.step(5-i*i)
