| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151085 | 张锦程 | 输出学生成绩 | C++ | Accepted | 1 MS | 268 KB | 444 | 2026-04-04 15:46:37 |
#include<bits/stdc++.h> using namespace std; int main(){ int n[3][4]={},m; for(int i=0;i<3;i++){ for(int j=0;j<4;j++){ cin>>n[i][j]; } }cin>>m; double pjs; for(int i=0;i<3;i++){ for(int j=0;j<4;j++){ pjs+=n[i][j]; } } pjs=pjs/12; printf("%.2lf",pjs); cout<<endl; for(int i=0;i<4;i++) cout<<n[m][i]<<" "; return 0; }