addm.dsc

来自「The program simulates a Nondeterministic」· DSC 代码 · 共 16 行

DSC
16
字号
An addition program with left-side-marker of the tape.

The program adds two numbers. 
A number 'n' is represented by n 1-s.
Sample :
  5 is represented as  1 1 1 1 1
  3 is represented as  1 1 1      

Input : Two numbers separated by symbol '*'
Sample :
  1 1 1 1 1 * 1 1 1

Output : Resulting number (without '*') preceded by left-side-marker
Sample :
  x 1 1 1 1 1 1 1 1

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?