The Cheaper Cab | Problem - 18 | Beginner level | C language | CodeChef
Link to the problem statement: https://www.codechef.com/submit-v2/CABS
Solution:
#include <stdio.h>
int main(void) {
int t, x, y, i;
scanf("%d", &t);
for(i=0;i<t;i++)
{
scanf("%d %d", &x, &y);
if( x < y )
printf("FIRST\n");
else if( y < x )
printf("SECOND\n");
else if( x = y )
printf("ANY\n");
}
return 0;
}
Hope this will help you, if you want anything else leave a comment.
Thank you
Comments
Post a Comment