Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151065 马俊潇 二维数组最大值 C++ Accepted 1 MS 276 KB 500 2026-04-04 15:13:45

Tests(1/1):


Code:

#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int a[3][4]={},n=0; for(int i=0;i<=2;i++){ for(int j=0;j<=3;j++){ cin>>a[i][j]; } } for(int i=0;i<=2;i++){ for(int j=0;j<=2;j++){ if(a[i][j]>n){ n=a[i][j]; } } } cout<<n; return 0; }