Parking
Author: aruzhan
Problem has been solved: 190 times
Русский язык
|
English Language
Along Lenin Street, three free parking spaces are located sequentially. Daniyar, Alen and Nurdaulet ride one after another along this street and try to park. Each of them has one favorite parking space with the number $ d $, $ a $ and $ n $ respectively (where $ d $, $ a $ and $ n $ are numbers from $ 1 $ to $ 3 $, not necessarily different). One after another, each of them arrives at their favorite parking space, and if it is free, parks, otherwise it goes further and gets in the first free place. Find the number of ordered triples of numbers $ (d, a, n) $ such that all three can park.
Вдоль улицы Ленина последовательно расположены три свободных парковочных места. Данияр, Ален и Нурдаулет едут друг за другом по этой улице и пытаются припарковаться. У каждого из них есть одно любимое парковочное место под номером $d$, $a$ и $n$ соответственно (где $d$, $a$ и $n$ это числа от $1$ до $3$, не обязательно различные). По очереди, каждый из них доезжает до своего любимого парковочного места, и если оно свободно, встаёт на него, иначе проезжает дальше и встаёт на первое свободное место. Найдите количество упорядоченных троек чисел $(d, a, n)$ таких, что все трое смогут припарковаться.
Sorry, you need to
login into your account