(O) Контест

public
yeskendir.sultanov Apr 26, 2024 Never 38
Clone
Python 47.py 14 lines (11 loc) | 234 Bytes
1
def get(p, t):
2
return max(3 * p / 10, p - p * t / 250)
3
4
a, b, c, d = map(int, input().split())
5
6
pm = get(a, c)
7
pv = get(b, d)
8
9
if pm > pv:
10
print('Misha')
11
elif pm < pv:
12
print('Vasya')
13
else:
14
print('Tie')
15