Run ID:11793

提交时间:2021-05-17 18:18:25

#include <bits/stdc++.h> using namespace std; int a,b; double sy,se,y[55],e[55]; int main() { cin >> a >> b; for(int i=1;i<=a;i++) { cin >> y[i]; sy+=y[i]; } for(int i=1;i<=b;i++) { cin >> e[i]; se+=e[i]; } printf("%.2lf %.2lf",sy/a,se/b); return 0; }