【Henu ACM Round#20 B】Contest

【链接】 我是链接,点我呀:)
【题意】

在这里输入题意

【题解】

根据时间和原分数。 算出对应的分数就可以了。

【代码】

#include <bits/stdc++.h>
using namespace std;

int a,b,c,d;

int main()
{
    cin >> a >> b >> c >> d;
    int temp1 = max(a/10*3,a-a/250*c);
    int temp2 = max(b/10*3,b-b/250*d);
    if (temp1>temp2){
        cout<<"Misha"<<endl;
    }else if (temp1==temp2){
        cout<<"Tie"<<endl;
    }else {
        cout<<"Vasya"<<endl;
    }
    return 0;
}
posted @ 2018-02-02 11:20  AWCXV  阅读(85)  评论(0编辑  收藏  举报