Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
126111 | 徐浩天 | 输出学生成绩 | C++ | Accepted | 0 MS | 268 KB | 285 | 2025-07-16 12:11:00 |
#include<bits/stdc++.h> using namespace std; int main() { int a[4][5]={},sum=0,h; for(int i=1;i<=3;i++) for(int j=1;j<=4;j++){ cin>>a[i][j]; sum+=a[i][j]; } cin>>h; printf("%.2f\n",sum*1.0/12); for(int j=1;j<=4;j++) cout<<a[h+1][j]<<" "; return 0; }