Solubility (SOLBLTY) Solution — Codechef May Long Challenge

Input

  • The first line contains an integer T, the number of test cases. Then the test cases follow.
  • The only line of each test case contains three integers X,A,B.

Output

Constraints

  • 1≤T≤1000
  • 31≤X≤40
  • 101≤A≤120
  • 1≤B≤5

Subtasks

Sample Input

3
40 120 1
35 120 2
40 115 3

Sample Output

1800
2500
2950

Explanation

import java.util.*;import java.lang.*;import java.io.*;/* Name of the class has to be "Main" only if the class is public. */class Codechef{public static void main (String[] args) throws java.lang.Exception{// your code goes hereScanner sc = new Scanner(System.in);int t = sc.nextInt();while(t-- > 0){int x = sc.nextInt();int a = sc.nextInt();int b = sc.nextInt();int ans = (a +(100-x)*b)*10;System.out.println(ans);}}}

--

--

--

Software Developer ,currently pursuing B.Tech in Information Technology. Electronic Dance Music is love.Also like all phone related technologies

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Why I Started Programming

Pre- Agile Scrum 101

Deep-dive into Kubernetes Scheduling

Animated page scroll with HTML and CSS only

Compiling and all it’s steps!

The Emerging Field of Machine Learning Operations (MLOps)

Inthe 1990s, I liked to rent VHS videos from the Blockbuster down the street from our house.

How to Create an AWS Account

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Anubhav Mishra

Anubhav Mishra

Software Developer ,currently pursuing B.Tech in Information Technology. Electronic Dance Music is love.Also like all phone related technologies

More from Medium

ABSTRACTION IN JAVA

Role of start() and run() methods in multithreading

What should developers have to know about Timezones?

Arrays in Java