Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86063 梁敖铭 求元素在矩阵中的位置 C++ Wrong Answer 0 MS 268 KB 309 2024-07-21 20:49:03

Tests(0/4):


Code:

#include<iostream> using namespace std; int main () { int n,m; cin>>n>>m; int num[n][m]; for(int i=0;i<n;i++) { for(int j=0;j<m;j++) { cin>>num[i][j]; } } int a,b; cin>>a>>b; cout<<num[a-1][b-1]; return 0; }


Run Info:

------Input------
5 50 1 4 7 10 23 2 5 8 11 24 3 6 9 12 25 13 14 15 16 17 18 19 20 21 22
------Answer-----
-1
------Your output-----
32764