Java 代码
import java.util.Scanner;
import java.text.DecimalFormat;
public class Main
{
public static void main(String[] args)
{
Scanner cin=new Scanner(System.in);
double a=cin.nextDouble();
double b=cin.nextDouble();
double x=a*3.5/11+b*7.5/11;
DecimalFormat df=new DecimalFormat("0.00000"); //保留五位小数
System.out.println("MEDIA = "+df.format(x));
}
}