TV Discount

     Solutions For TV Discount

    
    


/*Below Solutions available in java Please change the variable name and try to add more comments to avoid plagiarism*/




 

import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
public static void main (String[] args){
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
for(int q = 0; q<t; q++){
    
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    int D = sc.nextInt();
    
    int res1 = A-C;
    int res2 = B-D;
    
    if(res1<res2){
        System.out.println("First");
    }
    else if(res1>res2){
        System.out.println("Second");
    }
    else{
        System.out.println("ANY");
    }
    
}
}
}


Join My Whatsapp Group


 

Comments