import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println((int) ( (in.nextInt() + in.nextInt()*0.1)/ 1.9 ) ); } }…
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); double x = in.nextDouble(); double sum = 0; int i = 1; while( !(x<sum) ){ sum = sum + 2*Math.pow(0.98, i-1); i++; } System.out…
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner (System.in); int ele = in.nextInt(); double out; if (ele <= 150) { out = 0.4463*ele; } else if ((150 < ele) && (ele <= 400)) { out =…