A430.序列最大值题解:
2026-02-13 22:52:43
发布于:四川
0阅读
0回复
0点赞
A430.序列最大值
#include<bits/stdc++.h>
using namespace std;
int a[110];
int main(){
int n,mx=-110;
cin >> n;
for(int i=1;i<=n;i++){
cin >>a[i];
mx=max(mx,a[i]);//找最大值
}cout << mx;//输出
return 0;
}
这里空空如也






有帮助,赞一个