Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151053 张锦程 二维数组最大值 C++ Accepted 1 MS 276 KB 356 2026-04-04 14:45:15

Tests(1/1):


Code:

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