蓝桥杯 猴子吃包子

#include <iostream>
#include <iomanip>
using namespace std;
int main() {
    double x,y,z,x1,y1,z1,n;
    cin >> x >> y >> z >> x1 >> y1 >> z1 >> n;
    double sum = x1/x + y1/y + z1/z;
    cout << fixed << setprecision(n) << sum << endl;
}
posted @ 2020-07-18 18:47  明卿册  阅读(173)  评论(0编辑  收藏  举报