project_python/2.2_lesson.2.20

17 lines
712 B
Plaintext
Raw 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.

''' ****** Задание 2(B) из 20 Параграф 2.2 *********
* В главной велогонке года участвуют более тысячи гонщиков, которые должны пройти трассу длиной 43872 метра. Задача — определить победителя.
Нам известны средние скорости двух фаворитов — Пети и Васи. Помогите узнать, кто из них пришёл к финишу первым.
'''
if __name__ == "__main__"
p_speed = float(input())
v_speed = float(input())
if p_speed > v_speed:
print('Петя')
else:
print('Вася')