بر اساس نمونه ورودی و خروجی زیر، الگوی مربوطه را یافته و تابعی بنویسید که تمام ورودی خروجی های زیر در آن صدق کند.
نمونه ورودی و خروجی
running_athlete(["run", "jump", "run", "jump", "run"], "_|_|_") ➞ _|_|_
running_athlete(["run", "jump", "run", "run", "run"], "_|_|_") ➞ _|_/_
running_athlete(["jump", "jump", "jump", "jump", "jump"], "_|_|_") ➞ x|x|x
running_athlete(["run", "jump", "run", "jump", "run"], "_|_|_") ➞ _|_|_
running_athlete(["run", "jump", "run", "run", "run"], "_|_|_") ➞ _|_/_
running_athlete(["jump", "jump", "jump", "jump", "jump"], "_|_|_") ➞ x|x|x
running_athlete(["run", "run", "run", "run", "run"], "_|_|_") ➞ _/_/_
نظرات