首页 > 试题广场 >

Store IPV6 address into intege

[编程题]Store IPV6 address into intege
  • 热度指数:113 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32M,其他语言64M
  • 算法知识视频讲解

Input a hexadecimal IPV6 address, store it into 4 integers and output them.


输入描述:
The input data contains 8 groups of colon-separated numbers(letters are uppercase), each group has 4 numbers(leading 0 can be omitted or not), all in hexadecimal.


输出描述:
The output contains 4 integers(without leading zeros) separated by spaces.
示例1

输入

0:001:000:02:0000:A:FFFF:FFFF

输出

1 2 10 -1