Solubility (SOLBLTY) Solution — Codechef May Long Challenge

Input

Output

Constraints

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);}}}

--

--

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