Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5327 A班-高思婕 序列的最大值 C++ 通过 100 1 MS 652 KB 279 2025-02-04 13:39:09

Tests(5/5):


#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int a[100001]; for(int i = 1;i <= n;i++) { cin>>a[i]; } int max = a[1]; for(int i = 1;i <= n;i++) { if(a[i] > max) { max = a[i]; } } cout<<max<<endl; return 0; }


测评信息: