• [1227] Binary to Decimal

  • 时间限制: 1000 ms 内存限制: 65535 K
  • 问题描述
  • The boring Three-God get a boring question.
    So you have to transform a binary number to a decimal.
  • 输入
  • There are muti-case.
    For each case, there are a binary number, the binary number's length is less than 32, and the binary number have no pre-zero (前导零).
  • 输出
  • For each binary number, print the decimal numbuer.the decimal number is less than 2^31 - 1.
  • 样例输入
  • 1
    10
    11
    
  • 样例输出
  • 1
    2
    3
    
  • 提示
  • 来源
  • Three-God
  • 操作

显示春菜