Home > Back-end >  Small white problem, troubled for a long time have bosses can help analyze
Small white problem, troubled for a long time have bosses can help analyze

Time:04-14


A network company as a village design network connection
There are two ways:
A: the use of underground cable laying, need cost the same as the two house distance
(same as the red line in figure 1)
Method 2: set up wifi in every house to receive the satellite signal

Figure 2
The first behavior in the cost of each room to install wifi
The second line is a total room number, and all attachment
The rest of the first two Numbers is your room number, the third is with the cable connection of consumption they need

There are two question part

The first part:
To calculate the minimum consumption
If is low laying cable consumption that is returned 'c'
If the installation of wifi consumption low returns' r '

The second part is
Company to upgrade the equipment, if the house with an arbitrary now have wifi house through the cable connection, also can complete data upload
Now need to print out the minimum consumption

Turn to

CodePudding user response:

Open your textbook "data structure", turn to figure chapters, self-study, this will speak several class ~ ~ ~
  • Related