# Sasta Shark Tank Codechef Solution | APRIL CHALLENGE

Share:

Sasta Shark Tank Codechef Solution

Devendra just had a million-dollar idea and he needs funds to startup. He was recently invited to Sasta Shark Tank (A TV show where entrepreneurs pitch their ideas to investors hoping to get investment in return).

He was offered deals from two investors. The first investor offers AA dollars for 1010% of his company and the second investor offers BB dollars for 2020% of his company. Devendra will accept the offer from the investor whose valuation of the company is more. Determine which offer will Devendra accept or if both the offers are equally good.

For example, if the first investor offers 300300 dollars for 1010% of the company, then the first investor’s valuation of the company is 30003000 dollars since 1010% of 3000=3003000=300. If the second investor offers 500500 dollars for 2020% of the company, then the second investor’s valuation of the company is 25002500 dollars since 2020% of 2500=5002500=500.

### Input Format

• The first line contains a single integer TT – the number of test cases. Then the test cases follow.
• The first and only line of each test case contains two integers AA and BB – the amount offered by first investor for 1010% of Devendra’s company and the amount offered by second investor for 2020% of Devendra’s company respectively.

### Output Format

For each test case, Output `FIRST` if Devendra should accept the first investor’s deal, output `SECOND` if he should accept the second investor’s deal, otherwise output `ANY` if both deals are equally good.

You may print each character of the strings in uppercase or lowercase (for example, the strings “FiRst”, “First”, “FIRST”, and “FIrst” will all be treated as identical).

### Constraints

• 1≤T≤1001≤T≤100
• 100≤A,B≤10000100≤A,B≤10000
• AA and BB are multiples of 100100

### Sample Input 1

``````3
100 200
200 100
200 500
``````

### Sample Output 1

``````ANY
FIRST
SECOND
``````

### Explanation

Test case 1: First investor’s valuation of Devendra’s company was 10001000 since 1010% of 1000=1001000=100 which is the amount he offered for 1010% of the company.

Second investor’s valuation of Devendra’s company was also 10001000 since 2020% of 1000=2001000=200 which is the amount he offered for 2020% of the company.

Therefore he can accept any of the deal.

Test case 2: First investor offered a better deal as he valued Devendra’s company at 20002000 dollars (since 1010% of 2000=2002000=200) compared to the second investor who valued Devendra’s company at 500500 dollars (since 2020% of 500=100500=100).

Test case 3: Second investor offered a better deal as he valued Devendra’s company at 25002500 dollars compared to the first investor who valued Devendra’s company 20002000 dollars.

### Sasta Shark Tank Codechef  SOLUTION

login to google play console, youtube video search by image, how to add a google account, which are the google apps, what is the google app, how to add a new google account, all the google apps, which service is the part of google, adsetting google, google data studio, google DNS, GCP console, bigquery, google studio, google api console, google app engine, anthos, google apis, google public DNS, google audio, google launcher, gcloud console, google compute engine, google webmaster console, google logged-in devices, gdrive unlimited,google console tools,google studio login,my google voice,hey google service,find similar images google, my google forms, www google com bd search, search using images in google,google image search scan,google sea console,website console google, google sound, gdrive storage for students, google site console, google console login, webmaster console, searc h console, google server down, google backup login, photo finder google, google products and services, google console tool, google image check, google cloud search is used for, google dashboard studio, google voice and audio activity,gcp dashboards, google services down, google go app, google dns down, google image identifier,check picture on google,google new launcher,google image finder online,image check google google google go, image finder on google, finding images on google, photo find google, find a picture in google, find the photo on google, picture find google, image find on google, find with photo google, image finder google online, google find with image, photo finder in google, google find image search, search using image in google, search on google with image, google server down today, google server down news

Read More Post Here