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

How to set up remote debugging of C++ project with ssh using Visual Studio Code on Linux

Serve Python App on Nginx

Voice activated Robot with Amazon Lex

Day148 — Rust

An album art collage from a Spotify playlist

Run C or Python Programs Using Discord Bot

Process Fusion for Agile with Traditional Testing Methodology

Kotlin, Coroutines and, Ktor

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

Why do Software Engineers need to consider more about time zones?

Micronaut application in heroku

Java 學習記錄109 — Introduction to SQLite

Demystify Jargons in software engineering-What is API?