Задание
Между \(\displaystyle 8\) населенными пунктами (назовём их \(\displaystyle А {\small,}\)\(\displaystyle Б {\small,}\)\(\displaystyle В {\small,}\)\(\displaystyle Г {\small,}\)\(\displaystyle Д {\small,}\)\(\displaystyle Е {\small,}\)\(\displaystyle Ж {\small}\) и \(\displaystyle З \)) курсируют электрички по следующим маршрутам: \(\displaystyle А - Б{\small,}\)\(\displaystyle А - Д{\small,}\) \(\displaystyle Б- Г{\small,}\) \(\displaystyle Б - Д{\small,}\)\(\displaystyle В - Е{\small,}\)\(\displaystyle В - Ж{\small,}\)\(\displaystyle Г - З{\small,}\)\(\displaystyle Д - З\) и \(\displaystyle Е - Ж{\small.}\)
Можно ли добраться на электричках (возможно, с пересадками) из пункта \(\displaystyle А\) в пункт \(\displaystyle Ж{\small?}\)
- Нет
- Да