AcWing 606. 平均数1 - Java
原题链接
简单
作者:
KYCygni
,
2021-02-26 11:10:39
,
所有人可见
,
阅读 222
Java 代码
/** 4 MDK
"I would be surprised if ten years from now we're not using electronic currency - now that
we know a way to do it... -- Satoshi Nakamoto
*/
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();
System.out.println ("MEDIA = " + String.format("%.5f", (a * 3.5 + b * 7.5)/11));
}
}