| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82356 | sh25_shenpy | 求学科的平均成绩 | C++ | 通过 | 0 MS | 252 KB | 327 | 2026-01-11 18:28:48 |
#include <bits/stdc++.h> using namespace std; int main() { int n,ss=0,tt=0; cin>>n; int s[n],t[n]; for(int i=0;i<n;++i){ cin>>s[i]>>t[i]; ss+=s[i]; tt+=t[i]; } cout<<fixed<<setprecision(2)<<1.0*ss/n<<endl; cout<<fixed<<setprecision(2)<<1.0*tt/n; return 0; }