| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159403 | 张晓冉 | 二维数组最大值 | C++ | Accepted | 1 MS | 272 KB | 440 | 2026-08-29 15:50:00 |
#include<bits/stdc++.h> using namespace std; int m(int (*a)[4]){ int x = a[0][0]; for(int i = 0;i < 3;i++){ for(int j = 0;j < 4;j++){ if(a[i][j] > x){ x = a[i][j]; } } } return x; } int main(){ int a[3][4]; for(int i = 0;i < 3;i++){ for(int j = 0;j < 4;j++){ cin>>a[i][j]; } } int s = m(a); cout<<s<<endl; return 0; }