#include <iostream>
#include <iomanip>

int main() {
    double price[] = {28.9, 32.7, 45.6, 78, 35, 86.2, 27.8, 43, 56, 65};
    int quantity[10];
    double total = 0;

    for (int i = 0; i < 10; i++) {
        std::cin >> quantity[i];
        total += price[i] * quantity[i];
    }

    std::cout << std::fixed << std::setprecision(1) << total << std::endl;

    return 0;
}

原文地址: http://www.cveoy.top/t/topic/h7XN 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录