1.10.125.126.127
2.178.16.16.9
3.202.103.96.112
4.225.15.16.9
5.252.25.10.1
1.10.125.126.127
2.178.16.16.9
3.202.103.96.112
4.225.15.16.9
5.252.25.10.1
1.10.125.126.127 ---> 1010.1111101.1111110.1111111
2.178.16.16.9 ---> 10110010.10000.10000.1001
3.202.103.96.112 ---> 11001010.1100111.1100000.1110000
4.225.15.16.9 ---> 11100001.1111.10000.1001
5.252.25.10.1 ---> 11111100.11001.1010.1
第一题:00001010.0
标准算是是短除取余,还有一个简便算法是用2的次方和,IP每段8位,空位补0,
1,10=8+2=2的3次方+2的1次方=1010补位得00001010
125=64+32+16+8+4+1=2的6次方+2的5次+2的4次+2的3次+2的2次+2的0次=
1 00001010.0