【Codeforces Round #427 (Div. 2) A】Key races

Link:http://codeforces.com/contest/835/problem/A

Description

Solution

傻逼题.

NumberOf WA


Reviw


Code

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

int n,v1,v2,t1,t2;

main(){
    scanf("%lld%lld%lld%lld%lld",&n,&v1,&v2,&t1,&t2);
    int a = v1*n+t1*2,b = v2*n+t2*2;
    if (a < b)
        puts("First");
    else
        if (a>b)
            puts("Second");
        else
            puts("Friendship");
    return 0;
}
posted @ 2017-10-04 18:44  AWCXV  阅读(65)  评论(0编辑  收藏  举报