Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77154 sh25_shenpy 期末成绩-二维数组 C++ 通过 0 MS 256 KB 456 2025-12-21 14:56:53

Tests(1/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){ if(j==0){ cout<<(a[0][j]+a[1][j]+a[2][j])/3<<" "; } else cout<<(a[0][j]+a[1][j]+a[2][j])/3+1<<" "; } return 0; }


测评信息: