Java 代码
/**4 MDKJ
[BC] is a techno tour de force. - Bill Gates
*/
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner cin = new Scanner(System.in);
double a = cin.nextDouble();
double b = cin.nextDouble();
double c = cin.nextDouble();
System.out.println ("MEDIA = " + String.format("%.1f", (a * 2 + b * 3 + c * 5)/10));
}
}