Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
127452 韩潞琪 输出学生成绩 C++ Accepted 1 MS 272 KB 310 2025-07-27 16:25:22

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a[10][10],s=0,n; for(int i=1;i<=3;i++){ for(int j=1;j<=4;j++){ cin>>a[i][j]; s+=a[i][j]; } } cin>>n; printf("%.2f\n",s/12.0); for(int j=1;j<=4;j++){ cout<<a[n+1][j]<<' '; } return 0; }