!
2@2
!)
印刷品0
。在线尝试!
2)
@!
!2
印刷品3
。在线尝试!
)!
2@2
!
印刷品1
。在线尝试!
2!
!@
)2
印刷品2
。在线尝试!
说明
每个程序从阅读顺序的第一个非空格处开始(即,左上角或顶部中心字符),向东移动。对于第一个程序:
! Print an implicit zero.
The IP can't move east, so it moves south instead.
2 Push a 2.
The IP can't keep going south, so it turns east instead.
@ Terminate the program.
对于第二个程序:
2 Push a 2.
) Increment it to 3.
The IP can't keep going east, so it turns south instead.
! Print the 3.
The IP can't keep going south, so it turns west instead.
@ Terminate the program.
对于第三个程序:
) Increment an implicit zero to 1.
! Print the 1.
The IP can't keep going east, so it turns south instead.
@ Terminate the program.
对于第四个程序:
2 Push a 2.
! Print the 2.
The IP can't keep going east, so it turns back around to move west.
2 Push another 2.
The IP can't keep going west, so it turns south instead.
@ Terminate the program.