| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 128958 | 李明秦 | 二维数组的最大值与最小值 | C++ | Runtime Error | 1 MS | 264 KB | 462 | 2025-08-21 14:01:10 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main() { int n,a[10][10],c=0,b=10; cin>>n; for(int i=0;i<n;i++){ for(int j=0;i<n;j++){ cin>>a[i][j]; if(b>a[i][j])b=a[i][j]; if(c<a[i][j])c=a[i][j]; } } cout<<b<<" "<<c; return 0; }
Runtime Error:Segmentation fault