Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
11793 蒋瀚辉 C语言8.7 C++ Accepted 2 MS 812 KB 289 2021-05-17 18:18:25

Tests(1/1):


Code:

#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; }