| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151757 | 王培臻 | 二维数组的最大值与最小值 | C++ | Runtime Error | 0 MS | 256 KB | 418 | 2026-04-18 15:20:52 |
#include<bits/stdc++.h> using namespace std; int main() { long long s,a[10001][10001],d=0,f=10000; cin>>s; for(int i=0;i<=s;i++){ for(int j=0;j<=s;j++){ cin>>a[i][j]; } } for(int i=0;i<=s;i++){ for(int j=0;j<=s;j++){ cout<<a[i][j]; } } for(int i=0;i<=s;i++){ for(int j=0;j<=s;j++){ if(a[i][j]>d)d=a[i][j]; if(a[i][j]<f)f=a[i][j]; } } cout<<d<<f; return 0; }
Runtime Error:Segmentation fault