PRINT X # 输出 X REPEAT X TIMES ( INCREASE Z INCREASE Z ) # 初始化 Z, Z=2X INCREASE T # 当T=0时程序结束 INCREASE N INCREASE N INCREASE N REPEAT N TIMES ( INCREASE N INCREASE N ) REPEAT N TIMES ( INCREASE N INCREASE N ) REPEAT N TIMES ( INCREASE N INCREASE N ) # 初始化N为81 REPEAT N TIMES ( REPEAT T TIMES ( INCREASE Q REPEAT P TIMES ( # 若继承了状态 CLEAR Q CLEAR P CLEAR I CLEAR J REPEAT Y TIMES ( # 除2, 判断奇偶性 REPEAT I TIMES ( INCREASE J INCREASE Y ) INCREASE I REPEAT J TIMES ( CLEAR I CLEAR J ) ) INCREASE Y ) REPEAT Q TIMES ( CLEAR Q INCREASE S CLEAR Y CLEAR I CLEAR J REPEAT X TIMES ( REPEAT I TIMES ( INCREASE J INCREASE Y CLEAR S ) INCREASE I REPEAT J TIMES ( CLEAR I CLEAR J ) ) REPEAT S TIMES ( CLEAR T ) ) # 若非1 REPEAT T TIMES ( INCREASE J REPEAT I TIMES ( CLEAR J REPEAT Y TIMES ( INCREASE Z INCREASE Z INCREASE X ) INCREASE Z INCREASE Z INCREASE X PRINT Z PRINT X INCREASE P ) REPEAT J TIMES ( PRINT Y CLEAR X CLEAR Z REPEAT Y TIMES ( INCREASE X INCREASE Z INCREASE Z ) ) ) ) )