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

By |2017-08-05T21:37:32+00:00August 5th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

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