Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1420 吴奕希 二维数组的最大值与最小值 C++ Compile Error 0 MS 0 KB 554 2023-09-24 08:43:30

Tests(0/0):


Code:

# include<iostream> # include<cmath> using namespace std; int main() { int n,big = 0,small = 2147483647; cin >> n; n--; int b[n][n]; for(int y = 0; y <= n; y++) { for(int x = 0; x <= n; x++) { cin >> b[x][y]; if(b[x][y] > big) { big = b[x][y]; } if(b[x][y] < small) { small = b[x][y]; } } } printf("\n%d", small); printf(" %d", big); return 0; }


Run Info:

mount: mount /usr on /home/judge/jnoj/judge/run/0/usr failed: No space left on device