Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159846 Kevin C语言7.3 C++ Wrong Answer 1 MS 268 KB 374 2026-09-09 15:48:18

Tests(0/1):


Code:

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


Run Info:

------Input------
10 20 30 40 99 98 97 60 -109 100 -85 21
------Answer-----
100 2 1
------Your output-----
100 3 2