Sugarcane Juice Business Codechef Solution | May CHALLENGE


Sugarcane Juice Business Codechef Solution

While Alice was drinking sugarcane juice, she started wondering about the following facts:

  • The juicer sells each glass of sugarcane juice for 5050 coins.
  • He spends 20%20% of his total income on buying sugarcane.
  • He spends 20%20% of his total income on buying salt and mint leaves.
  • He spends 30%30% of his total income on shop rent.

Alice wonders, what is the juicer’s profit (in coins) when he sells NN glasses of sugarcane juice?

Input Format

  • The first line of input will contain an integer TT — the number of test cases. The description of TT test cases follows.
  • The first and only line of each test case contains an integer NN, as described in the problem statement.

Output Format

For each test case, output on a new line the juicer’s profit when he sells NN glasses of juice.


  • 1≤T≤10001≤T≤1000
  • 1≤N≤1061≤N≤106

Sample Input 1 


Sample Output 1 



Test case 11: The total income is 50×2=10050×2=100 coins. The juicer spends 2020 coins on sugarcane, 2020 coins on salt and mint leaves and 3030 coins on rent. Thus, the profit is 100−(20+20+30)=30100−(20+20+30)=30 coins.

Test case 22: The total income is 50×4=20050×4=200 coins. The juicer spends 4040 coins on sugarcane, 4040 coins on salt and mint leaves and 6060 coins on rent. Thus, the profit is 200−(40+40+60)=60200−(40+40+60)=60 coins.

Test case 33: The total income is 50×5=25050×5=250 coins. The juicer spends 5050 coins on sugarcane, 5050 coins on salt and mint leaves and 7575 coins on rent. Thus, the profit is 250−(50+50+75)=75250−(50+50+75)=75 coins.

Test case 44: The total income is 50×10=50050×10=500 coins. The juicer spends 100100 coins on sugarcane, 100100 coins on salt and mint leaves and 150150 coins on rent. Thus, the profit is 500−(100+100+150)=150500−(100+100+150)=150 coins.

Sugarcane Juice Business Codechef  SOLUTION

Download Code
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

Leave a Comment

Your email address will not be published. Required fields are marked *