https://i1.wp.com/eblogarithm.com/wp-content/uploads/2017/08/Codeforces-Round-427-Div-2-problem-A-Key-races-Solution-in-CC1.png?fit=640%2C360

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”);
}

(Visited 61 times, 1 visits today)



There are no comments

Add yours

Leave a Reply

%d bloggers like this: