| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 75564 | 孙嘉言 | 矩阵最大和 | C++ | 通过 | 100 | 110 MS | 3596 KB | 383 | 2026-07-04 15:42:17 |
#include<bits/stdc++.h> using namespace std; int n[1010][1010]; int main() { int a,b; int cnt=0; cin>>a>>b; for(int i=1;i<=a;i++) { for(int j=1;j<=b;j++) { cin>>n[i][j]; } } for(int i=1;i<=a;i++) { int maxx=n[i][1]; for(int j=2;j<=b;j++) { if(n[i][j]>maxx) { maxx=n[i][j]; } } cnt+=maxx; } cout<<cnt; }