Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151016 编程星球02 二维数组最大值 C++ Wrong Answer 0 MS 268 KB 400 2026-04-03 18:04:48

Tests(0/1):


Code:

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


Run Info:

------Input------
123 333 135 352 977 739 144 104 233 632 242 433
------Answer-----
977
------Your output-----
352 977 977