CF501A.Contest
普及/提高-
通过率:0%
时间限制:1.00s
内存限制:256MB
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
Misha and Vasya participated in a Codeforces contest. Unfortunately, each of them solved only one problem, though successfully submitted it at the first attempt. Misha solved the problem that costs a points and Vasya solved the problem that costs b points. Besides, Misha submitted the problem c minutes after the contest started and Vasya submitted the problem d minutes after the contest started. As you know, on Codeforces the cost of a problem reduces as a round continues. That is, if you submit a problem that costs p points t minutes after the contest started, you get
points.
Misha and Vasya are having an argument trying to find out who got more points. Help them to find out the truth.
米沙和瓦夏参加了一场 Codeforces 比赛。不幸的是,他们各自仅成功解决了一道题,且均在第一次尝试时即成功提交。米沙解决的是价值为 a 分的题目,瓦夏解决的是价值为 b 分的题目。此外,米沙在比赛开始后 c 分钟提交了题目,瓦夏在比赛开始后 d 分钟提交了题目。众所周知,在 Codeforces 上,题目的分值会随比赛进行而递减。也就是说,若一道价值为 p 分的题目在比赛开始后 t 分钟被提交,则你获得的分数为
。
米沙与瓦夏正在争论谁获得的分数更高。请帮助他们查明真相。
输入格式
The first line contains four integers a, b, c, d (250 ≤ a, b ≤ 3500, 0 ≤ c, d ≤ 180).
It is guaranteed that numbers a and b are divisible by 250 (just like on any real Codeforces round).
第一行包含四个整数 a、b、c、d(250 ≤ a,b ≤ 3500,0 ≤ c,d ≤ 180)。
保证整数 a 和 b 均能被 250 整除(这与任何真实的 Codeforces 比赛一致)。
输出格式
Output on a single line:
"Misha" (without the quotes), if Misha got more points than Vasya.
"Vasya" (without the quotes), if Vasya got more points than Misha.
"Tie" (without the quotes), if both of them got the same number of points.
在单行中输出:
如果米沙的得分高于瓦夏,则输出 "Misha"(不带引号)。
如果瓦夏的得分高于米沙,则输出 "Vasya"(不带引号)。
如果两人的得分相同,则输出 "Tie"(不带引号)。
输入输出样例
输入#1
500 1000 20 30
输出#1
Vasya
输入#2
1000 1000 1 1
输出#2
Tie
输入#3
1500 1000 176 177
输出#3
Misha
输入解题思路,AI测评打分。不知道怎么写?