Java 代码
import java.util.Scanner;
public class Main
{
public static void main (String[] args)
{
Scanner cin = new Scanner(System.in);
int i = cin.nextInt();
int c = cin.nextInt();
double[] p = {4.00, 4.50, 5.00, 2.00, 1.50};
System.out.println("Total: R$ " + String.format("%.2f", p[i-1] * c));
}
}