Codeforces Round #427 (Div. 2), problem: (A) Key races Solution in C/C++

#include <cstdio>
int s,t1,t2,v1,v2;
int main() {
scanf(“%d%d%d%d%d”,&s,&v1,&v2,&t1,&t2);
t1=2*t1+s*v1;
t2=2*t2+s*v2;
puts((t1==t2)?”Friendship”:(t1<t2)?”First”:”Second”);
}

Leave a Reply

Your email address will not be published. Required fields are marked *