Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
93448 | andrew | 二维数组最大值 | C++ | Accepted | 1 MS | 268 KB | 323 | 2024-10-15 21:37:59 |
#include<bits/stdc++.h> using namespace std; int a[1000009]; int main(){ int n, max_num = -1e9; cin >> n; for(int i = 1; i <= n; i++){ cin >> a[i]; }for(int i = 1; i <= n; i++){ if(a[i] > max_num){ max_num = a[i]; } } cout<<max_num; return 0; }