Engineering
Engineering, 06.08.2021 14:40, tyler8670

1: An IP address is divided into 4 sections where each section contains 1-3
digits. An example of an IP address would be 192.168.10.3 . Now IP
addresses have 2 parts; One is the network part while the other one is the
host part. If the network part is 1, we get a special address from the
given IP address where the 1st section will remain as it is and the rest of
the 3 sections will become 0. If the network part is 2, we get a special
address from the given IP address where the first 2 sections will remain as
it is and the rest of the 2 sections will become 0. Same goes for other
values of the network part. For simplicity we will consider the network
part can be 1 or 2 or 3.
Lets see an example:

IP address: 192.168.10.30
If network part = 1 , then special address = 192.0.0.0
If network part = 2 , then special address = 192.168.0.0
If network bits = 3 , then special address = 192.168.10.0

All IP addresses starting like the special address will fall under the same
special network. You will be given the value of the network part and a list
of IP addresses as input. Your task will be to create a dictionary where
the keys will be the unique special addresses and the corresponding values
will be the list of IP addresses that fall under the same special network.

Input format: Value of network part List of IP addresses separated by
β€œ,”

Sample Input 1:
1
192.168.30.10,168.192.100.30,192.15 2.55.10,240.169.10.10,168.200.43.90 ,192.169.100.45

Sample Output 1:
{
β€œ192.0.0.0”: [β€œ192.168.30.10”, β€œ192.152.55.10”, β€œ192.169.100.45”],
β€œ168.0.0.0”: [β€œ168.192.100.30”, β€œ168.200.43.90”],
β€œ240.0.0.0”: [β€œ240.169.10.10”]
}

Sample Input 2:
2
192.168.30.10,168.192.100.30,192.16 8.55.10,240.169.10.10,168.192.43.90 ,192.169.100.45

Sample Output 2:
{
β€œ192.168.0.0”: [β€œ192.168.30.10”, β€œ192.168.55.10”],
β€œ168.192.0.0”: [β€œ168.192.100.30”, β€œ168.192.43.90”],
β€œ240.169.0.0”: [β€œ240.169.10.10”]
β€œ192.169.0.0”: [β€œ192.169.100.45”]
}

answer
Answers: 3

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, niyawilliams23
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
image
Engineering, 04.07.2019 18:10, ijohnh14
Shafts are machine elements that are used to a) carry axial loads b) direct shear loads c) transmit power d) rotate at constant speed e) none of the above circular and square shafts subjected to the same torque under the same circum behave a) the same way b) almost the same way
Answers: 2
image
Engineering, 04.07.2019 19:10, babas97
What is a monomer? how do they form a ploymer from the view point of chemical bonding?
Answers: 1
image
Engineering, 06.07.2019 03:20, dinapearce1403
Write a technical essay (maximum two pages) about stress concentration. and paste from the textbook. instead, read updated material about this phenomenon and provide a technical evaluation of the different techniques to avoid/reduce such phenomenon. consider in your analysis cutting-edge computational techniques such as fea to study and analyze stress concentrations.
Answers: 2
Do you know the correct answer?
1: An IP address is divided into 4 sections where each section contains 1-3
digits. An examp...

Questions in other subjects:

Konu
Mathematics, 05.03.2020 17:30