Олимпиадный тренинг

Задача 40167. June-2


Задача

Темы: ЕГЭ
In the figure, the road map of the N district is shown as a graph, the table contains information about the length of each of these roads (in kilometers).  Since the table and the diagram were drawn independently of each other, the numbering of settlements in the table has nothing to do with the lettering on the graph. Determine the sum of the lengths of roads from point C to point D and from point E to point F.
Write an integer as your answer.
 
 
  P1 P2 P3 P4 P5 P6 P7
P1 x 27 24        
P2 27 x 21   18    
P3 24 21 x 15 12 9 30
P4     15 x   33  
P5   18 12   x   36
P6     9 33   x 39
P7     30   36 39 x