和上一篇类似
#include<bits/stdc++.h> using namespace std; double a, b, c; int main() { cin >> a >> b >> c; printf("MEDIA = %.1lf", (a* 2 + b * 3 + c *5) / 10); }