Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77147 sh25_shenpy 期末成绩-二维数组 C++ 解答错误 1 MS 244 KB 379 2025-12-21 14:53:16

Tests(0/1):


#include <bits/stdc++.h> using namespace std; int a[3][2]; int main( ) { for(int ii=0;ii<3;ii++){ for(int jj=0;jj<2;++jj){ cin>>a[ii][jj]; } } for(int i=0;i<3;++i){ cout<<a[i][1]+a[i][0]<<" "; } cout<<endl; for(int j=0;j<2;++j){ cout<<int(1.0*(a[0][j]+a[1][j]+a[2][j])/3)<<" "; } return 0; }


测评信息: