Sponsors

Tag: problem: (A) Key races Solution in C/C++

Codeforces Round #427 (Div....

#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"); }

Advertisement

spot_img