project_python/lesson.14.20

17 lines
850 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

''' ****** Задание 14 из 20 Параграф 2.1 *********
* В группе детского сада проводится игра с шариками трёх цветов: красного, зелёного и синего.
Каждый ребёнок по очереди вытаскивает один шарик из ящика. Победителем становится тот, кто первым вытащит зелёный шарик.
Напишите программу, которая определяет максимальное количество ходов, которое потребуется, чтобы найти зелёный шарик.
'''
if __name__ == "__main__"
red_balls = int(input())
green_balls = int(input())
blue_balls = int(input())
max_moves = red_balls + blue_balls + 1
print(max_moves)