Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97354 冯诚阳 二维数组最大值 C++ Accepted 1 MS 268 KB 367 2024-11-14 18:42:24

Tests(1/1):


Code:

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