• 1453 男生和女生

    Time Limit : 2000/1000 MS(Java/Others) | Memory Limit : 65536/32768 KB(Java/Others)

    Submits : 1997 | Solved : 1339

    Description

    已知某班有男生n1位,女生n2位,n1位男生的平均分是x分,n2位女生的平均分是y分,问全体学生的平均分是多少?

    Input

    输入四个整数x、y、n1、n2

    Output

    输出一个保留2位小数的双精度数(全体学生的平均分)。

    Sample Input

    90 88 23 21

    Sample Output

    89.05

    HINT


    Source

    NBU OJ

    [ Top ] | [ Submit ] | [ Statistics ] | [ Standing ]