| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 75708 | 谢润景 | 矩阵最大和 | C++ | 通过 | 100 | 117 MS | 3592 KB | 420 | 2026-07-12 10:53:11 |
#include <bits/stdc++.h> using namespace std; int n,m,a[1010][1010],cnt; int main(){ cin>>n>>m; for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cin>>a[i][j]; } } for(int i=0;i<n;i++){ int max=-10000; for(int j=0;j<m;j++){ if(a[i][j]>max){ max=a[i][j]; // cout<<max<<" "; } } cnt=cnt+max; } cout<<cnt; return 0; }