Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
60891 | 张思存 | 期末成绩-二维数组 | C++ | Wrong Answer | 0 MS | 252 KB | 389 | 2025-02-21 14:22:48 |
#include<bits/stdc++.h> using namespace std; int main(){ int score[4][3]; cin >> score[1][1] >> score[1][2] >> score[2][1] >> score[2][2] >> score[3][1] >> score[3][2]; for(int i = 1;i<=3;i++){ cout << score[i][1]+score[i][2] << " "; } cout << endl << " "; for(int i = 1;i<=2;i++){ cout << (score[1][i]+score[2][i] +score[3][i])/3 << " "; } }