⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 un2bin.dsc

📁 The program simulates a Nondeterministic Multitape Turing Machine. It works as ordinary (Determinist
💻 DSC
字号:
Conversion unary representation of a number to binary one.

Source : 
* L.A.Sholomov, "Basics of discrete and computational machines" (in Rusian), Moscow, "Nauka", 1980
        

A number 'n' is represented
* in unary  representation : by  n |-s,
* in binary representation : by  0 an 1 digits.

Sample :
  3 is represented as  
    | | | - in unary  representation
    1 1	  - in binary representation
  5 is represented as  
    | | | | | - in unary  representation
    1 0 1     - in binary representation



Input : number 'n' in unary representation
  Sample (n = 5) :
    | | | | |

Output : number 'n' in binary representation
  Sample (n = 5) :
  1 0 1

⌨️ 快捷键说明

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