-->
当前位置:首页 > 题库

PROGRAMMING:IP address translation

Luz5年前 (2021-05-10)题库424
An IP address is composed of four bytes (8 bits per byte) of binary code. Please translate the IP address represented by 32-bit binary code into the IP address represented by decimal format for output.
###Input format:
Input gives a 32-bit binary string on one line.
###Output format:
Output the IP address in decimal format in one line, which is composed of four decimal numbers (corresponding to four 8-bit binary numbers respectively), separated by ".".
###Input example:
```in
11001100100101000001010101110010
```
###Output example:
```out
204.148.21.114
```






answer:If there is no answer, please comment