Responsive image

问题 1524 --IP adress

1524: IP adress

时间限制: 1 Sec  内存限制: 128 MB
提交: 5  解决: 4
[提交][状态][讨论版][命题人:]

题目描述

An IP address can be described as dotted decimal string format or 32-bit binary number format.

Now, given an IP address, the IP address is in dotted decimal, output the 32-bit binary format ,for example,the dotted decimal IP address 192.168.0.1,192->11000000,168->10101000,0->00000000,1->00000001,and the result is11000000101010000000000000000001 。

输入描述

Multiple inputs, each input has a string,the length of the string is less than 15;

输出描述

output the 32-bit binary format

样例输入

192.168.0.1

样例输出

11000000101010000000000000000001

来源

[提交][状态]
ACM算法攻关部
  • Anything about this OnlineJudge, Please Contact Administrator. Click add QQ

    OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap

    Copyright 2016 ACM算法攻关部
    关于网站改版